# Certificates

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

## constructor


Constructor

### Parámetros

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


---
## create(rawFile)


This invoke a request to OpenGate North API and the callback is managed by promises
This method create an element certificate

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **rawFile** | `File` | ❌ | this File is the certificate |

### Retorna

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

{{% /notice %}}

---
## update()


This invoke a request to OpenGate North API and the callback is managed by promises
This method update an element certificate


### Retorna

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

{{% /notice %}}

---
## withAdministrativeState(administrativeState)


Set the administrativeState attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withDescription(description)


Set the description attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withDomains(domains)


Set the domains attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **domains** | `Array` | ❌ |  |

### Retorna

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

{{% /notice %}}

---
## withId(id)


Set the id attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **id** | `string` | ❌ | required field on delete |

### Retorna

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

{{% /notice %}}

---
## withName(name)


Set the name attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withParameters(parameters)


Set the parameters attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **parameters** | `string` | ❌ | optional field |

### Retorna

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

{{% /notice %}}

---
## withTags(tags)


Set the tags attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **tags** | `Array` | ❌ |  |

### Retorna

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

{{% /notice %}}

---
## withUsages(usages)


Set the usages attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **usages** | `Array` | ❌ |  |

### Retorna

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

{{% /notice %}}

---

