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
- request_pb (::Google::Cloud::DeviceStreaming::V1::CancelDeviceSessionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::DeviceStreaming::V1::CreateDeviceSessionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DeviceStreaming::V1::DeviceSession)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DeviceStreaming::V1::DeviceSession) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (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
- request_pb (::Google::Cloud::DeviceStreaming::V1::GetDeviceSessionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DeviceStreaming::V1::DeviceSession)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DeviceStreaming::V1::DeviceSession) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::DeviceStreaming::V1::ListDeviceSessionsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DeviceStreaming::V1::ListDeviceSessionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DeviceStreaming::V1::ListDeviceSessionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#logger
def logger(stub: false) -> Logger
The logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (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
- request_pb (::Google::Cloud::DeviceStreaming::V1::UpdateDeviceSessionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DeviceStreaming::V1::DeviceSession)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::DeviceStreaming::V1::DeviceSession) — A result object deserialized from the server's reply
- (::ArgumentError)