Skip to content

Commit

Permalink
Merge branch 'main' into ODSC-65032/md-shapes-api
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar-shivam-ranjan authored Nov 28, 2024
2 parents bb2476b + 9c23486 commit e7da7a8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
24 changes: 15 additions & 9 deletions ads/aqua/modeldeployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def create(
tags[tag] = aqua_model.freeform_tags[tag]

tags.update({Tags.AQUA_MODEL_NAME_TAG: aqua_model.display_name})
tags.update({Tags.TASK: aqua_model.freeform_tags.get(Tags.TASK, None)})
tags.update({Tags.TASK: aqua_model.freeform_tags.get(Tags.TASK, UNKNOWN)})

# Set up info to get deployment config
config_source_id = model_id
Expand Down Expand Up @@ -533,16 +533,22 @@ def list(self, **kwargs) -> List["AquaDeployment"]:
return results

@telemetry(entry_point="plugin=deployment&action=delete", name="aqua")
def delete(self,model_deployment_id:str):
return self.ds_client.delete_model_deployment(model_deployment_id=model_deployment_id).data
def delete(self, model_deployment_id: str):
return self.ds_client.delete_model_deployment(
model_deployment_id=model_deployment_id
).data

@telemetry(entry_point="plugin=deployment&action=deactivate",name="aqua")
def deactivate(self,model_deployment_id:str):
return self.ds_client.deactivate_model_deployment(model_deployment_id=model_deployment_id).data
@telemetry(entry_point="plugin=deployment&action=deactivate", name="aqua")
def deactivate(self, model_deployment_id: str):
return self.ds_client.deactivate_model_deployment(
model_deployment_id=model_deployment_id
).data

@telemetry(entry_point="plugin=deployment&action=activate",name="aqua")
def activate(self,model_deployment_id:str):
return self.ds_client.activate_model_deployment(model_deployment_id=model_deployment_id).data
@telemetry(entry_point="plugin=deployment&action=activate", name="aqua")
def activate(self, model_deployment_id: str):
return self.ds_client.activate_model_deployment(
model_deployment_id=model_deployment_id
).data

@telemetry(entry_point="plugin=deployment&action=get", name="aqua")
def get(self, model_deployment_id: str, **kwargs) -> "AquaDeploymentDetail":
Expand Down
5 changes: 5 additions & 0 deletions docs/source/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Release Notes
=============

2.12.8
-------
Release date: November 27, 2024
* Fixed bugs in the AI Quick Actions Model Deployment for models registered via Object Storage.

2.12.7
-------
Release date: November 20, 2024
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build-backend = "flit_core.buildapi"

# Required
name = "oracle_ads" # the install (PyPI) name; name for local build in [tool.flit.module] section below
version = "2.12.7"
version = "2.12.8"

# Optional
description = "Oracle Accelerated Data Science SDK"
Expand Down

0 comments on commit e7da7a8

Please sign in to comment.