- [JSON representation](https://docs.cloud.google.com/agent-registry/reference/rest/v1alpha/SkillEncryptionSpec.md.txt#SCHEMA_REPRESENTATION)

Once the SkillEncryptionSpec is configured, new Skill payloads are protected using the provided customer-managed encryption key instead of a Google-managed encryption key.

SkillEncryptionSpec cannot be set if any Skills have already been created in the project and location.

| JSON representation |
|---|
| ``` { "name": string, "cryptoKeyName": string, "createTime": string, "updateTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of the SkillEncryptionSpec. Format: `projects/{project}/locations/{location}/skillEncryptionSpec` |
| `cryptoKeyName` | `string` Required. The Cloud KMS CryptoKey resource name used to protect Skill payloads in this project and location. This field can be set or updated only when no Skills exist in the target project and location. Once any Skill exists in the location, updating this field is rejected with `FAILED_PRECONDITION`. Format: `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}` |
| `createTime` | ``string (`Timestamp` format)`` Output only. Creation timestamp. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`Timestamp` format)`` Output only. Most recent update timestamp. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |