# Operation Type

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

## constructor


Constructor

### Parámetros

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


---
## applicableTo(applicableTo)


Allows the modification of the applicableTo

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## create()


Create a new Rule


### Retorna

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

{{% /notice %}}

---
## delete()


Deletes the selected RuleConfiguration


### Retorna

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

{{% /notice %}}

---
## fromCatalog(fromCatalog)


Set the catalog

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## update()


Udpate a Rule


### Retorna

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

{{% /notice %}}

---
## withDescription(description)


Set the description attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withIdentifier(name)


Set the name for update attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **name** | `string` | ❌ | required field |

### Retorna

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

{{% /notice %}}

---
## withModels(models)


Allows the modification of the allowed models

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withName(name)


Set the name attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **name** | `string` | ❌ | required field |

### Retorna

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

{{% /notice %}}

---
## withOrganization(organization)


Set the organization attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withParameters(parameters)


Allows the modification of the parameters

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withProfiles(profiles)


Allows the modification of the profiles allowed

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withSteps(steps)


Allows the modification of the steps

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withTitle(title)


Set the title attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **title** | `string` | ❌ | required field |

### Retorna

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

{{% /notice %}}

---

