# ModelDeployment

Model deployment management for serving infrastructure.

This class manages containerized model deployments including resource allocation, scaling, and activation status.

## Examples

Get and update deployment:

```python
# Get deployment
deployment = ModelDeployment.of(model_id=model.id)

# Update resources
deployment.replicas = 3
deployment.cpu = 1000
deployment.memory = 2048
job = deployment.update()
job.wait()
```

Initialize ModelDeployment instance.

## Parameters

| Parameter  | Type          | Required | Default | Description      |
| ---------- | ------------- | -------- | ------- | ---------------- |
| `model_id` | `UUID \| str` | ✓        | `-`     | Model identifier |

## update()

Update an existing model deployment.

**Return type:** *Job*

## *classmethod* of(model\_id)

Get model deployment instance of the given model

### Parameters

| Parameter  | Type          | Required | Default | Description      |
| ---------- | ------------- | -------- | ------- | ---------------- |
| `model_id` | `UUID \| str` | ✓        | `-`     | Model identifier |

### Returns

ModelDeployment instance

**Return type:** [*ModelDeployment*](#modeldeployment)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fiddler.ai/api/fiddler-python-client-sdk/entities/model-deployment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
