Sha256: ed96e54a6859b93a47f3ab842a70424ecee8a4fbd0adfb6c34b6cc06bccc5117
Contents?: true
Size: 1.47 KB
Versions: 10
Compression:
Stored size: 1.47 KB
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product # https://developer.dji.com/doc/cloud-api-tutorial/en/server-api-reference/mqtt/thing-model/gateway/dock/file.html#obtain-upload-temporary-credentials class StorageConfigGetRequestsReplyMessage < Message def self.build_for(storage_config_get_message, output:, result: 0) new( _method: storage_config_get_message._method, tid: storage_config_get_message.tid, bid: storage_config_get_message.bid, timestamp: Time.now.strftime("%s%L").to_i, data: { result: result, output: output } ) end attribute :tid, Types::UUID attribute :bid, Types::UUID attribute :timestamp, Types::Timestamp attribute :_method, Types::String.enum("storage_config_get") attribute :data do attribute :result, Types::Integer attribute :output do attribute :bucket, Types::String attribute :credentials do attribute :access_key_id, Types::String attribute :access_key_secret, Types::String attribute :expire, Types::Integer.constrained(gt: 0) attribute :security_token, Types::String end attribute :endpoint, Types::String attribute :provider, Types::String attribute :region, Types::String attribute :object_key_prefix, Types::String end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems