Sha256: c2fa25e35f41b0204de220937466dccf50e38cf8fce35689bdf1e2e04fedeb6f

Contents?: true

Size: 1.25 KB

Versions: 39

Compression:

Stored size: 1.25 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 - private key
    def private_key
      @attributes[:private_key]
    end

    # string
    def subdomain
      @attributes[:subdomain]
    end

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

    # string - Files Agent API Token
    def api_token
      @attributes[:api_token]
    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 - either running or shutdown
    def status
      @attributes[:status]
    end

    # string
    def server_host_key
      @attributes[:server_host_key]
    end

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
files.com-1.1.37 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.36 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.35 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.34 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.33 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.32 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.31 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.30 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.29 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.28 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.27 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.26 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.25 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.24 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.23 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.22 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.21 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.20 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.19 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.1.18 lib/files.com/models/remote_server_configuration_file.rb