Class: Files::RemoteServerConfigurationFile

Inherits:
Object
  • Object
show all
Defined in:
lib/files.com/models/remote_server_configuration_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}, options = {}) ⇒ RemoteServerConfigurationFile

Returns a new instance of RemoteServerConfigurationFile.



7
8
9
10
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 7

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

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 5

def attributes
  @attributes
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 5

def options
  @options
end

Instance Method Details

#api_tokenObject

string - Files Agent API Token



23
24
25
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 23

def api_token
  @attributes[:api_token]
end

#config_versionObject

string - agent config version



58
59
60
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 58

def config_version
  @attributes[:config_version]
end

#hostnameObject

string



38
39
40
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 38

def hostname
  @attributes[:hostname]
end

#idObject

int64 - Agent ID



13
14
15
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 13

def id
  @attributes[:id]
end

#permission_setObject

string -



18
19
20
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 18

def permission_set
  @attributes[:permission_set]
end

#portObject

int64 - Incoming port for files agent connections



33
34
35
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 33

def port
  @attributes[:port]
end

#private_keyObject

string - private key



48
49
50
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 48

def private_key
  @attributes[:private_key]
end

#public_keyObject

string - public key



43
44
45
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 43

def public_key
  @attributes[:public_key]
end

#rootObject

string - Agent local root path



28
29
30
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 28

def root
  @attributes[:root]
end

#server_host_keyObject

string



63
64
65
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 63

def server_host_key
  @attributes[:server_host_key]
end

#statusObject

string - either running or shutdown



53
54
55
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 53

def status
  @attributes[:status]
end

#subdomainObject

string



68
69
70
# File 'lib/files.com/models/remote_server_configuration_file.rb', line 68

def subdomain
  @attributes[:subdomain]
end