Class ResourceQuotaApi
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 CoreResourceQuotaApi(AiCoreService aiCoreService) Instantiates this API class to invoke operations on the AI Core -
Method Summary
Modifier and TypeMethodDescriptionGet the quota for applicationsgetApplicationQuota(String authorization, Boolean quotaOnly) Get the quota for applicationsGet the quota for deploymentsgetDeploymentQuota(String authorization, Boolean quotaOnly) Get the quota for deploymentsGet the quota for docker registry secretsgetDockerRegistrySecretQuota(String authorization, Boolean quotaOnly) Get the quota for docker registry secretsGet the quota for executablesgetExecutableQuota(String authorization, Boolean quotaOnly) Get the quota for executablesGet the quota for tenant-scoped or tenant-wide generic secretsgetGenericSecretQuota(String authorization, Boolean quotaOnly, String aiResourceGroup, Boolean aiTenantScope) Get the quota for tenant-scoped or tenant-wide generic secretsGet the quota for repositoriesgetRepositoryQuota(String authorization, Boolean quotaOnly) Get the quota for repositoriesGet the quota for resource groupsgetResourceGroupQuota(String authorization, Boolean quotaOnly) Get the quota for resource groupswithDefaultHeaders(Map<String, String> defaultHeaders) Creates a new API instance with additional default headers.
-
Constructor Details
-
ResourceQuotaApi
public ResourceQuotaApi()Instantiates this API class to invoke operations on the AI Core -
ResourceQuotaApi
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
-
getApplicationQuota
@Nonnull public BckndCommonResourceQuotaResponse getApplicationQuota(@Nullable String authorization, @Nullable Boolean quotaOnly) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get the quota for applicationsGet the details about quota and usage for applications
200 - quota for applications
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
authorization- (optional) Authorization bearer token containing a JWT token.quotaOnly- (optional) When being set to true, the response contains only the quota of the resource and not the quota usage.- Returns:
- BckndCommonResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getApplicationQuota
@Nonnull public BckndCommonResourceQuotaResponse getApplicationQuota() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionGet the quota for applicationsGet the details about quota and usage for applications
200 - quota for applications
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Returns:
- BckndCommonResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getDeploymentQuota
@Nonnull public BckndDeploymentResourceQuotaResponse getDeploymentQuota(@Nullable String authorization, @Nullable Boolean quotaOnly) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get the quota for deploymentsGet the details about quota and usage for deployments
200 - A resource quota object
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.quotaOnly- (optional) When being set to true, the response contains only the quota of the resource and not the quota usage.- Returns:
- BckndDeploymentResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getDeploymentQuota
@Nonnull public BckndDeploymentResourceQuotaResponse getDeploymentQuota() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionGet the quota for deploymentsGet the details about quota and usage for deployments
200 - A resource quota object
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:
- BckndDeploymentResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getDockerRegistrySecretQuota
@Nonnull public BckndCommonResourceQuotaResponse getDockerRegistrySecretQuota(@Nullable String authorization, @Nullable Boolean quotaOnly) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get the quota for docker registry secretsGet the details about quota and usage for docker registry secrets
200 - quota for generic secrets on the tenant level
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
authorization- (optional) Authorization bearer token containing a JWT token.quotaOnly- (optional) When being set to true, the response contains only the quota of the resource and not the quota usage.- Returns:
- BckndCommonResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getDockerRegistrySecretQuota
@Nonnull public BckndCommonResourceQuotaResponse getDockerRegistrySecretQuota() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionGet the quota for docker registry secretsGet the details about quota and usage for docker registry secrets
200 - quota for generic secrets on the tenant level
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Returns:
- BckndCommonResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getExecutableQuota
@Nonnull public BckndExecutableResourceQuotaResponse getExecutableQuota(@Nullable String authorization, @Nullable Boolean quotaOnly) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get the quota for executablesGet the details about quota and usage for executables
200 - quota for executable
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
authorization- (optional) Authorization bearer token containing a JWT token.quotaOnly- (optional) When being set to true, the response contains only the quota of the resource and not the quota usage.- Returns:
- BckndExecutableResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getExecutableQuota
@Nonnull public BckndExecutableResourceQuotaResponse getExecutableQuota() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionGet the quota for executablesGet the details about quota and usage for executables
200 - quota for executable
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Returns:
- BckndExecutableResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getGenericSecretQuota
@Nonnull public BckndCommonResourceQuotaResponse getGenericSecretQuota(@Nullable String authorization, @Nullable Boolean quotaOnly, @Nullable String aiResourceGroup, @Nullable Boolean aiTenantScope) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get the quota for tenant-scoped or tenant-wide generic secretsGet the details about quota and usage for tenant-scoped or tenant-wide generic secrets
200 - quota for generic secrets on the tenant level
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
authorization- (optional) Authorization bearer token containing a JWT token.quotaOnly- (optional) When being set to true, the response contains only the quota of the resource and not the quota usage.aiResourceGroup- (optional) Specify an existing resource group id to useaiTenantScope- (optional) Specify whether the main tenant scope is to be used- Returns:
- BckndCommonResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getGenericSecretQuota
@Nonnull public BckndCommonResourceQuotaResponse getGenericSecretQuota() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionGet the quota for tenant-scoped or tenant-wide generic secretsGet the details about quota and usage for tenant-scoped or tenant-wide generic secrets
200 - quota for generic secrets on the tenant level
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Returns:
- BckndCommonResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getRepositoryQuota
@Nonnull public BckndCommonResourceQuotaResponse getRepositoryQuota(@Nullable String authorization, @Nullable Boolean quotaOnly) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get the quota for repositoriesGet the details about quota and usage for repositories
200 - quota for repositories
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
authorization- (optional) Authorization bearer token containing a JWT token.quotaOnly- (optional) When being set to true, the response contains only the quota of the resource and not the quota usage.- Returns:
- BckndCommonResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getRepositoryQuota
@Nonnull public BckndCommonResourceQuotaResponse getRepositoryQuota() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionGet the quota for repositoriesGet the details about quota and usage for repositories
200 - quota for repositories
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Returns:
- BckndCommonResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getResourceGroupQuota
@Nonnull public BckndCommonResourceQuotaResponse getResourceGroupQuota(@Nullable String authorization, @Nullable Boolean quotaOnly) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get the quota for resource groupsGet the details about quota and usage for resource groups
200 - quota for resourcegroups
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Parameters:
authorization- (optional) Authorization bearer token containing a JWT token.quotaOnly- (optional) When being set to true, the response contains only the quota of the resource and not the quota usage.- Returns:
- BckndCommonResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getResourceGroupQuota
@Nonnull public BckndCommonResourceQuotaResponse getResourceGroupQuota() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionGet the quota for resource groupsGet the details about quota and usage for resource groups
200 - quota for resourcegroups
0 - HTTP status codes 401, 403 or 500. Response body contains further details.
- Returns:
- BckndCommonResourceQuotaResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-