Device Streaming V1 API - Class Google::Cloud::DeviceStreaming::V1::DirectAccessService::Rest::ServiceStub (v0.1.0)

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.

Inherits

  • Object

Methods

#cancel_device_session

def cancel_device_session(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the cancel_device_session REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_device_session

def create_device_session(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DeviceStreaming::V1::DeviceSession

Baseline implementation for the create_device_session REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_device_session

def get_device_session(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DeviceStreaming::V1::DeviceSession

Baseline implementation for the get_device_session REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_device_sessions

def list_device_sessions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DeviceStreaming::V1::ListDeviceSessionsResponse

Baseline implementation for the list_device_sessions REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_device_session

def update_device_session(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::DeviceStreaming::V1::DeviceSession

Baseline implementation for the update_device_session REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)