# MetadataStructureSecretRef

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MetadataStructureSecretRef/

Struct for one extracted credential. The name identifies the property and field the
credential belongs to (e.g. "external.connectionString#PASSWORD"); the reference carries
the credential itself, inline as a data URI.

- **Full name:** `MFiles.MetadataStructureSecretRef`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-name"></a>`name` | `string` | 1 | Reference name. |
| <a id="f-ref"></a>`ref` | [`MetadataStructureResourceRef`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MetadataStructureResourceRef/index.md) | 2 | The credential payload. |

<a id="used-in-fields"></a>

## Used in fields

- [`ObjectTypeDecl.secrets`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectTypeDecl/index.md#f-secrets): Per-language translations.
