# Class CreateDeviceSessionRequest (0.5.0)

0.5.0 (latest) 0.4.0 0.3.0 0.2.0 0.1.0

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

Request message for DirectAccessService.CreateDeviceSession.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `parent` | `str` Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}". |
| `device_session` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.DeviceSession` Required. A DeviceSession to create. |
| `device_session_id` | `str` Optional. The ID to use for the DeviceSession, which will become the final component of the DeviceSession's resource name. This value should be 4-63 characters, and valid characters are /`a-z][0-9]`-/. |