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.414 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.413 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.412 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.411 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.410 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.409 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.408 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.407 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.406 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.405 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.404 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.403 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.402 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.401 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.400 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.399 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.398 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.397 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.396 lib/files.com/models/remote_server_configuration_file.rb
files.com-1.0.395 lib/files.com/models/remote_server_configuration_file.rb