Sha256: b199f09138727916c30a83b1db658aceb38204345bf04eddb86f633a8af9e1b7

Contents?: true

Size: 1.18 KB

Versions: 17

Compression:

Stored size: 1.18 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

    # string
    def server_host_key
      @attributes[:server_host_key]
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
files.com-1.0.323 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.322 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.321 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.320 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.319 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.318 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.317 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.316 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.315 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.314 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.313 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.312 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.311 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.310 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.309 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.308 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.307 lib/files.com/models/remote_server_configuration_file.rb