Class RepositoryApi
Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.services.openapi.apache.apiclient.BaseApi
apiClient, defaultHeaders -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates this API class to invoke operations on the AI CoreRepositoryApi(AiCoreService aiCoreService) Instantiates this API class to invoke operations on the AI Core -
Method Summary
Modifier and TypeMethodDescriptioncreate(BckndArgoCDRepositoryData bckndArgoCDRepositoryData) On-board a new GitOps repositorycreate(BckndArgoCDRepositoryData bckndArgoCDRepositoryData, String authorization) On-board a new GitOps repositoryOff-board a repository.Off-board a repository.Get the access details for a repositoryGet the access details for a repositorygetAll()List all GitOps repositories for a tenantList all GitOps repositories for a tenantupdate(String repositoryName, BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials) Update the repository credentials.update(String repositoryName, BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials, String authorization) Update the repository credentials.withDefaultHeaders(Map<String, String> defaultHeaders) Creates a new API instance with additional default headers.
-
Constructor Details
-
RepositoryApi
public RepositoryApi()Instantiates this API class to invoke operations on the AI Core -
RepositoryApi
Instantiates this API class to invoke operations on the AI Core- Parameters:
aiCoreService- The configured connectivity instance to AI Core
-
-
Method Details
-
withDefaultHeaders
Creates a new API instance with additional default headers.- Parameters:
defaultHeaders- Additional headers to include in all requests- Returns:
- A new API instance with the combined headers
-
create
@Nonnull public BckndArgoCDRepositoryCreationResponse create(@Nonnull BckndArgoCDRepositoryData bckndArgoCDRepositoryData, @Nullable String authorization) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException On-board a new GitOps repositoryOn-board a new GitOps repository as specified in the content payload
200 - The repository has been on-boarded
409 - The provided repository already exists
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
bckndArgoCDRepositoryData- (required) The value for the parameter bckndArgoCDRepositoryDataauthorization- (optional) Authorization bearer token containing a JWT token.- Returns:
- BckndArgoCDRepositoryCreationResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
create
@Nonnull public BckndArgoCDRepositoryCreationResponse create(@Nonnull BckndArgoCDRepositoryData bckndArgoCDRepositoryData) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException On-board a new GitOps repositoryOn-board a new GitOps repository as specified in the content payload
200 - The repository has been on-boarded
409 - The provided repository already exists
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
bckndArgoCDRepositoryData- The value for the parameter bckndArgoCDRepositoryData- Returns:
- BckndArgoCDRepositoryCreationResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
delete
@Nonnull public BckndArgoCDRepositoryDeletionResponse delete(@Nonnull String repositoryName, @Nullable String authorization) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Off-board a repository.Remove a repository from GitOps.
200 - The repository has been off-boarded successfully.
404 - The specified resource was not found
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
repositoryName- (required) Name of the repositoryauthorization- (optional) Authorization bearer token containing a JWT token.- Returns:
- BckndArgoCDRepositoryDeletionResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
delete
@Nonnull public BckndArgoCDRepositoryDeletionResponse delete(@Nonnull String repositoryName) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Off-board a repository.Remove a repository from GitOps.
200 - The repository has been off-boarded successfully.
404 - The specified resource was not found
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
repositoryName- Name of the repository- Returns:
- BckndArgoCDRepositoryDeletionResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
get
@Nonnull public BckndArgoCDRepositoryDetails get(@Nonnull String repositoryName, @Nullable String authorization) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get the access details for a repositoryRetrieve the access details for a repository if it exists.
200 - The repository details have been found and returned.
400 - The request was malformed and could thus not be processed.
404 - The specified resource was not found
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
repositoryName- (required) Name of the repositoryauthorization- (optional) Authorization bearer token containing a JWT token.- Returns:
- BckndArgoCDRepositoryDetails
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
get
@Nonnull public BckndArgoCDRepositoryDetails get(@Nonnull String repositoryName) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get the access details for a repositoryRetrieve the access details for a repository if it exists.
200 - The repository details have been found and returned.
400 - The request was malformed and could thus not be processed.
404 - The specified resource was not found
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
repositoryName- Name of the repository- Returns:
- BckndArgoCDRepositoryDetails
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getAll
@Nonnull public BckndArgoCDRepositoryDataResponse getAll(@Nullable String authorization, @Nullable Integer $top, @Nullable Integer $skip, @Nullable Boolean $count) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException List all GitOps repositories for a tenantRetrieve a list of all GitOps repositories for a tenant.
200 - Returns a list of all GitOps repositories for the tenant.
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
authorization- (optional) Authorization bearer token containing a JWT token.$top- (optional) Number of results to display$skip- (optional) Number of results to be skipped from the ordered list of results$count- (optional) When the $count field is set to false, the response contains a count of the items present in the response. When the $count field is set to true, the response contains a count of all the items present on the server, and not just the ones in the response. When the $count field is not passed, it is false by default.- Returns:
- BckndArgoCDRepositoryDataResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getAll
@Nonnull public BckndArgoCDRepositoryDataResponse getAll() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionList all GitOps repositories for a tenantRetrieve a list of all GitOps repositories for a tenant.
200 - Returns a list of all GitOps repositories for the tenant.
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Returns:
- BckndArgoCDRepositoryDataResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
update
@Nonnull public BckndArgoCDRepositoryModificationResponse update(@Nonnull String repositoryName, @Nonnull BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials, @Nullable String authorization) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Update the repository credentials.Update the referenced repository credentials to synchronize a repository.
200 - The repository credentials have been updated and will eventually be synced.
404 - The specified resource was not found
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
repositoryName- (required) Name of the repositorybckndArgoCDRepositoryCredentials- (required) The value for the parameter bckndArgoCDRepositoryCredentialsauthorization- (optional) Authorization bearer token containing a JWT token.- Returns:
- BckndArgoCDRepositoryModificationResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
update
@Nonnull public BckndArgoCDRepositoryModificationResponse update(@Nonnull String repositoryName, @Nonnull BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Update the repository credentials.Update the referenced repository credentials to synchronize a repository.
200 - The repository credentials have been updated and will eventually be synced.
404 - The specified resource was not found
400 - The request was malformed and could thus not be processed.
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
repositoryName- Name of the repositorybckndArgoCDRepositoryCredentials- The value for the parameter bckndArgoCDRepositoryCredentials- Returns:
- BckndArgoCDRepositoryModificationResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-