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="2024-09-27T08:40:25.791-07: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 instance group to an existing Cloudera AI Inference Service instance.Backup a workspace.Deploys Cloudera AI Inference Service into an existing Kubernetes cluster.Creates a new model registry.Create a Cloudera Machine Learning workspace.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 Machine Learning Workspace.Describe Cloudera AI Inference Service instance.Describe Cloudera Machine Learning Model Registry.Describe Cloudera Machine Learning Workspace.Gets all the events belong to a workspace crn.ListWorkspaceAccess Cloudera Machine Learning Workspace.GetLatestWorkspaceVersion Cloudera Machine Learning Workspace.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 Machine Learning Model Registry.GrantWorkspaceAccess Cloudera Machine Learning Workspace.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 Machine Learning Model Registry.List the instance types for CML workspace creation that have the requested resource.ListWorkspaceAccess Cloudera Machine Learning Workspace.List backup snapshots of a workspace.List Cloudera Machine Learning workspaces.Modify Cloudera Machine Learning workspace cluster instance group.Modify Cloudera Machine Learning workspace cluster security.Modify instance groups for a Cloudera AI Inference Service cluster.Modify Cloudera Machine Learning workspace loadbalancer.Refreshes the model registry configmap of the workspace.Request a workflow cancellation.Restore a Cloudera Machine Learning workspace.Resume Cloudera Machine Learning workspace.Revokes access to a Cloudera AI Inference Service cluster.RevokeModelRegistryAccess Cloudera Machine Learning Model Registry.RevokeWorkspaceAccess Cloudera Machine Learning Workspace.Rollback a model registry upgrade.Suspend Cloudera Machine Learning workspace.Upgrade a Cloudera AI Inference Service instance.Upgrade a model registry.Upgrade Cloudera Machine Learning workspace.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
-
addInstanceGroupsMlServingApp
public AddInstanceGroupsMlServingAppResponse addInstanceGroupsMlServingApp(AddInstanceGroupsMlServingAppRequest input) Add instance group to an existing Cloudera AI Inference Service instance.- Parameters:
input
-- Returns:
- AddInstanceGroupsMlServingAppResponse
-
backupWorkspace
Backup a workspace.- 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 Machine Learning workspace.- 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 Machine Learning Workspace.- Parameters:
input
-- Returns:
- DeleteWorkspaceResponse
-
describeMlServingApp
Describe Cloudera AI Inference Service instance.- Parameters:
input
-- Returns:
- DescribeMlServingAppResponse
-
describeModelRegistry
Describe Cloudera Machine Learning Model Registry.- Parameters:
input
-- Returns:
- DescribeModelRegistryResponse
-
describeWorkspace
Describe Cloudera Machine Learning Workspace.- Parameters:
input
-- Returns:
- DescribeWorkspaceResponse
-
getAuditEvents
Gets all the events belong to a workspace crn.- Parameters:
input
-- Returns:
- GetAuditEventsResponse
-
getKubeconfig
ListWorkspaceAccess Cloudera Machine Learning Workspace.- Parameters:
input
-- Returns:
- GetKubeconfigResponse
-
getLatestWorkspaceVersion
public GetLatestWorkspaceVersionResponse getLatestWorkspaceVersion(GetLatestWorkspaceVersionRequest input) GetLatestWorkspaceVersion Cloudera Machine Learning Workspace.- 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 Machine Learning Model Registry.- Parameters:
input
-- Returns:
- GrantModelRegistryAccessResponse
-
grantWorkspaceAccess
GrantWorkspaceAccess Cloudera Machine Learning Workspace.- 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 Machine Learning Model Registry.- Parameters:
input
-- Returns:
- ListModelRegistryAccessResponse
-
listRelevantInstances
List the instance types for CML workspace creation that have the requested resource.- Parameters:
input
-- Returns:
- ListRelevantInstancesResponse
-
listWorkspaceAccess
ListWorkspaceAccess Cloudera Machine Learning Workspace.- Parameters:
input
-- Returns:
- ListWorkspaceAccessResponse
-
listWorkspaceBackups
List backup snapshots of a workspace.- Parameters:
input
-- Returns:
- ListWorkspaceBackupsResponse
-
listWorkspaces
List Cloudera Machine Learning workspaces.- Parameters:
input
-- Returns:
- ListWorkspacesResponse
-
modifyClusterInstanceGroup
public ModifyClusterInstanceGroupResponse modifyClusterInstanceGroup(ModifyClusterInstanceGroupRequest input) Modify Cloudera Machine Learning workspace cluster instance group.- Parameters:
input
-- Returns:
- ModifyClusterInstanceGroupResponse
-
modifyClusterSecurity
Modify Cloudera Machine Learning workspace 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 Machine Learning workspace loadbalancer.- Parameters:
input
-- Returns:
- ModifyWorkspaceLoadBalancerResponse
-
refreshModelRegistryConfigmap
public RefreshModelRegistryConfigmapResponse refreshModelRegistryConfigmap(RefreshModelRegistryConfigmapRequest input) Refreshes the model registry configmap of the workspace.- Parameters:
input
-- Returns:
- RefreshModelRegistryConfigmapResponse
-
requestWorkflowCancellation
public RequestWorkflowCancellationResponse requestWorkflowCancellation(RequestWorkflowCancellationRequest input) Request a workflow cancellation.- Parameters:
input
-- Returns:
- RequestWorkflowCancellationResponse
-
restoreWorkspace
Restore a Cloudera Machine Learning workspace.- Parameters:
input
-- Returns:
- RestoreWorkspaceResponse
-
resumeWorkspace
Resume Cloudera Machine Learning workspace.- 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 Machine Learning Model Registry.- Parameters:
input
-- Returns:
- RevokeModelRegistryAccessResponse
-
revokeWorkspaceAccess
RevokeWorkspaceAccess Cloudera Machine Learning Workspace.- 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 Machine Learning workspace.- 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 Machine Learning workspace.- Parameters:
input
-- Returns:
- UpgradeWorkspaceResponse
-