Sha256: 571280cd3e38db1239b362c5e127918fc811f65960ba6287c0d00118e5e3ff9d

Contents?: true

Size: 1.25 KB

Versions: 171

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 - 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

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

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
files.com-1.0.494 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.493 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.492 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.491 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.490 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.489 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.488 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.487 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.486 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.485 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.484 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.483 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.482 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.481 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.480 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.479 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.478 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.477 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.476 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.475 lib/files.com/models/remote_server_configuration_file.rb