# Image Execution

This is a base object that contains all you can do about Bundles.

## constructor


Constructor

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **Reference** | `InternalOpenGateAPI` | ❌ | to the API object. |


---
## withEnvFrom(imageExecutionEnvFrom)


Sets the env from for imageExecution

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **imageExecutionEnvFrom** | `array` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withEnvVars(imageExecutionEnvVars)


Sets the env vars for imageExecution

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **imageExecutionEnvVars** | `object` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withIdentifier(identifier)


Sets the identifier attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **identifier** | `string` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withMaxTimeToWaitCallback(asyncResponseMaxTimeToWaitCallback)


Sets the async response with selected timeout

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **asyncResponseMaxTimeToWaitCallback** | `string` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withName(imageExecutionName)


Sets the name for imageExecution

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **imageExecutionName** | `string` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withOrganization(organization)


Set the organization attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **organization** | `string` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withScheduleCronExpression(cronExpression, timezone)


Sets the crontab expression for schedule

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **cronExpression** | `string` | ❌ |  |
| **timezone** | `string` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withScheduleExecuteNow(executeNow)


Sets the executeNow attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **executeNow** | `boolean` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withScheduleFrom(from)


Sets the from attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **from** | `string` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withScheduleMinutesInterval(interval)


Sets the interval for schedule in minutes

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **interval** | `number` | ❌ | in minutes |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withScheduleTo(to)


Sets the to attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **to** | `string` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withTag(imageExecutionTag)


Sets the tag for imageExecution

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **imageExecutionTag** | `string` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---
## withTimeout(timeout)


Sets the execution timeout for imageExecution

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **timeout** | `string` | ❌ |  |

### Retorna

{{% notice tip %}}
**Tipo:** `ImageExecution`
<br>

{{% /notice %}}

---

