Package com.cloudera.cdp.ml.api
Class MlClient
java.lang.Object
com.cloudera.cdp.client.CdpClient
com.cloudera.cdp.ml.api.MlClient
@Generated(value="com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen",
date="2025-01-23T07:12:39.983-08:00")
public class MlClient
extends CdpClient
-
Field Summary
Fields inherited from class com.cloudera.cdp.client.CdpClient
NO_EXTENSION
-
Constructor Summary
ConstructorDescriptionMlClient
(CdpCredentials credentials, String endPoint, CdpClientConfiguration clientConfiguration) MlClient
(CdpRequestContext<?> context) -
Method Summary
Modifier and TypeMethodDescriptionAdd new Cloudera AI workbench cluster instance groups.Add instance group to an existing Cloudera AI Inference Service instance.Backup a Cloudera AI workbench.Deploys Cloudera AI Inference Service into an existing Kubernetes cluster.Creates a new model registry.Create a Cloudera AI workbench.deleteBackup
(DeleteBackupRequest input) Deletes a backup snapshot.Deletes an instance group from the cluster.Deletes an instance group from a Cloudera AI Inference Service instance.Deletes Cloudera AI Inference Service instance.Deletes a model registry.Delete Cloudera AI workbench.Describe Cloudera AI Inference Service instance.Describe Cloudera AI Model Registry.Describe Cloudera AI workbench.Gets all the events belong to a workbench crn.ListWorkspaceAccess Cloudera AI workbench.GetLatestWorkspaceVersion Cloudera AI workbench.getLogs
(GetLogsRequest input) Gets all the logs belong to a request id.Return kubeconfig for a Cloudera AI Inference Service Kubernetes cluster.GetModelRegistryKubeconfig returns kube config for model registry.protected String
Gets the request Content-Type, used by 'Conent-Type' request header.protected String
Gets the expected response Content-Type, used by 'Accept' request header.protected String
Gets the service name.Grants admin access to a Cloudera AI Inference Service cluster.GrantModelRegistryAccess Cloudera AI Model Registry.GrantWorkspaceAccess Cloudera AI workbench.List the instance configuration for a given instance type.List members that have Kubernetes access to a Cloudera AI Inference Service cluster.List all Cloudera AI Inference Service instances.Lists all model registries.ListWorkspaceAccess Cloudera AI Model Registry.List the instance types for Cloudera AI workbench creation that have the requested resource.ListWorkspaceAccess Cloudera AI workbench.List backup snapshots of a workbench.List Cloudera AI workbenches.Modify Cloudera AI workbench cluster instance group.Modify Cloudera AI workbench cluster security.Modify instance groups for a Cloudera AI Inference Service cluster.Modify Cloudera AI workbench loadbalancer.Refreshes the model registry configmap of the workbench.Request a workflow cancellation.Restore a Cloudera AI workbench.Resume Cloudera AI workbench.Revokes access to a Cloudera AI Inference Service cluster.RevokeModelRegistryAccess Cloudera AI Model Registry.RevokeWorkspaceAccess Cloudera AI workbench.Rollback a model registry upgrade.Suspend Cloudera AI workbench.Upgrade a Cloudera AI Inference Service instance.Upgrade a model registry.Upgrade Cloudera AI workbench.Methods inherited from class com.cloudera.cdp.client.CdpClient
invokeAPI, invokeAPI, invokeAPI, invokeAPI, parameterToPair, parameterToPairs, parameterToString, shutdown
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Constructor Details
-
MlClient
public MlClient(CdpCredentials credentials, String endPoint, CdpClientConfiguration clientConfiguration) -
MlClient
-
-
Method Details
-
getServiceName
Description copied from class:CdpClient
Gets the service name.- Specified by:
getServiceName
in classCdpClient
- Returns:
- the service name
-
getRequestContentType
Description copied from class:CdpClient
Gets the request Content-Type, used by 'Conent-Type' request header.- Overrides:
getRequestContentType
in classCdpClient
- Returns:
- the request Content-Type
-
getResponseContentType
Description copied from class:CdpClient
Gets the expected response Content-Type, used by 'Accept' request header.- Overrides:
getResponseContentType
in classCdpClient
- Returns:
- the response Content-Type
-
addInstanceGroups
Add new Cloudera AI workbench cluster instance groups.- Parameters:
input
-- Returns:
- AddInstanceGroupsResponse
-
addInstanceGroupsMlServingApp
public AddInstanceGroupsMlServingAppResponse addInstanceGroupsMlServingApp(AddInstanceGroupsMlServingAppRequest input) Add instance group to an existing Cloudera AI Inference Service instance.- Parameters:
input
-- Returns:
- AddInstanceGroupsMlServingAppResponse
-
backupWorkspace
Backup a Cloudera AI workbench.- Parameters:
input
-- Returns:
- BackupWorkspaceResponse
-
createMlServingApp
Deploys Cloudera AI Inference Service into an existing Kubernetes cluster.- Parameters:
input
-- Returns:
- CreateMlServingAppResponse
-
createModelRegistry
Creates a new model registry.- Parameters:
input
-- Returns:
- CreateModelRegistryResponse
-
createWorkspace
Create a Cloudera AI workbench.- Parameters:
input
-- Returns:
- CreateWorkspaceResponse
-
deleteBackup
Deletes a backup snapshot.- Parameters:
input
-- Returns:
- DeleteBackupResponse
-
deleteInstanceGroup
Deletes an instance group from the cluster.- Parameters:
input
-- Returns:
- DeleteInstanceGroupResponse
-
deleteInstanceGroupMlServingApp
public DeleteInstanceGroupMlServingAppResponse deleteInstanceGroupMlServingApp(DeleteInstanceGroupMlServingAppRequest input) Deletes an instance group from a Cloudera AI Inference Service instance.- Parameters:
input
-- Returns:
- DeleteInstanceGroupMlServingAppResponse
-
deleteMlServingApp
Deletes Cloudera AI Inference Service instance.- Parameters:
input
-- Returns:
- DeleteMlServingAppResponse
-
deleteModelRegistry
Deletes a model registry.- Parameters:
input
-- Returns:
- DeleteModelRegistryResponse
-
deleteWorkspace
Delete Cloudera AI workbench.- Parameters:
input
-- Returns:
- DeleteWorkspaceResponse
-
describeMlServingApp
Describe Cloudera AI Inference Service instance.- Parameters:
input
-- Returns:
- DescribeMlServingAppResponse
-
describeModelRegistry
Describe Cloudera AI Model Registry.- Parameters:
input
-- Returns:
- DescribeModelRegistryResponse
-
describeWorkspace
Describe Cloudera AI workbench.- Parameters:
input
-- Returns:
- DescribeWorkspaceResponse
-
getAuditEvents
Gets all the events belong to a workbench crn.- Parameters:
input
-- Returns:
- GetAuditEventsResponse
-
getKubeconfig
ListWorkspaceAccess Cloudera AI workbench.- Parameters:
input
-- Returns:
- GetKubeconfigResponse
-
getLatestWorkspaceVersion
public GetLatestWorkspaceVersionResponse getLatestWorkspaceVersion(GetLatestWorkspaceVersionRequest input) GetLatestWorkspaceVersion Cloudera AI workbench.- Parameters:
input
-- Returns:
- GetLatestWorkspaceVersionResponse
-
getLogs
Gets all the logs belong to a request id.- Parameters:
input
-- Returns:
- GetLogsResponse
-
getMlServingAppKubeconfig
public GetMlServingAppKubeconfigResponse getMlServingAppKubeconfig(GetMlServingAppKubeconfigRequest input) Return kubeconfig for a Cloudera AI Inference Service Kubernetes cluster.- Parameters:
input
-- Returns:
- GetMlServingAppKubeconfigResponse
-
getModelRegistryKubeconfig
public GetModelRegistryKubeconfigResponse getModelRegistryKubeconfig(GetModelRegistryKubeconfigRequest input) GetModelRegistryKubeconfig returns kube config for model registry.- Parameters:
input
-- Returns:
- GetModelRegistryKubeconfigResponse
-
grantMlServingAppAccess
public GrantMlServingAppAccessResponse grantMlServingAppAccess(GrantMlServingAppAccessRequest input) Grants admin access to a Cloudera AI Inference Service cluster.- Parameters:
input
-- Returns:
- GrantMlServingAppAccessResponse
-
grantModelRegistryAccess
public GrantModelRegistryAccessResponse grantModelRegistryAccess(GrantModelRegistryAccessRequest input) GrantModelRegistryAccess Cloudera AI Model Registry.- Parameters:
input
-- Returns:
- GrantModelRegistryAccessResponse
-
grantWorkspaceAccess
GrantWorkspaceAccess Cloudera AI workbench.- Parameters:
input
-- Returns:
- GrantWorkspaceAccessResponse
-
listInstanceTypeConfiguration
public ListInstanceTypeConfigurationResponse listInstanceTypeConfiguration(ListInstanceTypeConfigurationRequest input) List the instance configuration for a given instance type.- Parameters:
input
-- Returns:
- ListInstanceTypeConfigurationResponse
-
listMlServingAppAccess
List members that have Kubernetes access to a Cloudera AI Inference Service cluster.- Parameters:
input
-- Returns:
- ListMlServingAppAccessResponse
-
listMlServingApps
List all Cloudera AI Inference Service instances.- Parameters:
input
-- Returns:
- ListMlServingAppsResponse
-
listModelRegistries
Lists all model registries.- Parameters:
input
-- Returns:
- ListModelRegistriesResponse
-
listModelRegistryAccess
public ListModelRegistryAccessResponse listModelRegistryAccess(ListModelRegistryAccessRequest input) ListWorkspaceAccess Cloudera AI Model Registry.- Parameters:
input
-- Returns:
- ListModelRegistryAccessResponse
-
listRelevantInstances
List the instance types for Cloudera AI workbench creation that have the requested resource.- Parameters:
input
-- Returns:
- ListRelevantInstancesResponse
-
listWorkspaceAccess
ListWorkspaceAccess Cloudera AI workbench.- Parameters:
input
-- Returns:
- ListWorkspaceAccessResponse
-
listWorkspaceBackups
List backup snapshots of a workbench.- Parameters:
input
-- Returns:
- ListWorkspaceBackupsResponse
-
listWorkspaces
List Cloudera AI workbenches.- Parameters:
input
-- Returns:
- ListWorkspacesResponse
-
modifyClusterInstanceGroup
public ModifyClusterInstanceGroupResponse modifyClusterInstanceGroup(ModifyClusterInstanceGroupRequest input) Modify Cloudera AI workbench cluster instance group.- Parameters:
input
-- Returns:
- ModifyClusterInstanceGroupResponse
-
modifyClusterSecurity
Modify Cloudera AI workbench cluster security.- Parameters:
input
-- Returns:
- ModifyClusterSecurityResponse
-
modifyMlServingApp
Modify instance groups for a Cloudera AI Inference Service cluster.- Parameters:
input
-- Returns:
- ModifyMlServingAppResponse
-
modifyWorkspaceLoadBalancer
public ModifyWorkspaceLoadBalancerResponse modifyWorkspaceLoadBalancer(ModifyWorkspaceLoadBalancerRequest input) Modify Cloudera AI workbench loadbalancer.- Parameters:
input
-- Returns:
- ModifyWorkspaceLoadBalancerResponse
-
refreshModelRegistryConfigmap
public RefreshModelRegistryConfigmapResponse refreshModelRegistryConfigmap(RefreshModelRegistryConfigmapRequest input) Refreshes the model registry configmap of the workbench.- Parameters:
input
-- Returns:
- RefreshModelRegistryConfigmapResponse
-
requestWorkflowCancellation
public RequestWorkflowCancellationResponse requestWorkflowCancellation(RequestWorkflowCancellationRequest input) Request a workflow cancellation.- Parameters:
input
-- Returns:
- RequestWorkflowCancellationResponse
-
restoreWorkspace
Restore a Cloudera AI workbench.- Parameters:
input
-- Returns:
- RestoreWorkspaceResponse
-
resumeWorkspace
Resume Cloudera AI workbench.- Parameters:
input
-- Returns:
- ResumeWorkspaceResponse
-
revokeMlServingAppAccess
public RevokeMlServingAppAccessResponse revokeMlServingAppAccess(RevokeMlServingAppAccessRequest input) Revokes access to a Cloudera AI Inference Service cluster.- Parameters:
input
-- Returns:
- RevokeMlServingAppAccessResponse
-
revokeModelRegistryAccess
public RevokeModelRegistryAccessResponse revokeModelRegistryAccess(RevokeModelRegistryAccessRequest input) RevokeModelRegistryAccess Cloudera AI Model Registry.- Parameters:
input
-- Returns:
- RevokeModelRegistryAccessResponse
-
revokeWorkspaceAccess
RevokeWorkspaceAccess Cloudera AI workbench.- Parameters:
input
-- Returns:
- RevokeWorkspaceAccessResponse
-
rollbackModelRegistryUpgrade
public RollbackModelRegistryUpgradeResponse rollbackModelRegistryUpgrade(RollbackModelRegistryUpgradeRequest input) Rollback a model registry upgrade. Restore prior model registry.- Parameters:
input
-- Returns:
- RollbackModelRegistryUpgradeResponse
-
suspendWorkspace
Suspend Cloudera AI workbench.- Parameters:
input
-- Returns:
- SuspendWorkspaceResponse
-
upgradeMlServingApp
Upgrade a Cloudera AI Inference Service instance.- Parameters:
input
-- Returns:
- UpgradeMlServingAppResponse
-
upgradeModelRegistry
Upgrade a model registry.- Parameters:
input
-- Returns:
- UpgradeModelRegistryResponse
-
upgradeWorkspace
Upgrade Cloudera AI workbench.- Parameters:
input
-- Returns:
- UpgradeWorkspaceResponse
-