Class: Files::DirectConnectionInfo
- Inherits:
-
Object
- Object
- Files::DirectConnectionInfo
- Defined in:
- lib/files.com/models/direct_connection_info.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#addresses ⇒ Object
array(string) - Validated ip:port candidates that may be dialed over TCP+TLS for this transfer.
-
#ca_pem ⇒ Object
string - PEM-encoded CA certificate used to verify the Agent's direct transfer TLS certificate.
-
#direct_uri ⇒ Object
string - Signed HTTPS URI for direct Agent transfer traffic.
-
#initialize(attributes = {}, options = {}) ⇒ DirectConnectionInfo
constructor
A new instance of DirectConnectionInfo.
-
#server_name ⇒ Object
string - TLS server name (SNI and Host header) for the Agent's direct transfer listener.
-
#version ⇒ Object
int64 - Direct connection information schema version.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ DirectConnectionInfo
Returns a new instance of DirectConnectionInfo.
7 8 9 10 |
# File 'lib/files.com/models/direct_connection_info.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/direct_connection_info.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/direct_connection_info.rb', line 5 def @options end |
Instance Method Details
#addresses ⇒ Object
array(string) - Validated ip:port candidates that may be dialed over TCP+TLS for this transfer.
23 24 25 |
# File 'lib/files.com/models/direct_connection_info.rb', line 23 def addresses @attributes[:addresses] end |
#ca_pem ⇒ Object
string - PEM-encoded CA certificate used to verify the Agent's direct transfer TLS certificate.
33 34 35 |
# File 'lib/files.com/models/direct_connection_info.rb', line 33 def ca_pem @attributes[:ca_pem] end |
#direct_uri ⇒ Object
string - Signed HTTPS URI for direct Agent transfer traffic.
28 29 30 |
# File 'lib/files.com/models/direct_connection_info.rb', line 28 def direct_uri @attributes[:direct_uri] end |
#server_name ⇒ Object
string - TLS server name (SNI and Host header) for the Agent's direct transfer listener.
18 19 20 |
# File 'lib/files.com/models/direct_connection_info.rb', line 18 def server_name @attributes[:server_name] end |
#version ⇒ Object
int64 - Direct connection information schema version.
13 14 15 |
# File 'lib/files.com/models/direct_connection_info.rb', line 13 def version @attributes[:version] end |