Sha256: 50356c821b5aa3f801b5297dd520324b1ebab1d07db3a140399c4e5d68474d40

Contents?: true

Size: 444 Bytes

Versions: 4

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

module Alula
  class CameraSetServerConfigProc < Alula::RpcResource
    class Response < Alula::RpcResponse
    end

    def self.call(serial_number:, should_use_s3:)
      payload = {
        "shouldUseS3": should_use_s3
      }

      request(
        http_method: :post,
        path: "/video/v1/device/#{serial_number}/svrConfig",
        payload: payload,
        handler: Response
      )
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alula-ruby-1.9.9 lib/alula/procedures/camera_set_svr_config_proc.rb
alula-ruby-1.9.8 lib/alula/procedures/camera_set_svr_config_proc.rb
alula-ruby-1.9.7 lib/alula/procedures/camera_set_svr_config_proc.rb
alula-ruby-1.9.6 lib/alula/procedures/camera_set_svr_config_proc.rb