Device Streaming V1 API - Class Google::Cloud::DeviceStreaming::V1::DirectAccessService::Rest::ServiceStub (v0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Device Streaming V1 API class Google::Cloud::DeviceStreaming::V1::DirectAccessService::Rest::ServiceStub.
REST service stub for the DirectAccessService service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Device Streaming V1 API - Class Google::Cloud::DeviceStreaming::V1::DirectAccessService::Rest::ServiceStub (v0.1.0)\n\nReference documentation and code samples for the Device Streaming V1 API class Google::Cloud::DeviceStreaming::V1::DirectAccessService::Rest::ServiceStub.\n\nREST service stub for the DirectAccessService service.\nService stub contains baseline method implementations\nincluding transcoding, making the REST call, and deserialing the response. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### #cancel_device_session\n\n def cancel_device_session(request_pb, options = nil) { |result, operation| ... } -\u003e ::Google::Protobuf::Empty\n\nBaseline implementation for the cancel_device_session REST call \n**Parameters**\n\n- **request_pb** ([::Google::Cloud::DeviceStreaming::V1::CancelDeviceSessionRequest](./Google-Cloud-DeviceStreaming-V1-CancelDeviceSessionRequest)) --- A request object representing the call parameters. Required.\n- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** ([::Google::Protobuf::Empty](./Google-Protobuf-Empty))\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- ([::Google::Protobuf::Empty](./Google-Protobuf-Empty)) --- A result object deserialized from the server's reply \n**Raises**\n\n- (::ArgumentError)\n\n### #create_device_session\n\n def create_device_session(request_pb, options = nil) { |result, operation| ... } -\u003e ::Google::Cloud::DeviceStreaming::V1::DeviceSession\n\nBaseline implementation for the create_device_session REST call \n**Parameters**\n\n- **request_pb** ([::Google::Cloud::DeviceStreaming::V1::CreateDeviceSessionRequest](./Google-Cloud-DeviceStreaming-V1-CreateDeviceSessionRequest)) --- A request object representing the call parameters. Required.\n- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** ([::Google::Cloud::DeviceStreaming::V1::DeviceSession](./Google-Cloud-DeviceStreaming-V1-DeviceSession))\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- ([::Google::Cloud::DeviceStreaming::V1::DeviceSession](./Google-Cloud-DeviceStreaming-V1-DeviceSession)) --- A result object deserialized from the server's reply \n**Raises**\n\n- (::ArgumentError)\n\n### #endpoint\n\n def endpoint() -\u003e String\n\nThe effective endpoint \n**Returns**\n\n- (String)\n\n### #get_device_session\n\n def get_device_session(request_pb, options = nil) { |result, operation| ... } -\u003e ::Google::Cloud::DeviceStreaming::V1::DeviceSession\n\nBaseline implementation for the get_device_session REST call \n**Parameters**\n\n- **request_pb** ([::Google::Cloud::DeviceStreaming::V1::GetDeviceSessionRequest](./Google-Cloud-DeviceStreaming-V1-GetDeviceSessionRequest)) --- A request object representing the call parameters. Required.\n- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** ([::Google::Cloud::DeviceStreaming::V1::DeviceSession](./Google-Cloud-DeviceStreaming-V1-DeviceSession))\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- ([::Google::Cloud::DeviceStreaming::V1::DeviceSession](./Google-Cloud-DeviceStreaming-V1-DeviceSession)) --- A result object deserialized from the server's reply \n**Raises**\n\n- (::ArgumentError)\n\n### #list_device_sessions\n\n def list_device_sessions(request_pb, options = nil) { |result, operation| ... } -\u003e ::Google::Cloud::DeviceStreaming::V1::ListDeviceSessionsResponse\n\nBaseline implementation for the list_device_sessions REST call \n**Parameters**\n\n- **request_pb** ([::Google::Cloud::DeviceStreaming::V1::ListDeviceSessionsRequest](./Google-Cloud-DeviceStreaming-V1-ListDeviceSessionsRequest)) --- A request object representing the call parameters. Required.\n- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** ([::Google::Cloud::DeviceStreaming::V1::ListDeviceSessionsResponse](./Google-Cloud-DeviceStreaming-V1-ListDeviceSessionsResponse))\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- ([::Google::Cloud::DeviceStreaming::V1::ListDeviceSessionsResponse](./Google-Cloud-DeviceStreaming-V1-ListDeviceSessionsResponse)) --- A result object deserialized from the server's reply \n**Raises**\n\n- (::ArgumentError)\n\n### #logger\n\n def logger(stub: false) -\u003e Logger\n\nThe logger used for request/response debug logging. \n**Returns**\n\n- (Logger)\n\n### #universe_domain\n\n def universe_domain() -\u003e String\n\nThe effective universe domain \n**Returns**\n\n- (String)\n\n### #update_device_session\n\n def update_device_session(request_pb, options = nil) { |result, operation| ... } -\u003e ::Google::Cloud::DeviceStreaming::V1::DeviceSession\n\nBaseline implementation for the update_device_session REST call \n**Parameters**\n\n- **request_pb** ([::Google::Cloud::DeviceStreaming::V1::UpdateDeviceSessionRequest](./Google-Cloud-DeviceStreaming-V1-UpdateDeviceSessionRequest)) --- A request object representing the call parameters. Required.\n- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** ([::Google::Cloud::DeviceStreaming::V1::DeviceSession](./Google-Cloud-DeviceStreaming-V1-DeviceSession))\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- ([::Google::Cloud::DeviceStreaming::V1::DeviceSession](./Google-Cloud-DeviceStreaming-V1-DeviceSession)) --- A result object deserialized from the server's reply \n**Raises**\n\n- (::ArgumentError)"]]