# Class Encryption (1.21.0)

1.21.0 (latest) 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.2 1.14.0 1.13.1 1.12.5 1.11.0 1.10.1 1.9.1 1.8.2 1.7.0 1.6.1 1.5.0 1.4.3 1.3.2 1.2.1 1.1.0 1.0.1 0.5.1 0.4.1 0.3.1 0.2.1 0.1.0

    Encryption(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Encryption settings.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `id` | `str` Required. Identifier for this set of encryption options. |
| `aes_128` | `https://docs.cloud.google.com/python/docs/reference/transcoder/latest/google.cloud.video.transcoder_v1.types.Encryption.Aes128Encryption` Configuration for AES-128 encryption. This field is a member of `oneof`_ `encryption_mode`. |
| `sample_aes` | `https://docs.cloud.google.com/python/docs/reference/transcoder/latest/google.cloud.video.transcoder_v1.types.Encryption.SampleAesEncryption` Configuration for SAMPLE-AES encryption. This field is a member of `oneof`_ `encryption_mode`. |
| `mpeg_cenc` | `https://docs.cloud.google.com/python/docs/reference/transcoder/latest/google.cloud.video.transcoder_v1.types.Encryption.MpegCommonEncryption` Configuration for MPEG Common Encryption (MPEG-CENC). This field is a member of `oneof`_ `encryption_mode`. |
| `secret_manager_key_source` | `https://docs.cloud.google.com/python/docs/reference/transcoder/latest/google.cloud.video.transcoder_v1.types.Encryption.SecretManagerSource` Keys are stored in Google Secret Manager. This field is a member of `oneof`_ `secret_source`. |
| `drm_systems` | `https://docs.cloud.google.com/python/docs/reference/transcoder/latest/google.cloud.video.transcoder_v1.types.Encryption.DrmSystems` Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled. |

## Classes

### Aes128Encryption

    Aes128Encryption(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Configuration for AES-128 encryption.

### Clearkey

    Clearkey(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Clearkey configuration.

### DrmSystems

    DrmSystems(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines configuration for DRM systems in use.

### Fairplay

    Fairplay(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Fairplay configuration.

### MpegCommonEncryption

    MpegCommonEncryption(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Configuration for MPEG Common Encryption (MPEG-CENC).

### Playready

    Playready(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Playready configuration.

### SampleAesEncryption

    SampleAesEncryption(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Configuration for SAMPLE-AES encryption.

### SecretManagerSource

    SecretManagerSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Configuration for secrets stored in Google Secret Manager.

### Widevine

    Widevine(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Widevine configuration.