# Device Streaming V1 API - Class Google::Cloud::DeviceStreaming::V1::CreateDeviceSessionRequest (v0.3.0)

0.3.0 (latest) 0.2.1 0.1.0 Reference documentation and code samples for the Device Streaming V1 API class Google::Cloud::DeviceStreaming::V1::CreateDeviceSessionRequest.

Request message for DirectAccessService.CreateDeviceSession.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #device_session

    def device_session() -> ::Google::Cloud::DeviceStreaming::V1::DeviceSession

**Returns**

- ([::Google::Cloud::DeviceStreaming::V1::DeviceSession](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-device_streaming-v1/latest/Google-Cloud-DeviceStreaming-V1-DeviceSession)) --- Required. A DeviceSession to create.

### #device_session=

    def device_session=(value) -> ::Google::Cloud::DeviceStreaming::V1::DeviceSession

**Parameter**

- **value** ([::Google::Cloud::DeviceStreaming::V1::DeviceSession](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-device_streaming-v1/latest/Google-Cloud-DeviceStreaming-V1-DeviceSession)) --- Required. A DeviceSession to create.
**Returns**

- ([::Google::Cloud::DeviceStreaming::V1::DeviceSession](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-device_streaming-v1/latest/Google-Cloud-DeviceStreaming-V1-DeviceSession)) --- Required. A DeviceSession to create.

### #device_session_id

    def device_session_id() -> ::String

**Returns**

- (::String) --- 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\]-/.

### #device_session_id=

    def device_session_id=(value) -> ::String

**Parameter**

- **value** (::String) --- 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\]-/.
**Returns**

- (::String) --- 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\]-/.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"
**Returns**

- (::String) --- Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"