- Notifications
You must be signed in to change notification settings - Fork 60
[ODSC_52446_52447] Get loggroups logids and compartment list #561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
d097c7e 86b75c0 5b66a85 9e9169c a784db3 574f7f0 567d661 7b01fe3 c648a9a cd4f2e8 73f8f7c 91f78e5 f757765 1669f42 5f929d3 61a1b53 abec3f6 b9b1700 4ed895d e35fbae 21c28f3 1586610 93f61a7 e3af5cc a2bfc83 File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -25,6 +25,13 @@ | |
| logger = logging.getLogger(__name__) | ||
| | ||
| | ||
| @dataclass | ||
| class ShapeInfo: | ||
| instance_shape: str | ||
| ocpus: float | ||
| memory_in_gbs: float | ||
| | ||
| | ||
| @dataclass(repr=False) | ||
| class AquaDeployment(DataClassSerializable): | ||
| """Represents an Aqua Model Deployment""" | ||
| | @@ -37,10 +44,8 @@ class AquaDeployment(DataClassSerializable): | |
| created_on: str | ||
VipulMascarenhas marked this conversation as resolved. Outdated Show resolved Hide resolved | ||
| created_by: str | ||
| endpoint: str | ||
| instance_shape: str | ||
| ocpus: float | ||
| memory_in_gbs: float | ||
| console_link: str | ||
| shape_info: ShapeInfo | ||
VipulMascarenhas marked this conversation as resolved. Outdated Show resolved Hide resolved | ||
| | ||
| | ||
| class AquaDeploymentApp(AquaApp): | ||
| | @@ -287,17 +292,7 @@ def from_oci_model_deployment( | |
| instance_shape_config_details = ( | ||
| instance_configuration.model_deployment_instance_shape_config_details | ||
| ) | ||
| return AquaDeployment( | ||
| id=oci_model_deployment.id, | ||
| display_name=oci_model_deployment.display_name, | ||
| aqua_service_model=oci_model_deployment.freeform_tags.get( | ||
| AQUA_SERVICE_MODEL | ||
| ), | ||
| state=oci_model_deployment.lifecycle_state, | ||
| description=oci_model_deployment.description, | ||
| created_on=str(oci_model_deployment.time_created), | ||
| created_by=oci_model_deployment.created_by, | ||
| endpoint=oci_model_deployment.model_deployment_url, | ||
| shape_info = ShapeInfo( | ||
| instance_shape=instance_configuration.instance_shape_name, | ||
| ocpus=( | ||
| instance_shape_config_details.ocpus | ||
| | @@ -309,6 +304,19 @@ def from_oci_model_deployment( | |
| if instance_shape_config_details | ||
| else None | ||
| ), | ||
| ) | ||
| return AquaDeployment( | ||
| id=oci_model_deployment.id, | ||
| display_name=oci_model_deployment.display_name, | ||
| aqua_service_model=oci_model_deployment.freeform_tags.get( | ||
| ||
| AQUA_SERVICE_MODEL | ||
| ), | ||
| shape_info=shape_info, | ||
| state=oci_model_deployment.lifecycle_state, | ||
| description=oci_model_deployment.description, | ||
| created_on=str(oci_model_deployment.time_created), | ||
| created_by=oci_model_deployment.created_by, | ||
| endpoint=oci_model_deployment.model_deployment_url, | ||
| console_link=get_console_link( | ||
| resource="model-deployments", | ||
| ocid=oci_model_deployment.id, | ||
| | ||
Uh oh!
There was an error while loading. Please reload this page.