Sha256: 56079db489b257b46e0cf472c8f6e36400346e637c16a2bcb2ec34806c29bd72

Contents?: true

Size: 1.1 KB

Versions: 3

Compression:

Stored size: 1.1 KB

Contents

# frozen_string_literal: true

module Files
  class RemoteServerConfigurationFile
    attr_reader :options, :attributes

    def initialize(attributes = {}, options = {})
      @attributes = attributes || {}
      @options = options || {}
    end

    # int64 - Agent ID
    def id
      @attributes[:id]
    end

    # string -
    def permission_set
      @attributes[:permission_set]
    end

    # string - Files Agent API Token
    def api_token
      @attributes[:api_token]
    end

    # string - Agent local root path
    def root
      @attributes[:root]
    end

    # int64 - Incoming port for files agent connections
    def port
      @attributes[:port]
    end

    # string
    def hostname
      @attributes[:hostname]
    end

    # string - public key
    def public_key
      @attributes[:public_key]
    end

    # string - private key
    def private_key
      @attributes[:private_key]
    end

    # string - either running or shutdown
    def status
      @attributes[:status]
    end

    # string - agent config version
    def config_version
      @attributes[:config_version]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
files.com-1.0.306 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.305 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.304 lib/files.com/models/remote_server_configuration_file.rb