Sha256: 635125dcd83ecb4f81fe9ce10a54e271fd657b868e4eec30ff79dac052409c55

Contents?: true

Size: 537 Bytes

Versions: 26

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

module Alula
  class CameraSetServerConfigProc < Alula::RpcResource
    class Response < Alula::RpcResponse
      attr_accessor :result

      def initialize(response)
        super(response)
        @result = response.data['data']
      end
    end

    def self.call(serial_number:, should_use_s3:)
      request(
        http_method: :post,
        path: "/video/v1/device/#{serial_number}/svrConfig",
        payload: { shouldUseS3: should_use_s3 },
        handler: Response
      )
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
alula-ruby-1.9.15 lib/alula/procedures/camera_set_svr_config_proc.rb
alula-ruby-1.9.14 lib/alula/procedures/camera_set_svr_config_proc.rb
alula-ruby-1.9.13 lib/alula/procedures/camera_set_svr_config_proc.rb
alula-ruby-1.9.12 lib/alula/procedures/camera_set_svr_config_proc.rb
alula-ruby-1.9.11 lib/alula/procedures/camera_set_svr_config_proc.rb
alula-ruby-1.9.10 lib/alula/procedures/camera_set_svr_config_proc.rb