Class: Alula::CameraSetServerConfigProc

Inherits:
RpcResource show all
Defined in:
lib/alula/procedures/camera_set_svr_config_proc.rb

Defined Under Namespace

Classes: Response

Class Method Summary collapse

Methods inherited from RpcResource

ok?, request, wrap_payload

Class Method Details

.call(serial_number:, should_use_s3:) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/alula/procedures/camera_set_svr_config_proc.rb', line 14

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