Class: Files::RemoteServer
- Inherits:
-
Object
- Object
- Files::RemoteServer
- Defined in:
- lib/files.com/models/remote_server.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
-
.agent_push_update(id, params = {}, options = {}) ⇒ Object
Push update to Files Agent.
- .all(params = {}, options = {}) ⇒ Object
-
.authenticate_agent(id, params = {}, options = {}) ⇒ Object
Authenticate a Files Agent Proxy.
-
.configuration_file(id, params = {}, options = {}) ⇒ Object
Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent).
-
.create(params = {}, options = {}) ⇒ Object
Parameters: password - string - Password, if needed.
-
.create_export(params = {}, options = {}) ⇒ Object
Parameters: sort_by - object - If set, sort records by the specified field in either
ascordescdirection. - .delete(id, params = {}, options = {}) ⇒ Object
- .destroy(id, params = {}, options = {}) ⇒ Object
-
.disconnect_agent(id, params = {}, options = {}) ⇒ Object
Disconnect a Files Agent Proxy.
-
.find(id, params = {}, options = {}) ⇒ Object
Parameters: id (required) - int64 - Remote Server ID.
-
.find_configuration_file(id, params = {}, options = {}) ⇒ Object
Parameters: id (required) - int64 - Remote Server ID.
-
.find_ping_agent(id, params = {}, options = {}) ⇒ Object
Parameters: id (required) - int64 - Remote Server ID.
- .get(id, params = {}, options = {}) ⇒ Object
-
.list(params = {}, options = {}) ⇒ Object
Parameters: cursor - string - Used for pagination.
-
.list_for_testing(params = {}, options = {}) ⇒ Object
Parameters: aws_access_key - string - AWS: Access Key aws_secret_key - string - AWS: Secret Key azure_blob_storage_access_key - string - Azure Blob Storage: Secret Key azure_blob_storage_account - string azure_blob_storage_container - string azure_blob_storage_dns_suffix - string azure_blob_storage_hierarchical_namespace - boolean azure_blob_storage_sas_token - string - Azure Blob Storage: Shared Access Signature (SAS) token azure_files_storage_access_key - string - Azure Files: Access Key azure_files_storage_account - string azure_files_storage_dns_suffix - string azure_files_storage_sas_token - string - Azure Files: Shared Access Signature (SAS) token azure_files_storage_share_name - string backblaze_b2_application_key - string - Backblaze B2 Cloud Storage: applicationKey backblaze_b2_bucket - string backblaze_b2_key_id - string - Backblaze B2 Cloud Storage: keyID backblaze_b2_s3_endpoint - string buffer_uploads - string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server.
-
.update(id, params = {}, options = {}) ⇒ Object
Parameters: password - string - Password, if needed.
Instance Method Summary collapse
-
#agent_push_update(params = {}) ⇒ Object
Push update to Files Agent.
-
#allow_relative_paths ⇒ Object
boolean - Allow relative paths in SFTP.
- #allow_relative_paths=(value) ⇒ Object
-
#auth_account_name ⇒ Object
string - Describes the authorized account.
- #auth_account_name=(value) ⇒ Object
-
#auth_setup_link ⇒ Object
string - Returns link to login with an Oauth provider.
- #auth_setup_link=(value) ⇒ Object
-
#auth_status ⇒ Object
string - Either
in_setuporcomplete. - #auth_status=(value) ⇒ Object
-
#authenticate_agent(params = {}) ⇒ Object
Authenticate a Files Agent Proxy.
-
#authentication_method ⇒ Object
string - Type of authentication method to use.
- #authentication_method=(value) ⇒ Object
-
#aws_access_key ⇒ Object
string - AWS Access Key.
- #aws_access_key=(value) ⇒ Object
-
#aws_secret_key ⇒ Object
string - AWS: secret key.
- #aws_secret_key=(value) ⇒ Object
-
#azure_blob_storage_access_key ⇒ Object
string - Azure Blob Storage: Access Key.
- #azure_blob_storage_access_key=(value) ⇒ Object
-
#azure_blob_storage_account ⇒ Object
string - Azure Blob Storage: Account name.
- #azure_blob_storage_account=(value) ⇒ Object
-
#azure_blob_storage_container ⇒ Object
string - Azure Blob Storage: Container name.
- #azure_blob_storage_container=(value) ⇒ Object
-
#azure_blob_storage_dns_suffix ⇒ Object
string - Azure Blob Storage: Custom DNS suffix.
- #azure_blob_storage_dns_suffix=(value) ⇒ Object
-
#azure_blob_storage_hierarchical_namespace ⇒ Object
boolean - Azure Blob Storage: Does the storage account has hierarchical namespace feature enabled?.
- #azure_blob_storage_hierarchical_namespace=(value) ⇒ Object
-
#azure_blob_storage_sas_token ⇒ Object
string - Azure Blob Storage: Shared Access Signature (SAS) token.
- #azure_blob_storage_sas_token=(value) ⇒ Object
-
#azure_files_storage_access_key ⇒ Object
string - Azure File Storage: Access Key.
- #azure_files_storage_access_key=(value) ⇒ Object
-
#azure_files_storage_account ⇒ Object
string - Azure Files: Storage Account name.
- #azure_files_storage_account=(value) ⇒ Object
-
#azure_files_storage_dns_suffix ⇒ Object
string - Azure Files: Custom DNS suffix.
- #azure_files_storage_dns_suffix=(value) ⇒ Object
-
#azure_files_storage_sas_token ⇒ Object
string - Azure File Storage: Shared Access Signature (SAS) token.
- #azure_files_storage_sas_token=(value) ⇒ Object
-
#azure_files_storage_share_name ⇒ Object
string - Azure Files: Storage Share name.
- #azure_files_storage_share_name=(value) ⇒ Object
-
#backblaze_b2_application_key ⇒ Object
string - Backblaze B2 Cloud Storage: applicationKey.
- #backblaze_b2_application_key=(value) ⇒ Object
-
#backblaze_b2_bucket ⇒ Object
string - Backblaze B2 Cloud Storage: Bucket name.
- #backblaze_b2_bucket=(value) ⇒ Object
-
#backblaze_b2_key_id ⇒ Object
string - Backblaze B2 Cloud Storage: keyID.
- #backblaze_b2_key_id=(value) ⇒ Object
-
#backblaze_b2_s3_endpoint ⇒ Object
string - Backblaze B2 Cloud Storage: S3 Endpoint.
- #backblaze_b2_s3_endpoint=(value) ⇒ Object
-
#buffer_uploads ⇒ Object
string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server.
- #buffer_uploads=(value) ⇒ Object
-
#cloudflare_access_key ⇒ Object
string - Cloudflare: Access Key.
- #cloudflare_access_key=(value) ⇒ Object
-
#cloudflare_bucket ⇒ Object
string - Cloudflare: Bucket name.
- #cloudflare_bucket=(value) ⇒ Object
-
#cloudflare_endpoint ⇒ Object
string - Cloudflare: endpoint.
- #cloudflare_endpoint=(value) ⇒ Object
-
#cloudflare_secret_key ⇒ Object
string - Cloudflare: Secret Key.
- #cloudflare_secret_key=(value) ⇒ Object
-
#configuration_file(params = {}) ⇒ Object
Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent).
- #delete(params = {}) ⇒ Object
-
#description ⇒ Object
string - Internal description for your reference.
- #description=(value) ⇒ Object
- #destroy(params = {}) ⇒ Object
-
#disabled ⇒ Object
boolean - If true, this Remote Server has been disabled due to failures.
- #disabled=(value) ⇒ Object
-
#disconnect_agent(params = {}) ⇒ Object
Disconnect a Files Agent Proxy.
-
#dropbox_teams ⇒ Object
boolean - Dropbox: If true, list Team folders in root?.
- #dropbox_teams=(value) ⇒ Object
-
#enable_dedicated_ips ⇒ Object
boolean -
trueif remote server only accepts connections from dedicated IPs. - #enable_dedicated_ips=(value) ⇒ Object
-
#filebase_access_key ⇒ Object
string - Filebase: Access Key.
- #filebase_access_key=(value) ⇒ Object
-
#filebase_bucket ⇒ Object
string - Filebase: Bucket name.
- #filebase_bucket=(value) ⇒ Object
-
#filebase_secret_key ⇒ Object
string - Filebase: Secret Key.
- #filebase_secret_key=(value) ⇒ Object
-
#files_agent_api_token ⇒ Object
string - Files Agent API Token.
- #files_agent_api_token=(value) ⇒ Object
-
#files_agent_latest_version ⇒ Object
string - Latest available Files Agent version.
- #files_agent_latest_version=(value) ⇒ Object
-
#files_agent_permission_set ⇒ Object
string - Local permissions for files agent.
- #files_agent_permission_set=(value) ⇒ Object
-
#files_agent_root ⇒ Object
string - Agent local root path.
- #files_agent_root=(value) ⇒ Object
-
#files_agent_supports_push_updates ⇒ Object
boolean - Files Agent supports receiving push updates.
- #files_agent_supports_push_updates=(value) ⇒ Object
-
#files_agent_up_to_date ⇒ Object
boolean - If true, the Files Agent is up to date.
- #files_agent_up_to_date=(value) ⇒ Object
-
#files_agent_version ⇒ Object
string - Files Agent version.
- #files_agent_version=(value) ⇒ Object
-
#files_api_key ⇒ Object
string - Files.com direct link: API key used once to pair the remote server.
- #files_api_key=(value) ⇒ Object
-
#files_api_key_prefix ⇒ Object
string - Files.com direct link: paired API key prefix.
- #files_api_key_prefix=(value) ⇒ Object
-
#google_cloud_storage_authentication_method ⇒ Object
string - Google Cloud Storage: Authentication method.
- #google_cloud_storage_authentication_method=(value) ⇒ Object
-
#google_cloud_storage_bucket ⇒ Object
string - Google Cloud Storage: Bucket Name.
- #google_cloud_storage_bucket=(value) ⇒ Object
-
#google_cloud_storage_credentials_json ⇒ Object
string - Google Cloud Storage: JSON file that contains the private key.
- #google_cloud_storage_credentials_json=(value) ⇒ Object
-
#google_cloud_storage_oauth_scope ⇒ Object
string - Google Cloud Storage: OAuth scope.
- #google_cloud_storage_oauth_scope=(value) ⇒ Object
-
#google_cloud_storage_project_id ⇒ Object
string - Google Cloud Storage: Project ID.
- #google_cloud_storage_project_id=(value) ⇒ Object
-
#google_cloud_storage_s3_compatible_access_key ⇒ Object
string - Google Cloud Storage: S3-compatible Access Key.
- #google_cloud_storage_s3_compatible_access_key=(value) ⇒ Object
-
#google_cloud_storage_s3_compatible_secret_key ⇒ Object
string - Google Cloud Storage: S3-compatible secret key.
- #google_cloud_storage_s3_compatible_secret_key=(value) ⇒ Object
-
#hostname ⇒ Object
string - Hostname or IP address.
- #hostname=(value) ⇒ Object
-
#id ⇒ Object
int64 - Remote Server ID.
- #id=(value) ⇒ Object
-
#initialize(attributes = {}, options = {}) ⇒ RemoteServer
constructor
A new instance of RemoteServer.
-
#linode_access_key ⇒ Object
string - Linode: Access Key.
- #linode_access_key=(value) ⇒ Object
-
#linode_bucket ⇒ Object
string - Linode: Bucket name.
- #linode_bucket=(value) ⇒ Object
-
#linode_region ⇒ Object
string - Linode: region.
- #linode_region=(value) ⇒ Object
-
#linode_secret_key ⇒ Object
string - Linode: Secret Key.
- #linode_secret_key=(value) ⇒ Object
-
#max_connections ⇒ Object
int64 - Max number of parallel connections.
- #max_connections=(value) ⇒ Object
-
#name ⇒ Object
string - Internal name for your reference.
- #name=(value) ⇒ Object
-
#one_drive_account_type ⇒ Object
string - OneDrive: Either personal or business_other account types.
- #one_drive_account_type=(value) ⇒ Object
-
#outbound_agent_id ⇒ Object
int64 - Route traffic to outbound on a files-agent.
- #outbound_agent_id=(value) ⇒ Object
-
#password ⇒ Object
string - Password, if needed.
- #password=(value) ⇒ Object
-
#pin_to_site_region ⇒ Object
boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site.
- #pin_to_site_region=(value) ⇒ Object
-
#pinned_region ⇒ Object
string - If set, all communications with this remote server are made through the provided region.
- #pinned_region=(value) ⇒ Object
-
#port ⇒ Object
int64 - Port for remote server.
- #port=(value) ⇒ Object
-
#private_key ⇒ Object
string - Private key, if needed.
- #private_key=(value) ⇒ Object
-
#private_key_passphrase ⇒ Object
string - Passphrase for private key if needed.
- #private_key_passphrase=(value) ⇒ Object
-
#remote_home_path ⇒ Object
string - Initial home folder on remote server.
- #remote_home_path=(value) ⇒ Object
-
#remote_server_credential_id ⇒ Object
int64 - ID of Remote Server Credential, if applicable.
- #remote_server_credential_id=(value) ⇒ Object
-
#reset_authentication ⇒ Object
boolean - Reset authenticated account?.
- #reset_authentication=(value) ⇒ Object
-
#s3_assume_role_arn ⇒ Object
string - AWS IAM Role ARN for AssumeRole authentication.
- #s3_assume_role_arn=(value) ⇒ Object
-
#s3_assume_role_duration_seconds ⇒ Object
int64 - Session duration in seconds for AssumeRole authentication (900-43200).
- #s3_assume_role_duration_seconds=(value) ⇒ Object
-
#s3_assume_role_external_id ⇒ Object
string - External ID for AssumeRole authentication.
- #s3_assume_role_external_id=(value) ⇒ Object
-
#s3_bucket ⇒ Object
string - S3 bucket name.
- #s3_bucket=(value) ⇒ Object
-
#s3_compatible_access_key ⇒ Object
string - S3-compatible: Access Key.
- #s3_compatible_access_key=(value) ⇒ Object
-
#s3_compatible_bucket ⇒ Object
string - S3-compatible: Bucket name.
- #s3_compatible_bucket=(value) ⇒ Object
-
#s3_compatible_endpoint ⇒ Object
string - S3-compatible: endpoint.
- #s3_compatible_endpoint=(value) ⇒ Object
-
#s3_compatible_region ⇒ Object
string - S3-compatible: region.
- #s3_compatible_region=(value) ⇒ Object
-
#s3_compatible_secret_key ⇒ Object
string - S3-compatible: Secret Key.
- #s3_compatible_secret_key=(value) ⇒ Object
-
#s3_compatible_virtual_hosted_style ⇒ Object
boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs.
- #s3_compatible_virtual_hosted_style=(value) ⇒ Object
-
#s3_region ⇒ Object
string - S3 region.
- #s3_region=(value) ⇒ Object
- #save ⇒ Object
-
#server_certificate ⇒ Object
string - Remote server certificate.
- #server_certificate=(value) ⇒ Object
-
#server_host_key ⇒ Object
string - Remote server SSH Host Key.
- #server_host_key=(value) ⇒ Object
-
#server_type ⇒ Object
string - Remote server type.
- #server_type=(value) ⇒ Object
-
#ssl ⇒ Object
string - Should we require SSL?.
- #ssl=(value) ⇒ Object
-
#ssl_certificate ⇒ Object
string - SSL client certificate.
- #ssl_certificate=(value) ⇒ Object
-
#supports_versioning ⇒ Object
boolean - If true, this remote server supports file versioning.
- #supports_versioning=(value) ⇒ Object
-
#update(params = {}) ⇒ Object
Parameters: password - string - Password, if needed.
-
#upload_staging_path ⇒ Object
string - Upload staging path.
- #upload_staging_path=(value) ⇒ Object
-
#username ⇒ Object
string - Remote server username.
- #username=(value) ⇒ Object
-
#wasabi_access_key ⇒ Object
string - Wasabi: Access Key.
- #wasabi_access_key=(value) ⇒ Object
-
#wasabi_bucket ⇒ Object
string - Wasabi: Bucket name.
- #wasabi_bucket=(value) ⇒ Object
-
#wasabi_region ⇒ Object
string - Wasabi: Region.
- #wasabi_region=(value) ⇒ Object
-
#wasabi_secret_key ⇒ Object
string - Wasabi: Secret Key.
- #wasabi_secret_key=(value) ⇒ Object
-
#workspace_id ⇒ Object
int64 - Workspace ID (0 for default workspace).
- #workspace_id=(value) ⇒ Object
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ RemoteServer
Returns a new instance of RemoteServer.
7 8 9 10 |
# File 'lib/files.com/models/remote_server.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/remote_server.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/remote_server.rb', line 5 def @options end |
Class Method Details
.agent_push_update(id, params = {}, options = {}) ⇒ Object
Push update to Files Agent
1350 1351 1352 1353 1354 1355 1356 1357 1358 |
# File 'lib/files.com/models/remote_server.rb', line 1350 def self.agent_push_update(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params[:id] response, = Api.send_request("/remote_servers/#{params[:id]}/agent_push_update", :post, params, ) AgentPushUpdate.new(response.data, ) end |
.all(params = {}, options = {}) ⇒ Object
1149 1150 1151 |
# File 'lib/files.com/models/remote_server.rb', line 1149 def self.all(params = {}, = {}) list(params, ) end |
.authenticate_agent(id, params = {}, options = {}) ⇒ Object
Authenticate a Files Agent Proxy
Parameters:
signed_nonce - string - Signed nonce
proxy_registration_refresh - boolean - Proxy is refreshing an already validated agent registration
agent_version - string - Agent version
peer_id - string - Peer ID
proxy_url - string - Files Agent Proxy URL
proxy_host_header - string - Files Agent Proxy Host Header
root - string - Agent local root path
agent_hostname - string - Agent local hostname used for system identification
downstream_proxy_port - int64 - Agent downstream proxy port
agent_platform - string - Agent Platform (OS/Architecture)
permission_set - string - Permission set
supports_push_updates - boolean - Agent supports push updates
1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 |
# File 'lib/files.com/models/remote_server.rb', line 1392 def self.authenticate_agent(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: signed_nonce must be an String") if params[:signed_nonce] and !params[:signed_nonce].is_a?(String) raise InvalidParameterError.new("Bad parameter: agent_version must be an String") if params[:agent_version] and !params[:agent_version].is_a?(String) raise InvalidParameterError.new("Bad parameter: peer_id must be an String") if params[:peer_id] and !params[:peer_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: proxy_url must be an String") if params[:proxy_url] and !params[:proxy_url].is_a?(String) raise InvalidParameterError.new("Bad parameter: proxy_host_header must be an String") if params[:proxy_host_header] and !params[:proxy_host_header].is_a?(String) raise InvalidParameterError.new("Bad parameter: root must be an String") if params[:root] and !params[:root].is_a?(String) raise InvalidParameterError.new("Bad parameter: agent_hostname must be an String") if params[:agent_hostname] and !params[:agent_hostname].is_a?(String) raise InvalidParameterError.new("Bad parameter: downstream_proxy_port must be an Integer") if params[:downstream_proxy_port] and !params[:downstream_proxy_port].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: agent_platform must be an String") if params[:agent_platform] and !params[:agent_platform].is_a?(String) raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String) raise MissingParameterError.new("Parameter missing: id") unless params[:id] response, = Api.send_request("/remote_servers/#{params[:id]}/authenticate_agent", :post, params, ) AgentV2Auth.new(response.data, ) end |
.configuration_file(id, params = {}, options = {}) ⇒ Object
Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
Parameters:
api_token - string - Files Agent API Token
permission_set - string - The permission set for the agent ['read_write', 'read_only', 'write_only']
root - string - The root directory for the agent
hostname - string
port - int64 - Incoming port for files agent connections
status - string - either running or shutdown
config_version - string - agent config version
private_key - string - The private key for the agent
public_key - string - public key
server_host_key - string
subdomain - string - Files.com subdomain site name
1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 |
# File 'lib/files.com/models/remote_server.rb', line 1426 def self.configuration_file(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: api_token must be an String") if params[:api_token] and !params[:api_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String) raise InvalidParameterError.new("Bad parameter: root must be an String") if params[:root] and !params[:root].is_a?(String) raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String) raise InvalidParameterError.new("Bad parameter: port must be an Integer") if params[:port] and !params[:port].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: status must be an String") if params[:status] and !params[:status].is_a?(String) raise InvalidParameterError.new("Bad parameter: config_version must be an String") if params[:config_version] and !params[:config_version].is_a?(String) raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: public_key must be an String") if params[:public_key] and !params[:public_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if params[:subdomain] and !params[:subdomain].is_a?(String) raise MissingParameterError.new("Parameter missing: id") unless params[:id] response, = Api.send_request("/remote_servers/#{params[:id]}/configuration_file", :post, params, ) RemoteServerConfigurationFile.new(response.data, ) end |
.create(params = {}, options = {}) ⇒ Object
Parameters:
password - string - Password, if needed.
private_key - string - Private key, if needed.
private_key_passphrase - string - Passphrase for private key if needed.
reset_authentication - boolean - Reset authenticated account?
ssl_certificate - string - SSL client certificate.
aws_secret_key - string - AWS: secret key.
azure_blob_storage_access_key - string - Azure Blob Storage: Access Key
azure_blob_storage_sas_token - string - Azure Blob Storage: Shared Access Signature (SAS) token
azure_files_storage_access_key - string - Azure File Storage: Access Key
azure_files_storage_sas_token - string - Azure File Storage: Shared Access Signature (SAS) token
backblaze_b2_application_key - string - Backblaze B2 Cloud Storage: applicationKey
backblaze_b2_key_id - string - Backblaze B2 Cloud Storage: keyID
cloudflare_secret_key - string - Cloudflare: Secret Key
filebase_secret_key - string - Filebase: Secret Key
google_cloud_storage_credentials_json - string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
linode_secret_key - string - Linode: Secret Key
s3_compatible_secret_key - string - S3-compatible: Secret Key
wasabi_secret_key - string - Wasabi: Secret Key
allow_relative_paths - boolean - Allow relative paths in SFTP. If true, paths will not be forced to be absolute, allowing operations relative to the user's home directory.
aws_access_key - string - AWS Access Key.
azure_blob_storage_account - string - Azure Blob Storage: Account name
azure_blob_storage_container - string - Azure Blob Storage: Container name
azure_blob_storage_dns_suffix - string - Azure Blob Storage: Custom DNS suffix
azure_blob_storage_hierarchical_namespace - boolean - Azure Blob Storage: Does the storage account has hierarchical namespace feature enabled?
azure_files_storage_account - string - Azure Files: Storage Account name
azure_files_storage_dns_suffix - string - Azure Files: Custom DNS suffix
azure_files_storage_share_name - string - Azure Files: Storage Share name
backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
buffer_uploads - string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com. If set to auto, we will perform this optimization if we believe it to be a benefit in a given situation.
cloudflare_access_key - string - Cloudflare: Access Key.
cloudflare_bucket - string - Cloudflare: Bucket name
cloudflare_endpoint - string - Cloudflare: endpoint
description - string - Internal description for your reference
dropbox_teams - boolean - Dropbox: If true, list Team folders in root?
enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
filebase_access_key - string - Filebase: Access Key.
filebase_bucket - string - Filebase: Bucket name
files_api_key - string - Files.com direct link: API key used once to pair the remote server.
files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
files_agent_root - string - Agent local root path
files_agent_version - string - Files Agent version
outbound_agent_id - int64 - Route traffic to outbound on a files-agent
google_cloud_storage_authentication_method - string - Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
google_cloud_storage_oauth_scope - string - Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
hostname - string - Hostname or IP address
linode_access_key - string - Linode: Access Key
linode_bucket - string - Linode: Bucket name
linode_region - string - Linode: region
max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
name - string - Internal name for your reference
one_drive_account_type - string - OneDrive: Either personal or business_other account types
pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
port - int64 - Port for remote server.
upload_staging_path - string - Upload staging path. Applies to SFTP only. If a path is provided here, files will first be uploaded to this path on the remote folder and the moved into the final correct path via an SFTP move command. This is required by some remote MFT systems to emulate atomic uploads, which are otherwise not supoprted by SFTP.
remote_server_credential_id - int64 - ID of Remote Server Credential, if applicable.
s3_assume_role_arn - string - AWS IAM Role ARN for AssumeRole authentication.
s3_assume_role_duration_seconds - int64 - Session duration in seconds for AssumeRole authentication (900-43200).
s3_bucket - string - S3 bucket name
s3_compatible_access_key - string - S3-compatible: Access Key
s3_compatible_bucket - string - S3-compatible: Bucket name
s3_compatible_endpoint - string - S3-compatible: endpoint
s3_compatible_region - string - S3-compatible: region
s3_compatible_virtual_hosted_style - boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
s3_region - string - S3 region
server_certificate - string - Remote server certificate
server_host_key - string - Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
server_type - string - Remote server type.
ssl - string - Should we require SSL?
username - string - Remote server username.
wasabi_access_key - string - Wasabi: Access Key.
wasabi_bucket - string - Wasabi: Bucket name
wasabi_region - string - Wasabi: Region
workspace_id - int64 - Workspace ID (0 for default workspace)
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 |
# File 'lib/files.com/models/remote_server.rb', line 1272 def self.create(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String) raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params[:private_key_passphrase] and !params[:private_key_passphrase].is_a?(String) raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params[:ssl_certificate] and !params[:ssl_certificate].is_a?(String) raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params[:aws_secret_key] and !params[:aws_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_access_key must be an String") if params[:azure_blob_storage_access_key] and !params[:azure_blob_storage_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_sas_token must be an String") if params[:azure_blob_storage_sas_token] and !params[:azure_blob_storage_sas_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_access_key must be an String") if params[:azure_files_storage_access_key] and !params[:azure_files_storage_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_sas_token must be an String") if params[:azure_files_storage_sas_token] and !params[:azure_files_storage_sas_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params[:backblaze_b2_application_key] and !params[:backblaze_b2_application_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params[:backblaze_b2_key_id] and !params[:backblaze_b2_key_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_secret_key must be an String") if params[:cloudflare_secret_key] and !params[:cloudflare_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_secret_key must be an String") if params[:filebase_secret_key] and !params[:filebase_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params[:google_cloud_storage_credentials_json] and !params[:google_cloud_storage_credentials_json].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_secret_key must be an String") if params[:google_cloud_storage_s3_compatible_secret_key] and !params[:google_cloud_storage_s3_compatible_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_secret_key must be an String") if params[:linode_secret_key] and !params[:linode_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_secret_key must be an String") if params[:s3_compatible_secret_key] and !params[:s3_compatible_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params[:wasabi_secret_key] and !params[:wasabi_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params[:aws_access_key] and !params[:aws_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_account must be an String") if params[:azure_blob_storage_account] and !params[:azure_blob_storage_account].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_container must be an String") if params[:azure_blob_storage_container] and !params[:azure_blob_storage_container].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_dns_suffix must be an String") if params[:azure_blob_storage_dns_suffix] and !params[:azure_blob_storage_dns_suffix].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_account must be an String") if params[:azure_files_storage_account] and !params[:azure_files_storage_account].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_dns_suffix must be an String") if params[:azure_files_storage_dns_suffix] and !params[:azure_files_storage_dns_suffix].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_share_name must be an String") if params[:azure_files_storage_share_name] and !params[:azure_files_storage_share_name].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_bucket must be an String") if params[:backblaze_b2_bucket] and !params[:backblaze_b2_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params[:backblaze_b2_s3_endpoint] and !params[:backblaze_b2_s3_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: buffer_uploads must be an String") if params[:buffer_uploads] and !params[:buffer_uploads].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_access_key must be an String") if params[:cloudflare_access_key] and !params[:cloudflare_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_bucket must be an String") if params[:cloudflare_bucket] and !params[:cloudflare_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_endpoint must be an String") if params[:cloudflare_endpoint] and !params[:cloudflare_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_access_key must be an String") if params[:filebase_access_key] and !params[:filebase_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_bucket must be an String") if params[:filebase_bucket] and !params[:filebase_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_api_key must be an String") if params[:files_api_key] and !params[:files_api_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_permission_set must be an String") if params[:files_agent_permission_set] and !params[:files_agent_permission_set].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_root must be an String") if params[:files_agent_root] and !params[:files_agent_root].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_version must be an String") if params[:files_agent_version] and !params[:files_agent_version].is_a?(String) raise InvalidParameterError.new("Bad parameter: outbound_agent_id must be an Integer") if params[:outbound_agent_id] and !params[:outbound_agent_id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_authentication_method must be an String") if params[:google_cloud_storage_authentication_method] and !params[:google_cloud_storage_authentication_method].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_bucket must be an String") if params[:google_cloud_storage_bucket] and !params[:google_cloud_storage_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_oauth_scope must be an String") if params[:google_cloud_storage_oauth_scope] and !params[:google_cloud_storage_oauth_scope].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_project_id must be an String") if params[:google_cloud_storage_project_id] and !params[:google_cloud_storage_project_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_access_key must be an String") if params[:google_cloud_storage_s3_compatible_access_key] and !params[:google_cloud_storage_s3_compatible_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_access_key must be an String") if params[:linode_access_key] and !params[:linode_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_bucket must be an String") if params[:linode_bucket] and !params[:linode_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_region must be an String") if params[:linode_region] and !params[:linode_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params[:max_connections] and !params[:max_connections].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String) raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params[:one_drive_account_type] and !params[:one_drive_account_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: port must be an Integer") if params[:port] and !params[:port].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: upload_staging_path must be an String") if params[:upload_staging_path] and !params[:upload_staging_path].is_a?(String) raise InvalidParameterError.new("Bad parameter: remote_server_credential_id must be an Integer") if params[:remote_server_credential_id] and !params[:remote_server_credential_id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: s3_assume_role_arn must be an String") if params[:s3_assume_role_arn] and !params[:s3_assume_role_arn].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_assume_role_duration_seconds must be an Integer") if params[:s3_assume_role_duration_seconds] and !params[:s3_assume_role_duration_seconds].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: s3_bucket must be an String") if params[:s3_bucket] and !params[:s3_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_access_key must be an String") if params[:s3_compatible_access_key] and !params[:s3_compatible_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params[:s3_compatible_bucket] and !params[:s3_compatible_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint must be an String") if params[:s3_compatible_endpoint] and !params[:s3_compatible_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_region must be an String") if params[:s3_compatible_region] and !params[:s3_compatible_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_region must be an String") if params[:s3_region] and !params[:s3_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params[:server_certificate] and !params[:server_certificate].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_type must be an String") if params[:server_type] and !params[:server_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: ssl must be an String") if params[:ssl] and !params[:ssl].is_a?(String) raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params[:wasabi_access_key] and !params[:wasabi_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params[:wasabi_bucket] and !params[:wasabi_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params[:wasabi_region] and !params[:wasabi_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer) response, = Api.send_request("/remote_servers", :post, params, ) RemoteServer.new(response.data, ) end |
.create_export(params = {}, options = {}) ⇒ Object
Parameters:
sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`.
filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`, `server_type`, `workspace_id`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ server_type, name ]`, `[ workspace_id, name ]`, `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]`, `[ linode_bucket, name ]`, `[ workspace_id, server_type ]` or `[ workspace_id, server_type, name ]`.
filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]` or `[ linode_bucket, name ]`.
1451 1452 1453 1454 1455 1456 1457 1458 |
# File 'lib/files.com/models/remote_server.rb', line 1451 def self.create_export(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash) response, = Api.send_request("/remote_servers/create_export", :post, params, ) Export.new(response.data, ) end |
.delete(id, params = {}, options = {}) ⇒ Object
1777 1778 1779 1780 1781 1782 1783 1784 1785 |
# File 'lib/files.com/models/remote_server.rb', line 1777 def self.delete(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params[:id] Api.send_request("/remote_servers/#{params[:id]}", :delete, params, ) nil end |
.destroy(id, params = {}, options = {}) ⇒ Object
1787 1788 1789 1790 |
# File 'lib/files.com/models/remote_server.rb', line 1787 def self.destroy(id, params = {}, = {}) delete(id, params, ) nil end |
.disconnect_agent(id, params = {}, options = {}) ⇒ Object
Disconnect a Files Agent Proxy
Parameters:
proxy_url - string - Files Agent Proxy URL
proxy_host_header - string - Files Agent Proxy Host Header
1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 |
# File 'lib/files.com/models/remote_server.rb', line 1365 def self.disconnect_agent(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: proxy_url must be an String") if params[:proxy_url] and !params[:proxy_url].is_a?(String) raise InvalidParameterError.new("Bad parameter: proxy_host_header must be an String") if params[:proxy_host_header] and !params[:proxy_host_header].is_a?(String) raise MissingParameterError.new("Parameter missing: id") unless params[:id] response, = Api.send_request("/remote_servers/#{params[:id]}/disconnect_agent", :post, params, ) AgentV2Auth.new(response.data, ) end |
.find(id, params = {}, options = {}) ⇒ Object
Parameters:
id (required) - int64 - Remote Server ID.
1167 1168 1169 1170 1171 1172 1173 1174 1175 |
# File 'lib/files.com/models/remote_server.rb', line 1167 def self.find(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params[:id] response, = Api.send_request("/remote_servers/#{params[:id]}", :get, params, ) RemoteServer.new(response.data, ) end |
.find_configuration_file(id, params = {}, options = {}) ⇒ Object
Parameters:
id (required) - int64 - Remote Server ID.
1183 1184 1185 1186 1187 1188 1189 1190 1191 |
# File 'lib/files.com/models/remote_server.rb', line 1183 def self.find_configuration_file(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params[:id] response, = Api.send_request("/remote_servers/#{params[:id]}/configuration_file", :get, params, ) RemoteServerConfigurationFile.new(response.data, ) end |
.find_ping_agent(id, params = {}, options = {}) ⇒ Object
Parameters:
id (required) - int64 - Remote Server ID.
1155 1156 1157 1158 1159 1160 1161 1162 1163 |
# File 'lib/files.com/models/remote_server.rb', line 1155 def self.find_ping_agent(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params[:id] response, = Api.send_request("/remote_servers/#{params[:id]}/ping_agent", :get, params, ) RemoteServer.new(response.data, ) end |
.get(id, params = {}, options = {}) ⇒ Object
1177 1178 1179 |
# File 'lib/files.com/models/remote_server.rb', line 1177 def self.get(id, params = {}, = {}) find(id, params, ) end |
.list(params = {}, options = {}) ⇒ Object
Parameters:
cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`.
filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`, `server_type`, `workspace_id`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ server_type, name ]`, `[ workspace_id, name ]`, `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]`, `[ linode_bucket, name ]`, `[ workspace_id, server_type ]` or `[ workspace_id, server_type, name ]`.
filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]` or `[ linode_bucket, name ]`.
1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 |
# File 'lib/files.com/models/remote_server.rb', line 1137 def self.list(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String) raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash) List.new(RemoteServer, params) do Api.send_request("/remote_servers", :get, params, ) end end |
.list_for_testing(params = {}, options = {}) ⇒ Object
Parameters:
aws_access_key - string - AWS: Access Key
aws_secret_key - string - AWS: Secret Key
azure_blob_storage_access_key - string - Azure Blob Storage: Secret Key
azure_blob_storage_account - string
azure_blob_storage_container - string
azure_blob_storage_dns_suffix - string
azure_blob_storage_hierarchical_namespace - boolean
azure_blob_storage_sas_token - string - Azure Blob Storage: Shared Access Signature (SAS) token
azure_files_storage_access_key - string - Azure Files: Access Key
azure_files_storage_account - string
azure_files_storage_dns_suffix - string
azure_files_storage_sas_token - string - Azure Files: Shared Access Signature (SAS) token
azure_files_storage_share_name - string
backblaze_b2_application_key - string - Backblaze B2 Cloud Storage: applicationKey
backblaze_b2_bucket - string
backblaze_b2_key_id - string - Backblaze B2 Cloud Storage: keyID
backblaze_b2_s3_endpoint - string
buffer_uploads - string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com. If set to auto, we will perform this optimization if we believe it to be a benefit in a given situation.
cloudflare_access_key - string - Cloudflare: Access Key
cloudflare_bucket - string
cloudflare_endpoint - string
cloudflare_secret_key - string - Cloudflare: Secret Key
dropbox_teams - boolean
upload_staging_path - string - Upload staging path
enable_dedicated_ips - boolean
filebase_access_key - string - Filebase: Access Key
filebase_bucket - string
filebase_secret_key - string - Filebase: Secret Key
files_api_key - string - Files.com direct link: API key used once to pair the remote server.
files_agent_api_token - string
files_agent_public_key - string
files_agent_root - string
files_agent_version - string
outbound_agent_id - int64 - Route traffic to outbound on a files-agent
google_cloud_storage_authentication_method - string - Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
google_cloud_storage_bucket - string
google_cloud_storage_credentials_json - string - Google Cloud Storage: A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
google_cloud_storage_oauth_scope - string - Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
google_cloud_storage_project_id - string
google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible access key
google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
hostname - string
linode_access_key - string - Linode: access key
linode_bucket - string
linode_region - string
linode_secret_key - string - Linode: secret key
max_connections - int64
name - string
one_drive_account_type - string
password - string - Password, if needed
pin_to_site_region - boolean - Pin to site region?
port - int64
private_key_passphrase - string - Passphrase for private key, if needed
private_key - string - Private key if needed.
remote_server_id - int64 - Remote Server ID
remote_server_credential_id - int64 - Remote Server Credential ID
reset_authentication - boolean - Reset authenticated account?
root - string - Remote path to list
s3_assume_role_arn - string
s3_assume_role_duration_seconds - int64
s3_bucket - string
s3_compatible_access_key - string
s3_compatible_bucket - string
s3_compatible_endpoint - string
s3_compatible_region - string
s3_compatible_virtual_hosted_style - boolean
s3_compatible_secret_key - string
s3_region - string
server_certificate - string
server_host_key - string
server_type - string
ssl_certificate - string - SSL client certificate.
ssl - string
username - string
wasabi_access_key - string - Wasabi: Access Key
wasabi_bucket - string
wasabi_region - string
wasabi_secret_key - string - Wasabi Secret Key
workspace_id - int64 - Workspace ID (0 for default workspace)
1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 |
# File 'lib/files.com/models/remote_server.rb', line 1540 def self.list_for_testing(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params[:aws_access_key] and !params[:aws_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params[:aws_secret_key] and !params[:aws_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_access_key must be an String") if params[:azure_blob_storage_access_key] and !params[:azure_blob_storage_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_account must be an String") if params[:azure_blob_storage_account] and !params[:azure_blob_storage_account].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_container must be an String") if params[:azure_blob_storage_container] and !params[:azure_blob_storage_container].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_dns_suffix must be an String") if params[:azure_blob_storage_dns_suffix] and !params[:azure_blob_storage_dns_suffix].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_sas_token must be an String") if params[:azure_blob_storage_sas_token] and !params[:azure_blob_storage_sas_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_access_key must be an String") if params[:azure_files_storage_access_key] and !params[:azure_files_storage_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_account must be an String") if params[:azure_files_storage_account] and !params[:azure_files_storage_account].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_dns_suffix must be an String") if params[:azure_files_storage_dns_suffix] and !params[:azure_files_storage_dns_suffix].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_sas_token must be an String") if params[:azure_files_storage_sas_token] and !params[:azure_files_storage_sas_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_share_name must be an String") if params[:azure_files_storage_share_name] and !params[:azure_files_storage_share_name].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params[:backblaze_b2_application_key] and !params[:backblaze_b2_application_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_bucket must be an String") if params[:backblaze_b2_bucket] and !params[:backblaze_b2_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params[:backblaze_b2_key_id] and !params[:backblaze_b2_key_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params[:backblaze_b2_s3_endpoint] and !params[:backblaze_b2_s3_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: buffer_uploads must be an String") if params[:buffer_uploads] and !params[:buffer_uploads].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_access_key must be an String") if params[:cloudflare_access_key] and !params[:cloudflare_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_bucket must be an String") if params[:cloudflare_bucket] and !params[:cloudflare_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_endpoint must be an String") if params[:cloudflare_endpoint] and !params[:cloudflare_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_secret_key must be an String") if params[:cloudflare_secret_key] and !params[:cloudflare_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: upload_staging_path must be an String") if params[:upload_staging_path] and !params[:upload_staging_path].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_access_key must be an String") if params[:filebase_access_key] and !params[:filebase_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_bucket must be an String") if params[:filebase_bucket] and !params[:filebase_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_secret_key must be an String") if params[:filebase_secret_key] and !params[:filebase_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_api_key must be an String") if params[:files_api_key] and !params[:files_api_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_api_token must be an String") if params[:files_agent_api_token] and !params[:files_agent_api_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_public_key must be an String") if params[:files_agent_public_key] and !params[:files_agent_public_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_root must be an String") if params[:files_agent_root] and !params[:files_agent_root].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_version must be an String") if params[:files_agent_version] and !params[:files_agent_version].is_a?(String) raise InvalidParameterError.new("Bad parameter: outbound_agent_id must be an Integer") if params[:outbound_agent_id] and !params[:outbound_agent_id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_authentication_method must be an String") if params[:google_cloud_storage_authentication_method] and !params[:google_cloud_storage_authentication_method].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_bucket must be an String") if params[:google_cloud_storage_bucket] and !params[:google_cloud_storage_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params[:google_cloud_storage_credentials_json] and !params[:google_cloud_storage_credentials_json].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_oauth_scope must be an String") if params[:google_cloud_storage_oauth_scope] and !params[:google_cloud_storage_oauth_scope].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_project_id must be an String") if params[:google_cloud_storage_project_id] and !params[:google_cloud_storage_project_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_access_key must be an String") if params[:google_cloud_storage_s3_compatible_access_key] and !params[:google_cloud_storage_s3_compatible_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_secret_key must be an String") if params[:google_cloud_storage_s3_compatible_secret_key] and !params[:google_cloud_storage_s3_compatible_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_access_key must be an String") if params[:linode_access_key] and !params[:linode_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_bucket must be an String") if params[:linode_bucket] and !params[:linode_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_region must be an String") if params[:linode_region] and !params[:linode_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_secret_key must be an String") if params[:linode_secret_key] and !params[:linode_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params[:max_connections] and !params[:max_connections].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String) raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params[:one_drive_account_type] and !params[:one_drive_account_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String) raise InvalidParameterError.new("Bad parameter: port must be an Integer") if params[:port] and !params[:port].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params[:private_key_passphrase] and !params[:private_key_passphrase].is_a?(String) raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: remote_server_credential_id must be an Integer") if params[:remote_server_credential_id] and !params[:remote_server_credential_id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: root must be an String") if params[:root] and !params[:root].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_assume_role_arn must be an String") if params[:s3_assume_role_arn] and !params[:s3_assume_role_arn].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_assume_role_duration_seconds must be an Integer") if params[:s3_assume_role_duration_seconds] and !params[:s3_assume_role_duration_seconds].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: s3_bucket must be an String") if params[:s3_bucket] and !params[:s3_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_access_key must be an String") if params[:s3_compatible_access_key] and !params[:s3_compatible_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params[:s3_compatible_bucket] and !params[:s3_compatible_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint must be an String") if params[:s3_compatible_endpoint] and !params[:s3_compatible_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_region must be an String") if params[:s3_compatible_region] and !params[:s3_compatible_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_secret_key must be an String") if params[:s3_compatible_secret_key] and !params[:s3_compatible_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_region must be an String") if params[:s3_region] and !params[:s3_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params[:server_certificate] and !params[:server_certificate].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_type must be an String") if params[:server_type] and !params[:server_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params[:ssl_certificate] and !params[:ssl_certificate].is_a?(String) raise InvalidParameterError.new("Bad parameter: ssl must be an String") if params[:ssl] and !params[:ssl].is_a?(String) raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params[:wasabi_access_key] and !params[:wasabi_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params[:wasabi_bucket] and !params[:wasabi_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params[:wasabi_region] and !params[:wasabi_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params[:wasabi_secret_key] and !params[:wasabi_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer) response, = Api.send_request("/remote_servers/list_for_testing", :post, params, ) File.new(response.data, ) end |
.update(id, params = {}, options = {}) ⇒ Object
Parameters:
password - string - Password, if needed.
private_key - string - Private key, if needed.
private_key_passphrase - string - Passphrase for private key if needed.
reset_authentication - boolean - Reset authenticated account?
ssl_certificate - string - SSL client certificate.
aws_secret_key - string - AWS: secret key.
azure_blob_storage_access_key - string - Azure Blob Storage: Access Key
azure_blob_storage_sas_token - string - Azure Blob Storage: Shared Access Signature (SAS) token
azure_files_storage_access_key - string - Azure File Storage: Access Key
azure_files_storage_sas_token - string - Azure File Storage: Shared Access Signature (SAS) token
backblaze_b2_application_key - string - Backblaze B2 Cloud Storage: applicationKey
backblaze_b2_key_id - string - Backblaze B2 Cloud Storage: keyID
cloudflare_secret_key - string - Cloudflare: Secret Key
filebase_secret_key - string - Filebase: Secret Key
google_cloud_storage_credentials_json - string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
linode_secret_key - string - Linode: Secret Key
s3_compatible_secret_key - string - S3-compatible: Secret Key
wasabi_secret_key - string - Wasabi: Secret Key
allow_relative_paths - boolean - Allow relative paths in SFTP. If true, paths will not be forced to be absolute, allowing operations relative to the user's home directory.
aws_access_key - string - AWS Access Key.
azure_blob_storage_account - string - Azure Blob Storage: Account name
azure_blob_storage_container - string - Azure Blob Storage: Container name
azure_blob_storage_dns_suffix - string - Azure Blob Storage: Custom DNS suffix
azure_blob_storage_hierarchical_namespace - boolean - Azure Blob Storage: Does the storage account has hierarchical namespace feature enabled?
azure_files_storage_account - string - Azure Files: Storage Account name
azure_files_storage_dns_suffix - string - Azure Files: Custom DNS suffix
azure_files_storage_share_name - string - Azure Files: Storage Share name
backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
buffer_uploads - string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com. If set to auto, we will perform this optimization if we believe it to be a benefit in a given situation.
cloudflare_access_key - string - Cloudflare: Access Key.
cloudflare_bucket - string - Cloudflare: Bucket name
cloudflare_endpoint - string - Cloudflare: endpoint
description - string - Internal description for your reference
dropbox_teams - boolean - Dropbox: If true, list Team folders in root?
enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
filebase_access_key - string - Filebase: Access Key.
filebase_bucket - string - Filebase: Bucket name
files_api_key - string - Files.com direct link: API key used once to pair the remote server.
files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
files_agent_root - string - Agent local root path
files_agent_version - string - Files Agent version
outbound_agent_id - int64 - Route traffic to outbound on a files-agent
google_cloud_storage_authentication_method - string - Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
google_cloud_storage_oauth_scope - string - Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
hostname - string - Hostname or IP address
linode_access_key - string - Linode: Access Key
linode_bucket - string - Linode: Bucket name
linode_region - string - Linode: region
max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
name - string - Internal name for your reference
one_drive_account_type - string - OneDrive: Either personal or business_other account types
pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
port - int64 - Port for remote server.
upload_staging_path - string - Upload staging path. Applies to SFTP only. If a path is provided here, files will first be uploaded to this path on the remote folder and the moved into the final correct path via an SFTP move command. This is required by some remote MFT systems to emulate atomic uploads, which are otherwise not supoprted by SFTP.
remote_server_credential_id - int64 - ID of Remote Server Credential, if applicable.
s3_assume_role_arn - string - AWS IAM Role ARN for AssumeRole authentication.
s3_assume_role_duration_seconds - int64 - Session duration in seconds for AssumeRole authentication (900-43200).
s3_bucket - string - S3 bucket name
s3_compatible_access_key - string - S3-compatible: Access Key
s3_compatible_bucket - string - S3-compatible: Bucket name
s3_compatible_endpoint - string - S3-compatible: endpoint
s3_compatible_region - string - S3-compatible: region
s3_compatible_virtual_hosted_style - boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
s3_region - string - S3 region
server_certificate - string - Remote server certificate
server_host_key - string - Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
server_type - string - Remote server type.
ssl - string - Should we require SSL?
username - string - Remote server username.
wasabi_access_key - string - Wasabi: Access Key.
wasabi_bucket - string - Wasabi: Bucket name
wasabi_region - string - Wasabi: Region
1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 |
# File 'lib/files.com/models/remote_server.rb', line 1697 def self.update(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String) raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params[:private_key_passphrase] and !params[:private_key_passphrase].is_a?(String) raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params[:ssl_certificate] and !params[:ssl_certificate].is_a?(String) raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params[:aws_secret_key] and !params[:aws_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_access_key must be an String") if params[:azure_blob_storage_access_key] and !params[:azure_blob_storage_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_sas_token must be an String") if params[:azure_blob_storage_sas_token] and !params[:azure_blob_storage_sas_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_access_key must be an String") if params[:azure_files_storage_access_key] and !params[:azure_files_storage_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_sas_token must be an String") if params[:azure_files_storage_sas_token] and !params[:azure_files_storage_sas_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params[:backblaze_b2_application_key] and !params[:backblaze_b2_application_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params[:backblaze_b2_key_id] and !params[:backblaze_b2_key_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_secret_key must be an String") if params[:cloudflare_secret_key] and !params[:cloudflare_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_secret_key must be an String") if params[:filebase_secret_key] and !params[:filebase_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params[:google_cloud_storage_credentials_json] and !params[:google_cloud_storage_credentials_json].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_secret_key must be an String") if params[:google_cloud_storage_s3_compatible_secret_key] and !params[:google_cloud_storage_s3_compatible_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_secret_key must be an String") if params[:linode_secret_key] and !params[:linode_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_secret_key must be an String") if params[:s3_compatible_secret_key] and !params[:s3_compatible_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params[:wasabi_secret_key] and !params[:wasabi_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params[:aws_access_key] and !params[:aws_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_account must be an String") if params[:azure_blob_storage_account] and !params[:azure_blob_storage_account].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_container must be an String") if params[:azure_blob_storage_container] and !params[:azure_blob_storage_container].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_dns_suffix must be an String") if params[:azure_blob_storage_dns_suffix] and !params[:azure_blob_storage_dns_suffix].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_account must be an String") if params[:azure_files_storage_account] and !params[:azure_files_storage_account].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_dns_suffix must be an String") if params[:azure_files_storage_dns_suffix] and !params[:azure_files_storage_dns_suffix].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_share_name must be an String") if params[:azure_files_storage_share_name] and !params[:azure_files_storage_share_name].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_bucket must be an String") if params[:backblaze_b2_bucket] and !params[:backblaze_b2_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params[:backblaze_b2_s3_endpoint] and !params[:backblaze_b2_s3_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: buffer_uploads must be an String") if params[:buffer_uploads] and !params[:buffer_uploads].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_access_key must be an String") if params[:cloudflare_access_key] and !params[:cloudflare_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_bucket must be an String") if params[:cloudflare_bucket] and !params[:cloudflare_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_endpoint must be an String") if params[:cloudflare_endpoint] and !params[:cloudflare_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_access_key must be an String") if params[:filebase_access_key] and !params[:filebase_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_bucket must be an String") if params[:filebase_bucket] and !params[:filebase_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_api_key must be an String") if params[:files_api_key] and !params[:files_api_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_permission_set must be an String") if params[:files_agent_permission_set] and !params[:files_agent_permission_set].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_root must be an String") if params[:files_agent_root] and !params[:files_agent_root].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_version must be an String") if params[:files_agent_version] and !params[:files_agent_version].is_a?(String) raise InvalidParameterError.new("Bad parameter: outbound_agent_id must be an Integer") if params[:outbound_agent_id] and !params[:outbound_agent_id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_authentication_method must be an String") if params[:google_cloud_storage_authentication_method] and !params[:google_cloud_storage_authentication_method].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_bucket must be an String") if params[:google_cloud_storage_bucket] and !params[:google_cloud_storage_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_oauth_scope must be an String") if params[:google_cloud_storage_oauth_scope] and !params[:google_cloud_storage_oauth_scope].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_project_id must be an String") if params[:google_cloud_storage_project_id] and !params[:google_cloud_storage_project_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_access_key must be an String") if params[:google_cloud_storage_s3_compatible_access_key] and !params[:google_cloud_storage_s3_compatible_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_access_key must be an String") if params[:linode_access_key] and !params[:linode_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_bucket must be an String") if params[:linode_bucket] and !params[:linode_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_region must be an String") if params[:linode_region] and !params[:linode_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params[:max_connections] and !params[:max_connections].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String) raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params[:one_drive_account_type] and !params[:one_drive_account_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: port must be an Integer") if params[:port] and !params[:port].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: upload_staging_path must be an String") if params[:upload_staging_path] and !params[:upload_staging_path].is_a?(String) raise InvalidParameterError.new("Bad parameter: remote_server_credential_id must be an Integer") if params[:remote_server_credential_id] and !params[:remote_server_credential_id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: s3_assume_role_arn must be an String") if params[:s3_assume_role_arn] and !params[:s3_assume_role_arn].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_assume_role_duration_seconds must be an Integer") if params[:s3_assume_role_duration_seconds] and !params[:s3_assume_role_duration_seconds].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: s3_bucket must be an String") if params[:s3_bucket] and !params[:s3_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_access_key must be an String") if params[:s3_compatible_access_key] and !params[:s3_compatible_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params[:s3_compatible_bucket] and !params[:s3_compatible_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint must be an String") if params[:s3_compatible_endpoint] and !params[:s3_compatible_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_region must be an String") if params[:s3_compatible_region] and !params[:s3_compatible_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_region must be an String") if params[:s3_region] and !params[:s3_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params[:server_certificate] and !params[:server_certificate].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_type must be an String") if params[:server_type] and !params[:server_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: ssl must be an String") if params[:ssl] and !params[:ssl].is_a?(String) raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params[:wasabi_access_key] and !params[:wasabi_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params[:wasabi_bucket] and !params[:wasabi_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params[:wasabi_region] and !params[:wasabi_region].is_a?(String) raise MissingParameterError.new("Parameter missing: id") unless params[:id] response, = Api.send_request("/remote_servers/#{params[:id]}", :patch, params, ) RemoteServer.new(response.data, ) end |
Instance Method Details
#agent_push_update(params = {}) ⇒ Object
Push update to Files Agent
850 851 852 853 854 855 856 857 858 |
# File 'lib/files.com/models/remote_server.rb', line 850 def agent_push_update(params = {}) params ||= {} params[:id] = @attributes[:id] raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id] raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params[:id] Api.send_request("/remote_servers/#{@attributes[:id]}/agent_push_update", :post, params, @options) end |
#allow_relative_paths ⇒ Object
boolean - Allow relative paths in SFTP. If true, paths will not be forced to be absolute, allowing operations relative to the user's home directory.
67 68 69 |
# File 'lib/files.com/models/remote_server.rb', line 67 def allow_relative_paths @attributes[:allow_relative_paths] end |
#allow_relative_paths=(value) ⇒ Object
71 72 73 |
# File 'lib/files.com/models/remote_server.rb', line 71 def allow_relative_paths=(value) @attributes[:allow_relative_paths] = value end |
#auth_account_name ⇒ Object
string - Describes the authorized account
364 365 366 |
# File 'lib/files.com/models/remote_server.rb', line 364 def auth_account_name @attributes[:auth_account_name] end |
#auth_account_name=(value) ⇒ Object
368 369 370 |
# File 'lib/files.com/models/remote_server.rb', line 368 def auth_account_name=(value) @attributes[:auth_account_name] = value end |
#auth_setup_link ⇒ Object
string - Returns link to login with an Oauth provider
346 347 348 |
# File 'lib/files.com/models/remote_server.rb', line 346 def auth_setup_link @attributes[:auth_setup_link] end |
#auth_setup_link=(value) ⇒ Object
350 351 352 |
# File 'lib/files.com/models/remote_server.rb', line 350 def auth_setup_link=(value) @attributes[:auth_setup_link] = value end |
#auth_status ⇒ Object
string - Either in_setup or complete
355 356 357 |
# File 'lib/files.com/models/remote_server.rb', line 355 def auth_status @attributes[:auth_status] end |
#auth_status=(value) ⇒ Object
359 360 361 |
# File 'lib/files.com/models/remote_server.rb', line 359 def auth_status=(value) @attributes[:auth_status] = value end |
#authenticate_agent(params = {}) ⇒ Object
Authenticate a Files Agent Proxy
Parameters:
signed_nonce - string - Signed nonce
proxy_registration_refresh - boolean - Proxy is refreshing an already validated agent registration
agent_version - string - Agent version
peer_id - string - Peer ID
proxy_url - string - Files Agent Proxy URL
proxy_host_header - string - Files Agent Proxy Host Header
root - string - Agent local root path
agent_hostname - string - Agent local hostname used for system identification
downstream_proxy_port - int64 - Agent downstream proxy port
agent_platform - string - Agent Platform (OS/Architecture)
permission_set - string - Permission set
supports_push_updates - boolean - Agent supports push updates
892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 |
# File 'lib/files.com/models/remote_server.rb', line 892 def authenticate_agent(params = {}) params ||= {} params[:id] = @attributes[:id] raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id] raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: signed_nonce must be an String") if params[:signed_nonce] and !params[:signed_nonce].is_a?(String) raise InvalidParameterError.new("Bad parameter: agent_version must be an String") if params[:agent_version] and !params[:agent_version].is_a?(String) raise InvalidParameterError.new("Bad parameter: peer_id must be an String") if params[:peer_id] and !params[:peer_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: proxy_url must be an String") if params[:proxy_url] and !params[:proxy_url].is_a?(String) raise InvalidParameterError.new("Bad parameter: proxy_host_header must be an String") if params[:proxy_host_header] and !params[:proxy_host_header].is_a?(String) raise InvalidParameterError.new("Bad parameter: root must be an String") if params[:root] and !params[:root].is_a?(String) raise InvalidParameterError.new("Bad parameter: agent_hostname must be an String") if params[:agent_hostname] and !params[:agent_hostname].is_a?(String) raise InvalidParameterError.new("Bad parameter: downstream_proxy_port must be an Integer") if params[:downstream_proxy_port] and !params[:downstream_proxy_port].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: agent_platform must be an String") if params[:agent_platform] and !params[:agent_platform].is_a?(String) raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String) raise MissingParameterError.new("Parameter missing: id") unless params[:id] Api.send_request("/remote_servers/#{@attributes[:id]}/authenticate_agent", :post, params, @options) end |
#authentication_method ⇒ Object
string - Type of authentication method to use
31 32 33 |
# File 'lib/files.com/models/remote_server.rb', line 31 def authentication_method @attributes[:authentication_method] end |
#authentication_method=(value) ⇒ Object
35 36 37 |
# File 'lib/files.com/models/remote_server.rb', line 35 def authentication_method=(value) @attributes[:authentication_method] = value end |
#aws_access_key ⇒ Object
string - AWS Access Key.
166 167 168 |
# File 'lib/files.com/models/remote_server.rb', line 166 def aws_access_key @attributes[:aws_access_key] end |
#aws_access_key=(value) ⇒ Object
170 171 172 |
# File 'lib/files.com/models/remote_server.rb', line 170 def aws_access_key=(value) @attributes[:aws_access_key] = value end |
#aws_secret_key ⇒ Object
string - AWS: secret key.
715 716 717 |
# File 'lib/files.com/models/remote_server.rb', line 715 def aws_secret_key @attributes[:aws_secret_key] end |
#aws_secret_key=(value) ⇒ Object
719 720 721 |
# File 'lib/files.com/models/remote_server.rb', line 719 def aws_secret_key=(value) @attributes[:aws_secret_key] = value end |
#azure_blob_storage_access_key ⇒ Object
string - Azure Blob Storage: Access Key
724 725 726 |
# File 'lib/files.com/models/remote_server.rb', line 724 def azure_blob_storage_access_key @attributes[:azure_blob_storage_access_key] end |
#azure_blob_storage_access_key=(value) ⇒ Object
728 729 730 |
# File 'lib/files.com/models/remote_server.rb', line 728 def azure_blob_storage_access_key=(value) @attributes[:azure_blob_storage_access_key] = value end |
#azure_blob_storage_account ⇒ Object
string - Azure Blob Storage: Account name
382 383 384 |
# File 'lib/files.com/models/remote_server.rb', line 382 def azure_blob_storage_account @attributes[:azure_blob_storage_account] end |
#azure_blob_storage_account=(value) ⇒ Object
386 387 388 |
# File 'lib/files.com/models/remote_server.rb', line 386 def azure_blob_storage_account=(value) @attributes[:azure_blob_storage_account] = value end |
#azure_blob_storage_container ⇒ Object
string - Azure Blob Storage: Container name
391 392 393 |
# File 'lib/files.com/models/remote_server.rb', line 391 def azure_blob_storage_container @attributes[:azure_blob_storage_container] end |
#azure_blob_storage_container=(value) ⇒ Object
395 396 397 |
# File 'lib/files.com/models/remote_server.rb', line 395 def azure_blob_storage_container=(value) @attributes[:azure_blob_storage_container] = value end |
#azure_blob_storage_dns_suffix ⇒ Object
string - Azure Blob Storage: Custom DNS suffix
409 410 411 |
# File 'lib/files.com/models/remote_server.rb', line 409 def azure_blob_storage_dns_suffix @attributes[:azure_blob_storage_dns_suffix] end |
#azure_blob_storage_dns_suffix=(value) ⇒ Object
413 414 415 |
# File 'lib/files.com/models/remote_server.rb', line 413 def azure_blob_storage_dns_suffix=(value) @attributes[:azure_blob_storage_dns_suffix] = value end |
#azure_blob_storage_hierarchical_namespace ⇒ Object
boolean - Azure Blob Storage: Does the storage account has hierarchical namespace feature enabled?
400 401 402 |
# File 'lib/files.com/models/remote_server.rb', line 400 def azure_blob_storage_hierarchical_namespace @attributes[:azure_blob_storage_hierarchical_namespace] end |
#azure_blob_storage_hierarchical_namespace=(value) ⇒ Object
404 405 406 |
# File 'lib/files.com/models/remote_server.rb', line 404 def azure_blob_storage_hierarchical_namespace=(value) @attributes[:azure_blob_storage_hierarchical_namespace] = value end |
#azure_blob_storage_sas_token ⇒ Object
string - Azure Blob Storage: Shared Access Signature (SAS) token
733 734 735 |
# File 'lib/files.com/models/remote_server.rb', line 733 def azure_blob_storage_sas_token @attributes[:azure_blob_storage_sas_token] end |
#azure_blob_storage_sas_token=(value) ⇒ Object
737 738 739 |
# File 'lib/files.com/models/remote_server.rb', line 737 def azure_blob_storage_sas_token=(value) @attributes[:azure_blob_storage_sas_token] = value end |
#azure_files_storage_access_key ⇒ Object
string - Azure File Storage: Access Key
742 743 744 |
# File 'lib/files.com/models/remote_server.rb', line 742 def azure_files_storage_access_key @attributes[:azure_files_storage_access_key] end |
#azure_files_storage_access_key=(value) ⇒ Object
746 747 748 |
# File 'lib/files.com/models/remote_server.rb', line 746 def azure_files_storage_access_key=(value) @attributes[:azure_files_storage_access_key] = value end |
#azure_files_storage_account ⇒ Object
string - Azure Files: Storage Account name
418 419 420 |
# File 'lib/files.com/models/remote_server.rb', line 418 def azure_files_storage_account @attributes[:azure_files_storage_account] end |
#azure_files_storage_account=(value) ⇒ Object
422 423 424 |
# File 'lib/files.com/models/remote_server.rb', line 422 def azure_files_storage_account=(value) @attributes[:azure_files_storage_account] = value end |
#azure_files_storage_dns_suffix ⇒ Object
string - Azure Files: Custom DNS suffix
436 437 438 |
# File 'lib/files.com/models/remote_server.rb', line 436 def azure_files_storage_dns_suffix @attributes[:azure_files_storage_dns_suffix] end |
#azure_files_storage_dns_suffix=(value) ⇒ Object
440 441 442 |
# File 'lib/files.com/models/remote_server.rb', line 440 def azure_files_storage_dns_suffix=(value) @attributes[:azure_files_storage_dns_suffix] = value end |
#azure_files_storage_sas_token ⇒ Object
string - Azure File Storage: Shared Access Signature (SAS) token
751 752 753 |
# File 'lib/files.com/models/remote_server.rb', line 751 def azure_files_storage_sas_token @attributes[:azure_files_storage_sas_token] end |
#azure_files_storage_sas_token=(value) ⇒ Object
755 756 757 |
# File 'lib/files.com/models/remote_server.rb', line 755 def azure_files_storage_sas_token=(value) @attributes[:azure_files_storage_sas_token] = value end |
#azure_files_storage_share_name ⇒ Object
string - Azure Files: Storage Share name
427 428 429 |
# File 'lib/files.com/models/remote_server.rb', line 427 def azure_files_storage_share_name @attributes[:azure_files_storage_share_name] end |
#azure_files_storage_share_name=(value) ⇒ Object
431 432 433 |
# File 'lib/files.com/models/remote_server.rb', line 431 def azure_files_storage_share_name=(value) @attributes[:azure_files_storage_share_name] = value end |
#backblaze_b2_application_key ⇒ Object
string - Backblaze B2 Cloud Storage: applicationKey
760 761 762 |
# File 'lib/files.com/models/remote_server.rb', line 760 def backblaze_b2_application_key @attributes[:backblaze_b2_application_key] end |
#backblaze_b2_application_key=(value) ⇒ Object
764 765 766 |
# File 'lib/files.com/models/remote_server.rb', line 764 def backblaze_b2_application_key=(value) @attributes[:backblaze_b2_application_key] = value end |
#backblaze_b2_bucket ⇒ Object
string - Backblaze B2 Cloud Storage: Bucket name
310 311 312 |
# File 'lib/files.com/models/remote_server.rb', line 310 def backblaze_b2_bucket @attributes[:backblaze_b2_bucket] end |
#backblaze_b2_bucket=(value) ⇒ Object
314 315 316 |
# File 'lib/files.com/models/remote_server.rb', line 314 def backblaze_b2_bucket=(value) @attributes[:backblaze_b2_bucket] = value end |
#backblaze_b2_key_id ⇒ Object
string - Backblaze B2 Cloud Storage: keyID
769 770 771 |
# File 'lib/files.com/models/remote_server.rb', line 769 def backblaze_b2_key_id @attributes[:backblaze_b2_key_id] end |
#backblaze_b2_key_id=(value) ⇒ Object
773 774 775 |
# File 'lib/files.com/models/remote_server.rb', line 773 def backblaze_b2_key_id=(value) @attributes[:backblaze_b2_key_id] = value end |
#backblaze_b2_s3_endpoint ⇒ Object
string - Backblaze B2 Cloud Storage: S3 Endpoint
301 302 303 |
# File 'lib/files.com/models/remote_server.rb', line 301 def backblaze_b2_s3_endpoint @attributes[:backblaze_b2_s3_endpoint] end |
#backblaze_b2_s3_endpoint=(value) ⇒ Object
305 306 307 |
# File 'lib/files.com/models/remote_server.rb', line 305 def backblaze_b2_s3_endpoint=(value) @attributes[:backblaze_b2_s3_endpoint] = value end |
#buffer_uploads ⇒ Object
string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com. If set to auto, we will perform this optimization if we believe it to be a benefit in a given situation.
103 104 105 |
# File 'lib/files.com/models/remote_server.rb', line 103 def buffer_uploads @attributes[:buffer_uploads] end |
#buffer_uploads=(value) ⇒ Object
107 108 109 |
# File 'lib/files.com/models/remote_server.rb', line 107 def buffer_uploads=(value) @attributes[:buffer_uploads] = value end |
#cloudflare_access_key ⇒ Object
string - Cloudflare: Access Key.
607 608 609 |
# File 'lib/files.com/models/remote_server.rb', line 607 def cloudflare_access_key @attributes[:cloudflare_access_key] end |
#cloudflare_access_key=(value) ⇒ Object
611 612 613 |
# File 'lib/files.com/models/remote_server.rb', line 611 def cloudflare_access_key=(value) @attributes[:cloudflare_access_key] = value end |
#cloudflare_bucket ⇒ Object
string - Cloudflare: Bucket name
598 599 600 |
# File 'lib/files.com/models/remote_server.rb', line 598 def cloudflare_bucket @attributes[:cloudflare_bucket] end |
#cloudflare_bucket=(value) ⇒ Object
602 603 604 |
# File 'lib/files.com/models/remote_server.rb', line 602 def cloudflare_bucket=(value) @attributes[:cloudflare_bucket] = value end |
#cloudflare_endpoint ⇒ Object
string - Cloudflare: endpoint
616 617 618 |
# File 'lib/files.com/models/remote_server.rb', line 616 def cloudflare_endpoint @attributes[:cloudflare_endpoint] end |
#cloudflare_endpoint=(value) ⇒ Object
620 621 622 |
# File 'lib/files.com/models/remote_server.rb', line 620 def cloudflare_endpoint=(value) @attributes[:cloudflare_endpoint] = value end |
#cloudflare_secret_key ⇒ Object
string - Cloudflare: Secret Key
778 779 780 |
# File 'lib/files.com/models/remote_server.rb', line 778 def cloudflare_secret_key @attributes[:cloudflare_secret_key] end |
#cloudflare_secret_key=(value) ⇒ Object
782 783 784 |
# File 'lib/files.com/models/remote_server.rb', line 782 def cloudflare_secret_key=(value) @attributes[:cloudflare_secret_key] = value end |
#configuration_file(params = {}) ⇒ Object
Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
Parameters:
api_token - string - Files Agent API Token
permission_set - string - The permission set for the agent ['read_write', 'read_only', 'write_only']
root - string - The root directory for the agent
hostname - string
port - int64 - Incoming port for files agent connections
status - string - either running or shutdown
config_version - string - agent config version
private_key - string - The private key for the agent
public_key - string - public key
server_host_key - string
subdomain - string - Files.com subdomain site name
926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 |
# File 'lib/files.com/models/remote_server.rb', line 926 def configuration_file(params = {}) params ||= {} params[:id] = @attributes[:id] raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id] raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: api_token must be an String") if params[:api_token] and !params[:api_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String) raise InvalidParameterError.new("Bad parameter: root must be an String") if params[:root] and !params[:root].is_a?(String) raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String) raise InvalidParameterError.new("Bad parameter: port must be an Integer") if params[:port] and !params[:port].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: status must be an String") if params[:status] and !params[:status].is_a?(String) raise InvalidParameterError.new("Bad parameter: config_version must be an String") if params[:config_version] and !params[:config_version].is_a?(String) raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: public_key must be an String") if params[:public_key] and !params[:public_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if params[:subdomain] and !params[:subdomain].is_a?(String) raise MissingParameterError.new("Parameter missing: id") unless params[:id] Api.send_request("/remote_servers/#{@attributes[:id]}/configuration_file", :post, params, @options) end |
#delete(params = {}) ⇒ Object
1105 1106 1107 1108 1109 1110 1111 1112 1113 |
# File 'lib/files.com/models/remote_server.rb', line 1105 def delete(params = {}) params ||= {} params[:id] = @attributes[:id] raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id] raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params[:id] Api.send_request("/remote_servers/#{@attributes[:id]}", :delete, params, @options) end |
#description ⇒ Object
string - Internal description for your reference
85 86 87 |
# File 'lib/files.com/models/remote_server.rb', line 85 def description @attributes[:description] end |
#description=(value) ⇒ Object
89 90 91 |
# File 'lib/files.com/models/remote_server.rb', line 89 def description=(value) @attributes[:description] = value end |
#destroy(params = {}) ⇒ Object
1115 1116 1117 1118 |
# File 'lib/files.com/models/remote_server.rb', line 1115 def destroy(params = {}) delete(params) nil end |
#disabled ⇒ Object
boolean - If true, this Remote Server has been disabled due to failures. Make any change or set disabled to false to clear this flag.
22 23 24 |
# File 'lib/files.com/models/remote_server.rb', line 22 def disabled @attributes[:disabled] end |
#disabled=(value) ⇒ Object
26 27 28 |
# File 'lib/files.com/models/remote_server.rb', line 26 def disabled=(value) @attributes[:disabled] = value end |
#disconnect_agent(params = {}) ⇒ Object
Disconnect a Files Agent Proxy
Parameters:
proxy_url - string - Files Agent Proxy URL
proxy_host_header - string - Files Agent Proxy Host Header
865 866 867 868 869 870 871 872 873 874 875 |
# File 'lib/files.com/models/remote_server.rb', line 865 def disconnect_agent(params = {}) params ||= {} params[:id] = @attributes[:id] raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id] raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: proxy_url must be an String") if params[:proxy_url] and !params[:proxy_url].is_a?(String) raise InvalidParameterError.new("Bad parameter: proxy_host_header must be an String") if params[:proxy_host_header] and !params[:proxy_host_header].is_a?(String) raise MissingParameterError.new("Parameter missing: id") unless params[:id] Api.send_request("/remote_servers/#{@attributes[:id]}/disconnect_agent", :post, params, @options) end |
#dropbox_teams ⇒ Object
boolean - Dropbox: If true, list Team folders in root?
625 626 627 |
# File 'lib/files.com/models/remote_server.rb', line 625 def dropbox_teams @attributes[:dropbox_teams] end |
#dropbox_teams=(value) ⇒ Object
629 630 631 |
# File 'lib/files.com/models/remote_server.rb', line 629 def dropbox_teams=(value) @attributes[:dropbox_teams] = value end |
#enable_dedicated_ips ⇒ Object
boolean - true if remote server only accepts connections from dedicated IPs
490 491 492 |
# File 'lib/files.com/models/remote_server.rb', line 490 def enable_dedicated_ips @attributes[:enable_dedicated_ips] end |
#enable_dedicated_ips=(value) ⇒ Object
494 495 496 |
# File 'lib/files.com/models/remote_server.rb', line 494 def enable_dedicated_ips=(value) @attributes[:enable_dedicated_ips] = value end |
#filebase_access_key ⇒ Object
string - Filebase: Access Key.
580 581 582 |
# File 'lib/files.com/models/remote_server.rb', line 580 def filebase_access_key @attributes[:filebase_access_key] end |
#filebase_access_key=(value) ⇒ Object
584 585 586 |
# File 'lib/files.com/models/remote_server.rb', line 584 def filebase_access_key=(value) @attributes[:filebase_access_key] = value end |
#filebase_bucket ⇒ Object
string - Filebase: Bucket name
571 572 573 |
# File 'lib/files.com/models/remote_server.rb', line 571 def filebase_bucket @attributes[:filebase_bucket] end |
#filebase_bucket=(value) ⇒ Object
575 576 577 |
# File 'lib/files.com/models/remote_server.rb', line 575 def filebase_bucket=(value) @attributes[:filebase_bucket] = value end |
#filebase_secret_key ⇒ Object
string - Filebase: Secret Key
787 788 789 |
# File 'lib/files.com/models/remote_server.rb', line 787 def filebase_secret_key @attributes[:filebase_secret_key] end |
#filebase_secret_key=(value) ⇒ Object
791 792 793 |
# File 'lib/files.com/models/remote_server.rb', line 791 def filebase_secret_key=(value) @attributes[:filebase_secret_key] = value end |
#files_agent_api_token ⇒ Object
string - Files Agent API Token
517 518 519 |
# File 'lib/files.com/models/remote_server.rb', line 517 def files_agent_api_token @attributes[:files_agent_api_token] end |
#files_agent_api_token=(value) ⇒ Object
521 522 523 |
# File 'lib/files.com/models/remote_server.rb', line 521 def files_agent_api_token=(value) @attributes[:files_agent_api_token] = value end |
#files_agent_latest_version ⇒ Object
string - Latest available Files Agent version
544 545 546 |
# File 'lib/files.com/models/remote_server.rb', line 544 def files_agent_latest_version @attributes[:files_agent_latest_version] end |
#files_agent_latest_version=(value) ⇒ Object
548 549 550 |
# File 'lib/files.com/models/remote_server.rb', line 548 def files_agent_latest_version=(value) @attributes[:files_agent_latest_version] = value end |
#files_agent_permission_set ⇒ Object
string - Local permissions for files agent. read_only, write_only, or read_write
499 500 501 |
# File 'lib/files.com/models/remote_server.rb', line 499 def @attributes[:files_agent_permission_set] end |
#files_agent_permission_set=(value) ⇒ Object
503 504 505 |
# File 'lib/files.com/models/remote_server.rb', line 503 def (value) @attributes[:files_agent_permission_set] = value end |
#files_agent_root ⇒ Object
string - Agent local root path
508 509 510 |
# File 'lib/files.com/models/remote_server.rb', line 508 def files_agent_root @attributes[:files_agent_root] end |
#files_agent_root=(value) ⇒ Object
512 513 514 |
# File 'lib/files.com/models/remote_server.rb', line 512 def files_agent_root=(value) @attributes[:files_agent_root] = value end |
#files_agent_supports_push_updates ⇒ Object
boolean - Files Agent supports receiving push updates
553 554 555 |
# File 'lib/files.com/models/remote_server.rb', line 553 def files_agent_supports_push_updates @attributes[:files_agent_supports_push_updates] end |
#files_agent_supports_push_updates=(value) ⇒ Object
557 558 559 |
# File 'lib/files.com/models/remote_server.rb', line 557 def files_agent_supports_push_updates=(value) @attributes[:files_agent_supports_push_updates] = value end |
#files_agent_up_to_date ⇒ Object
boolean - If true, the Files Agent is up to date.
535 536 537 |
# File 'lib/files.com/models/remote_server.rb', line 535 def files_agent_up_to_date @attributes[:files_agent_up_to_date] end |
#files_agent_up_to_date=(value) ⇒ Object
539 540 541 |
# File 'lib/files.com/models/remote_server.rb', line 539 def files_agent_up_to_date=(value) @attributes[:files_agent_up_to_date] = value end |
#files_agent_version ⇒ Object
string - Files Agent version
526 527 528 |
# File 'lib/files.com/models/remote_server.rb', line 526 def files_agent_version @attributes[:files_agent_version] end |
#files_agent_version=(value) ⇒ Object
530 531 532 |
# File 'lib/files.com/models/remote_server.rb', line 530 def files_agent_version=(value) @attributes[:files_agent_version] = value end |
#files_api_key ⇒ Object
string - Files.com direct link: API key used once to pair the remote server.
841 842 843 |
# File 'lib/files.com/models/remote_server.rb', line 841 def files_api_key @attributes[:files_api_key] end |
#files_api_key=(value) ⇒ Object
845 846 847 |
# File 'lib/files.com/models/remote_server.rb', line 845 def files_api_key=(value) @attributes[:files_api_key] = value end |
#files_api_key_prefix ⇒ Object
string - Files.com direct link: paired API key prefix.
589 590 591 |
# File 'lib/files.com/models/remote_server.rb', line 589 def files_api_key_prefix @attributes[:files_api_key_prefix] end |
#files_api_key_prefix=(value) ⇒ Object
593 594 595 |
# File 'lib/files.com/models/remote_server.rb', line 593 def files_api_key_prefix=(value) @attributes[:files_api_key_prefix] = value end |
#google_cloud_storage_authentication_method ⇒ Object
string - Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
265 266 267 |
# File 'lib/files.com/models/remote_server.rb', line 265 def google_cloud_storage_authentication_method @attributes[:google_cloud_storage_authentication_method] end |
#google_cloud_storage_authentication_method=(value) ⇒ Object
269 270 271 |
# File 'lib/files.com/models/remote_server.rb', line 269 def google_cloud_storage_authentication_method=(value) @attributes[:google_cloud_storage_authentication_method] = value end |
#google_cloud_storage_bucket ⇒ Object
string - Google Cloud Storage: Bucket Name
256 257 258 |
# File 'lib/files.com/models/remote_server.rb', line 256 def google_cloud_storage_bucket @attributes[:google_cloud_storage_bucket] end |
#google_cloud_storage_bucket=(value) ⇒ Object
260 261 262 |
# File 'lib/files.com/models/remote_server.rb', line 260 def google_cloud_storage_bucket=(value) @attributes[:google_cloud_storage_bucket] = value end |
#google_cloud_storage_credentials_json ⇒ Object
string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
796 797 798 |
# File 'lib/files.com/models/remote_server.rb', line 796 def google_cloud_storage_credentials_json @attributes[:google_cloud_storage_credentials_json] end |
#google_cloud_storage_credentials_json=(value) ⇒ Object
800 801 802 |
# File 'lib/files.com/models/remote_server.rb', line 800 def google_cloud_storage_credentials_json=(value) @attributes[:google_cloud_storage_credentials_json] = value end |
#google_cloud_storage_oauth_scope ⇒ Object
string - Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
274 275 276 |
# File 'lib/files.com/models/remote_server.rb', line 274 def google_cloud_storage_oauth_scope @attributes[:google_cloud_storage_oauth_scope] end |
#google_cloud_storage_oauth_scope=(value) ⇒ Object
278 279 280 |
# File 'lib/files.com/models/remote_server.rb', line 278 def google_cloud_storage_oauth_scope=(value) @attributes[:google_cloud_storage_oauth_scope] = value end |
#google_cloud_storage_project_id ⇒ Object
string - Google Cloud Storage: Project ID
283 284 285 |
# File 'lib/files.com/models/remote_server.rb', line 283 def google_cloud_storage_project_id @attributes[:google_cloud_storage_project_id] end |
#google_cloud_storage_project_id=(value) ⇒ Object
287 288 289 |
# File 'lib/files.com/models/remote_server.rb', line 287 def google_cloud_storage_project_id=(value) @attributes[:google_cloud_storage_project_id] = value end |
#google_cloud_storage_s3_compatible_access_key ⇒ Object
string - Google Cloud Storage: S3-compatible Access Key.
292 293 294 |
# File 'lib/files.com/models/remote_server.rb', line 292 def google_cloud_storage_s3_compatible_access_key @attributes[:google_cloud_storage_s3_compatible_access_key] end |
#google_cloud_storage_s3_compatible_access_key=(value) ⇒ Object
296 297 298 |
# File 'lib/files.com/models/remote_server.rb', line 296 def google_cloud_storage_s3_compatible_access_key=(value) @attributes[:google_cloud_storage_s3_compatible_access_key] = value end |
#google_cloud_storage_s3_compatible_secret_key ⇒ Object
string - Google Cloud Storage: S3-compatible secret key
805 806 807 |
# File 'lib/files.com/models/remote_server.rb', line 805 def google_cloud_storage_s3_compatible_secret_key @attributes[:google_cloud_storage_s3_compatible_secret_key] end |
#google_cloud_storage_s3_compatible_secret_key=(value) ⇒ Object
809 810 811 |
# File 'lib/files.com/models/remote_server.rb', line 809 def google_cloud_storage_s3_compatible_secret_key=(value) @attributes[:google_cloud_storage_s3_compatible_secret_key] = value end |
#hostname ⇒ Object
string - Hostname or IP address
40 41 42 |
# File 'lib/files.com/models/remote_server.rb', line 40 def hostname @attributes[:hostname] end |
#hostname=(value) ⇒ Object
44 45 46 |
# File 'lib/files.com/models/remote_server.rb', line 44 def hostname=(value) @attributes[:hostname] = value end |
#id ⇒ Object
int64 - Remote Server ID
13 14 15 |
# File 'lib/files.com/models/remote_server.rb', line 13 def id @attributes[:id] end |
#id=(value) ⇒ Object
17 18 19 |
# File 'lib/files.com/models/remote_server.rb', line 17 def id=(value) @attributes[:id] = value end |
#linode_access_key ⇒ Object
string - Linode: Access Key
643 644 645 |
# File 'lib/files.com/models/remote_server.rb', line 643 def linode_access_key @attributes[:linode_access_key] end |
#linode_access_key=(value) ⇒ Object
647 648 649 |
# File 'lib/files.com/models/remote_server.rb', line 647 def linode_access_key=(value) @attributes[:linode_access_key] = value end |
#linode_bucket ⇒ Object
string - Linode: Bucket name
634 635 636 |
# File 'lib/files.com/models/remote_server.rb', line 634 def linode_bucket @attributes[:linode_bucket] end |
#linode_bucket=(value) ⇒ Object
638 639 640 |
# File 'lib/files.com/models/remote_server.rb', line 638 def linode_bucket=(value) @attributes[:linode_bucket] = value end |
#linode_region ⇒ Object
string - Linode: region
652 653 654 |
# File 'lib/files.com/models/remote_server.rb', line 652 def linode_region @attributes[:linode_region] end |
#linode_region=(value) ⇒ Object
656 657 658 |
# File 'lib/files.com/models/remote_server.rb', line 656 def linode_region=(value) @attributes[:linode_region] = value end |
#linode_secret_key ⇒ Object
string - Linode: Secret Key
814 815 816 |
# File 'lib/files.com/models/remote_server.rb', line 814 def linode_secret_key @attributes[:linode_secret_key] end |
#linode_secret_key=(value) ⇒ Object
818 819 820 |
# File 'lib/files.com/models/remote_server.rb', line 818 def linode_secret_key=(value) @attributes[:linode_secret_key] = value end |
#max_connections ⇒ Object
int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
112 113 114 |
# File 'lib/files.com/models/remote_server.rb', line 112 def max_connections @attributes[:max_connections] end |
#max_connections=(value) ⇒ Object
116 117 118 |
# File 'lib/files.com/models/remote_server.rb', line 116 def max_connections=(value) @attributes[:max_connections] = value end |
#name ⇒ Object
string - Internal name for your reference
76 77 78 |
# File 'lib/files.com/models/remote_server.rb', line 76 def name @attributes[:name] end |
#name=(value) ⇒ Object
80 81 82 |
# File 'lib/files.com/models/remote_server.rb', line 80 def name=(value) @attributes[:name] = value end |
#one_drive_account_type ⇒ Object
string - OneDrive: Either personal or business_other account types
373 374 375 |
# File 'lib/files.com/models/remote_server.rb', line 373 def one_drive_account_type @attributes[:one_drive_account_type] end |
#one_drive_account_type=(value) ⇒ Object
377 378 379 |
# File 'lib/files.com/models/remote_server.rb', line 377 def one_drive_account_type=(value) @attributes[:one_drive_account_type] = value end |
#outbound_agent_id ⇒ Object
int64 - Route traffic to outbound on a files-agent
562 563 564 |
# File 'lib/files.com/models/remote_server.rb', line 562 def outbound_agent_id @attributes[:outbound_agent_id] end |
#outbound_agent_id=(value) ⇒ Object
566 567 568 |
# File 'lib/files.com/models/remote_server.rb', line 566 def outbound_agent_id=(value) @attributes[:outbound_agent_id] = value end |
#password ⇒ Object
string - Password, if needed.
670 671 672 |
# File 'lib/files.com/models/remote_server.rb', line 670 def password @attributes[:password] end |
#password=(value) ⇒ Object
674 675 676 |
# File 'lib/files.com/models/remote_server.rb', line 674 def password=(value) @attributes[:password] = value end |
#pin_to_site_region ⇒ Object
boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
121 122 123 |
# File 'lib/files.com/models/remote_server.rb', line 121 def pin_to_site_region @attributes[:pin_to_site_region] end |
#pin_to_site_region=(value) ⇒ Object
125 126 127 |
# File 'lib/files.com/models/remote_server.rb', line 125 def pin_to_site_region=(value) @attributes[:pin_to_site_region] = value end |
#pinned_region ⇒ Object
string - If set, all communications with this remote server are made through the provided region.
130 131 132 |
# File 'lib/files.com/models/remote_server.rb', line 130 def pinned_region @attributes[:pinned_region] end |
#pinned_region=(value) ⇒ Object
134 135 136 |
# File 'lib/files.com/models/remote_server.rb', line 134 def pinned_region=(value) @attributes[:pinned_region] = value end |
#port ⇒ Object
int64 - Port for remote server.
94 95 96 |
# File 'lib/files.com/models/remote_server.rb', line 94 def port @attributes[:port] end |
#port=(value) ⇒ Object
98 99 100 |
# File 'lib/files.com/models/remote_server.rb', line 98 def port=(value) @attributes[:port] = value end |
#private_key ⇒ Object
string - Private key, if needed.
679 680 681 |
# File 'lib/files.com/models/remote_server.rb', line 679 def private_key @attributes[:private_key] end |
#private_key=(value) ⇒ Object
683 684 685 |
# File 'lib/files.com/models/remote_server.rb', line 683 def private_key=(value) @attributes[:private_key] = value end |
#private_key_passphrase ⇒ Object
string - Passphrase for private key if needed.
688 689 690 |
# File 'lib/files.com/models/remote_server.rb', line 688 def private_key_passphrase @attributes[:private_key_passphrase] end |
#private_key_passphrase=(value) ⇒ Object
692 693 694 |
# File 'lib/files.com/models/remote_server.rb', line 692 def private_key_passphrase=(value) @attributes[:private_key_passphrase] = value end |
#remote_home_path ⇒ Object
string - Initial home folder on remote server
49 50 51 |
# File 'lib/files.com/models/remote_server.rb', line 49 def remote_home_path @attributes[:remote_home_path] end |
#remote_home_path=(value) ⇒ Object
53 54 55 |
# File 'lib/files.com/models/remote_server.rb', line 53 def remote_home_path=(value) @attributes[:remote_home_path] = value end |
#remote_server_credential_id ⇒ Object
int64 - ID of Remote Server Credential, if applicable.
139 140 141 |
# File 'lib/files.com/models/remote_server.rb', line 139 def remote_server_credential_id @attributes[:remote_server_credential_id] end |
#remote_server_credential_id=(value) ⇒ Object
143 144 145 |
# File 'lib/files.com/models/remote_server.rb', line 143 def remote_server_credential_id=(value) @attributes[:remote_server_credential_id] = value end |
#reset_authentication ⇒ Object
boolean - Reset authenticated account?
697 698 699 |
# File 'lib/files.com/models/remote_server.rb', line 697 def reset_authentication @attributes[:reset_authentication] end |
#reset_authentication=(value) ⇒ Object
701 702 703 |
# File 'lib/files.com/models/remote_server.rb', line 701 def reset_authentication=(value) @attributes[:reset_authentication] = value end |
#s3_assume_role_arn ⇒ Object
string - AWS IAM Role ARN for AssumeRole authentication.
175 176 177 |
# File 'lib/files.com/models/remote_server.rb', line 175 def s3_assume_role_arn @attributes[:s3_assume_role_arn] end |
#s3_assume_role_arn=(value) ⇒ Object
179 180 181 |
# File 'lib/files.com/models/remote_server.rb', line 179 def s3_assume_role_arn=(value) @attributes[:s3_assume_role_arn] = value end |
#s3_assume_role_duration_seconds ⇒ Object
int64 - Session duration in seconds for AssumeRole authentication (900-43200).
184 185 186 |
# File 'lib/files.com/models/remote_server.rb', line 184 def s3_assume_role_duration_seconds @attributes[:s3_assume_role_duration_seconds] end |
#s3_assume_role_duration_seconds=(value) ⇒ Object
188 189 190 |
# File 'lib/files.com/models/remote_server.rb', line 188 def s3_assume_role_duration_seconds=(value) @attributes[:s3_assume_role_duration_seconds] = value end |
#s3_assume_role_external_id ⇒ Object
string - External ID for AssumeRole authentication.
193 194 195 |
# File 'lib/files.com/models/remote_server.rb', line 193 def s3_assume_role_external_id @attributes[:s3_assume_role_external_id] end |
#s3_assume_role_external_id=(value) ⇒ Object
197 198 199 |
# File 'lib/files.com/models/remote_server.rb', line 197 def s3_assume_role_external_id=(value) @attributes[:s3_assume_role_external_id] = value end |
#s3_bucket ⇒ Object
string - S3 bucket name
148 149 150 |
# File 'lib/files.com/models/remote_server.rb', line 148 def s3_bucket @attributes[:s3_bucket] end |
#s3_bucket=(value) ⇒ Object
152 153 154 |
# File 'lib/files.com/models/remote_server.rb', line 152 def s3_bucket=(value) @attributes[:s3_bucket] = value end |
#s3_compatible_access_key ⇒ Object
string - S3-compatible: Access Key
481 482 483 |
# File 'lib/files.com/models/remote_server.rb', line 481 def s3_compatible_access_key @attributes[:s3_compatible_access_key] end |
#s3_compatible_access_key=(value) ⇒ Object
485 486 487 |
# File 'lib/files.com/models/remote_server.rb', line 485 def s3_compatible_access_key=(value) @attributes[:s3_compatible_access_key] = value end |
#s3_compatible_bucket ⇒ Object
string - S3-compatible: Bucket name
445 446 447 |
# File 'lib/files.com/models/remote_server.rb', line 445 def s3_compatible_bucket @attributes[:s3_compatible_bucket] end |
#s3_compatible_bucket=(value) ⇒ Object
449 450 451 |
# File 'lib/files.com/models/remote_server.rb', line 449 def s3_compatible_bucket=(value) @attributes[:s3_compatible_bucket] = value end |
#s3_compatible_endpoint ⇒ Object
string - S3-compatible: endpoint
454 455 456 |
# File 'lib/files.com/models/remote_server.rb', line 454 def s3_compatible_endpoint @attributes[:s3_compatible_endpoint] end |
#s3_compatible_endpoint=(value) ⇒ Object
458 459 460 |
# File 'lib/files.com/models/remote_server.rb', line 458 def s3_compatible_endpoint=(value) @attributes[:s3_compatible_endpoint] = value end |
#s3_compatible_region ⇒ Object
string - S3-compatible: region
463 464 465 |
# File 'lib/files.com/models/remote_server.rb', line 463 def s3_compatible_region @attributes[:s3_compatible_region] end |
#s3_compatible_region=(value) ⇒ Object
467 468 469 |
# File 'lib/files.com/models/remote_server.rb', line 467 def s3_compatible_region=(value) @attributes[:s3_compatible_region] = value end |
#s3_compatible_secret_key ⇒ Object
string - S3-compatible: Secret Key
823 824 825 |
# File 'lib/files.com/models/remote_server.rb', line 823 def s3_compatible_secret_key @attributes[:s3_compatible_secret_key] end |
#s3_compatible_secret_key=(value) ⇒ Object
827 828 829 |
# File 'lib/files.com/models/remote_server.rb', line 827 def s3_compatible_secret_key=(value) @attributes[:s3_compatible_secret_key] = value end |
#s3_compatible_virtual_hosted_style ⇒ Object
boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
472 473 474 |
# File 'lib/files.com/models/remote_server.rb', line 472 def s3_compatible_virtual_hosted_style @attributes[:s3_compatible_virtual_hosted_style] end |
#s3_compatible_virtual_hosted_style=(value) ⇒ Object
476 477 478 |
# File 'lib/files.com/models/remote_server.rb', line 476 def s3_compatible_virtual_hosted_style=(value) @attributes[:s3_compatible_virtual_hosted_style] = value end |
#s3_region ⇒ Object
string - S3 region
157 158 159 |
# File 'lib/files.com/models/remote_server.rb', line 157 def s3_region @attributes[:s3_region] end |
#s3_region=(value) ⇒ Object
161 162 163 |
# File 'lib/files.com/models/remote_server.rb', line 161 def s3_region=(value) @attributes[:s3_region] = value end |
#save ⇒ Object
1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 |
# File 'lib/files.com/models/remote_server.rb', line 1120 def save if @attributes[:id] new_obj = update(@attributes) else new_obj = RemoteServer.create(@attributes, @options) end @attributes = new_obj.attributes true end |
#server_certificate ⇒ Object
string - Remote server certificate
202 203 204 |
# File 'lib/files.com/models/remote_server.rb', line 202 def server_certificate @attributes[:server_certificate] end |
#server_certificate=(value) ⇒ Object
206 207 208 |
# File 'lib/files.com/models/remote_server.rb', line 206 def server_certificate=(value) @attributes[:server_certificate] = value end |
#server_host_key ⇒ Object
string - Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
211 212 213 |
# File 'lib/files.com/models/remote_server.rb', line 211 def server_host_key @attributes[:server_host_key] end |
#server_host_key=(value) ⇒ Object
215 216 217 |
# File 'lib/files.com/models/remote_server.rb', line 215 def server_host_key=(value) @attributes[:server_host_key] = value end |
#server_type ⇒ Object
string - Remote server type.
220 221 222 |
# File 'lib/files.com/models/remote_server.rb', line 220 def server_type @attributes[:server_type] end |
#server_type=(value) ⇒ Object
224 225 226 |
# File 'lib/files.com/models/remote_server.rb', line 224 def server_type=(value) @attributes[:server_type] = value end |
#ssl ⇒ Object
string - Should we require SSL?
238 239 240 |
# File 'lib/files.com/models/remote_server.rb', line 238 def ssl @attributes[:ssl] end |
#ssl=(value) ⇒ Object
242 243 244 |
# File 'lib/files.com/models/remote_server.rb', line 242 def ssl=(value) @attributes[:ssl] = value end |
#ssl_certificate ⇒ Object
string - SSL client certificate.
706 707 708 |
# File 'lib/files.com/models/remote_server.rb', line 706 def ssl_certificate @attributes[:ssl_certificate] end |
#ssl_certificate=(value) ⇒ Object
710 711 712 |
# File 'lib/files.com/models/remote_server.rb', line 710 def ssl_certificate=(value) @attributes[:ssl_certificate] = value end |
#supports_versioning ⇒ Object
boolean - If true, this remote server supports file versioning. This value is determined automatically by Files.com.
661 662 663 |
# File 'lib/files.com/models/remote_server.rb', line 661 def supports_versioning @attributes[:supports_versioning] end |
#supports_versioning=(value) ⇒ Object
665 666 667 |
# File 'lib/files.com/models/remote_server.rb', line 665 def supports_versioning=(value) @attributes[:supports_versioning] = value end |
#update(params = {}) ⇒ Object
Parameters:
password - string - Password, if needed.
private_key - string - Private key, if needed.
private_key_passphrase - string - Passphrase for private key if needed.
reset_authentication - boolean - Reset authenticated account?
ssl_certificate - string - SSL client certificate.
aws_secret_key - string - AWS: secret key.
azure_blob_storage_access_key - string - Azure Blob Storage: Access Key
azure_blob_storage_sas_token - string - Azure Blob Storage: Shared Access Signature (SAS) token
azure_files_storage_access_key - string - Azure File Storage: Access Key
azure_files_storage_sas_token - string - Azure File Storage: Shared Access Signature (SAS) token
backblaze_b2_application_key - string - Backblaze B2 Cloud Storage: applicationKey
backblaze_b2_key_id - string - Backblaze B2 Cloud Storage: keyID
cloudflare_secret_key - string - Cloudflare: Secret Key
filebase_secret_key - string - Filebase: Secret Key
google_cloud_storage_credentials_json - string - Google Cloud Storage: JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
linode_secret_key - string - Linode: Secret Key
s3_compatible_secret_key - string - S3-compatible: Secret Key
wasabi_secret_key - string - Wasabi: Secret Key
allow_relative_paths - boolean - Allow relative paths in SFTP. If true, paths will not be forced to be absolute, allowing operations relative to the user's home directory.
aws_access_key - string - AWS Access Key.
azure_blob_storage_account - string - Azure Blob Storage: Account name
azure_blob_storage_container - string - Azure Blob Storage: Container name
azure_blob_storage_dns_suffix - string - Azure Blob Storage: Custom DNS suffix
azure_blob_storage_hierarchical_namespace - boolean - Azure Blob Storage: Does the storage account has hierarchical namespace feature enabled?
azure_files_storage_account - string - Azure Files: Storage Account name
azure_files_storage_dns_suffix - string - Azure Files: Custom DNS suffix
azure_files_storage_share_name - string - Azure Files: Storage Share name
backblaze_b2_bucket - string - Backblaze B2 Cloud Storage: Bucket name
backblaze_b2_s3_endpoint - string - Backblaze B2 Cloud Storage: S3 Endpoint
buffer_uploads - string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com. If set to auto, we will perform this optimization if we believe it to be a benefit in a given situation.
cloudflare_access_key - string - Cloudflare: Access Key.
cloudflare_bucket - string - Cloudflare: Bucket name
cloudflare_endpoint - string - Cloudflare: endpoint
description - string - Internal description for your reference
dropbox_teams - boolean - Dropbox: If true, list Team folders in root?
enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
filebase_access_key - string - Filebase: Access Key.
filebase_bucket - string - Filebase: Bucket name
files_api_key - string - Files.com direct link: API key used once to pair the remote server.
files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
files_agent_root - string - Agent local root path
files_agent_version - string - Files Agent version
outbound_agent_id - int64 - Route traffic to outbound on a files-agent
google_cloud_storage_authentication_method - string - Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
google_cloud_storage_oauth_scope - string - Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
hostname - string - Hostname or IP address
linode_access_key - string - Linode: Access Key
linode_bucket - string - Linode: Bucket name
linode_region - string - Linode: region
max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
name - string - Internal name for your reference
one_drive_account_type - string - OneDrive: Either personal or business_other account types
pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a site-wide setting which will force it to true.
port - int64 - Port for remote server.
upload_staging_path - string - Upload staging path. Applies to SFTP only. If a path is provided here, files will first be uploaded to this path on the remote folder and the moved into the final correct path via an SFTP move command. This is required by some remote MFT systems to emulate atomic uploads, which are otherwise not supoprted by SFTP.
remote_server_credential_id - int64 - ID of Remote Server Credential, if applicable.
s3_assume_role_arn - string - AWS IAM Role ARN for AssumeRole authentication.
s3_assume_role_duration_seconds - int64 - Session duration in seconds for AssumeRole authentication (900-43200).
s3_bucket - string - S3 bucket name
s3_compatible_access_key - string - S3-compatible: Access Key
s3_compatible_bucket - string - S3-compatible: Bucket name
s3_compatible_endpoint - string - S3-compatible: endpoint
s3_compatible_region - string - S3-compatible: region
s3_compatible_virtual_hosted_style - boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
s3_region - string - S3 region
server_certificate - string - Remote server certificate
server_host_key - string - Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
server_type - string - Remote server type.
ssl - string - Should we require SSL?
username - string - Remote server username.
wasabi_access_key - string - Wasabi: Access Key.
wasabi_bucket - string - Wasabi: Bucket name
wasabi_region - string - Wasabi: Region
1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 |
# File 'lib/files.com/models/remote_server.rb', line 1025 def update(params = {}) params ||= {} params[:id] = @attributes[:id] raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id] raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String) raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params[:private_key_passphrase] and !params[:private_key_passphrase].is_a?(String) raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params[:ssl_certificate] and !params[:ssl_certificate].is_a?(String) raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params[:aws_secret_key] and !params[:aws_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_access_key must be an String") if params[:azure_blob_storage_access_key] and !params[:azure_blob_storage_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_sas_token must be an String") if params[:azure_blob_storage_sas_token] and !params[:azure_blob_storage_sas_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_access_key must be an String") if params[:azure_files_storage_access_key] and !params[:azure_files_storage_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_sas_token must be an String") if params[:azure_files_storage_sas_token] and !params[:azure_files_storage_sas_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params[:backblaze_b2_application_key] and !params[:backblaze_b2_application_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params[:backblaze_b2_key_id] and !params[:backblaze_b2_key_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_secret_key must be an String") if params[:cloudflare_secret_key] and !params[:cloudflare_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_secret_key must be an String") if params[:filebase_secret_key] and !params[:filebase_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params[:google_cloud_storage_credentials_json] and !params[:google_cloud_storage_credentials_json].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_secret_key must be an String") if params[:google_cloud_storage_s3_compatible_secret_key] and !params[:google_cloud_storage_s3_compatible_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_secret_key must be an String") if params[:linode_secret_key] and !params[:linode_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_secret_key must be an String") if params[:s3_compatible_secret_key] and !params[:s3_compatible_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params[:wasabi_secret_key] and !params[:wasabi_secret_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params[:aws_access_key] and !params[:aws_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_account must be an String") if params[:azure_blob_storage_account] and !params[:azure_blob_storage_account].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_container must be an String") if params[:azure_blob_storage_container] and !params[:azure_blob_storage_container].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_blob_storage_dns_suffix must be an String") if params[:azure_blob_storage_dns_suffix] and !params[:azure_blob_storage_dns_suffix].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_account must be an String") if params[:azure_files_storage_account] and !params[:azure_files_storage_account].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_dns_suffix must be an String") if params[:azure_files_storage_dns_suffix] and !params[:azure_files_storage_dns_suffix].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_files_storage_share_name must be an String") if params[:azure_files_storage_share_name] and !params[:azure_files_storage_share_name].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_bucket must be an String") if params[:backblaze_b2_bucket] and !params[:backblaze_b2_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params[:backblaze_b2_s3_endpoint] and !params[:backblaze_b2_s3_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: buffer_uploads must be an String") if params[:buffer_uploads] and !params[:buffer_uploads].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_access_key must be an String") if params[:cloudflare_access_key] and !params[:cloudflare_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_bucket must be an String") if params[:cloudflare_bucket] and !params[:cloudflare_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: cloudflare_endpoint must be an String") if params[:cloudflare_endpoint] and !params[:cloudflare_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_access_key must be an String") if params[:filebase_access_key] and !params[:filebase_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: filebase_bucket must be an String") if params[:filebase_bucket] and !params[:filebase_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_api_key must be an String") if params[:files_api_key] and !params[:files_api_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_permission_set must be an String") if params[:files_agent_permission_set] and !params[:files_agent_permission_set].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_root must be an String") if params[:files_agent_root] and !params[:files_agent_root].is_a?(String) raise InvalidParameterError.new("Bad parameter: files_agent_version must be an String") if params[:files_agent_version] and !params[:files_agent_version].is_a?(String) raise InvalidParameterError.new("Bad parameter: outbound_agent_id must be an Integer") if params[:outbound_agent_id] and !params[:outbound_agent_id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_authentication_method must be an String") if params[:google_cloud_storage_authentication_method] and !params[:google_cloud_storage_authentication_method].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_bucket must be an String") if params[:google_cloud_storage_bucket] and !params[:google_cloud_storage_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_oauth_scope must be an String") if params[:google_cloud_storage_oauth_scope] and !params[:google_cloud_storage_oauth_scope].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_project_id must be an String") if params[:google_cloud_storage_project_id] and !params[:google_cloud_storage_project_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_access_key must be an String") if params[:google_cloud_storage_s3_compatible_access_key] and !params[:google_cloud_storage_s3_compatible_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_access_key must be an String") if params[:linode_access_key] and !params[:linode_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_bucket must be an String") if params[:linode_bucket] and !params[:linode_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: linode_region must be an String") if params[:linode_region] and !params[:linode_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params[:max_connections] and !params[:max_connections].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String) raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params[:one_drive_account_type] and !params[:one_drive_account_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: port must be an Integer") if params[:port] and !params[:port].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: upload_staging_path must be an String") if params[:upload_staging_path] and !params[:upload_staging_path].is_a?(String) raise InvalidParameterError.new("Bad parameter: remote_server_credential_id must be an Integer") if params[:remote_server_credential_id] and !params[:remote_server_credential_id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: s3_assume_role_arn must be an String") if params[:s3_assume_role_arn] and !params[:s3_assume_role_arn].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_assume_role_duration_seconds must be an Integer") if params[:s3_assume_role_duration_seconds] and !params[:s3_assume_role_duration_seconds].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: s3_bucket must be an String") if params[:s3_bucket] and !params[:s3_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_access_key must be an String") if params[:s3_compatible_access_key] and !params[:s3_compatible_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params[:s3_compatible_bucket] and !params[:s3_compatible_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint must be an String") if params[:s3_compatible_endpoint] and !params[:s3_compatible_endpoint].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_compatible_region must be an String") if params[:s3_compatible_region] and !params[:s3_compatible_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: s3_region must be an String") if params[:s3_region] and !params[:s3_region].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params[:server_certificate] and !params[:server_certificate].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: server_type must be an String") if params[:server_type] and !params[:server_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: ssl must be an String") if params[:ssl] and !params[:ssl].is_a?(String) raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params[:wasabi_access_key] and !params[:wasabi_access_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params[:wasabi_bucket] and !params[:wasabi_bucket].is_a?(String) raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params[:wasabi_region] and !params[:wasabi_region].is_a?(String) raise MissingParameterError.new("Parameter missing: id") unless params[:id] Api.send_request("/remote_servers/#{@attributes[:id]}", :patch, params, @options) end |
#upload_staging_path ⇒ Object
string - Upload staging path. Applies to SFTP only. If a path is provided here, files will first be uploaded to this path on the remote folder and the moved into the final correct path via an SFTP move command. This is required by some remote MFT systems to emulate atomic uploads, which are otherwise not supoprted by SFTP.
58 59 60 |
# File 'lib/files.com/models/remote_server.rb', line 58 def upload_staging_path @attributes[:upload_staging_path] end |
#upload_staging_path=(value) ⇒ Object
62 63 64 |
# File 'lib/files.com/models/remote_server.rb', line 62 def upload_staging_path=(value) @attributes[:upload_staging_path] = value end |
#username ⇒ Object
string - Remote server username.
247 248 249 |
# File 'lib/files.com/models/remote_server.rb', line 247 def username @attributes[:username] end |
#username=(value) ⇒ Object
251 252 253 |
# File 'lib/files.com/models/remote_server.rb', line 251 def username=(value) @attributes[:username] = value end |
#wasabi_access_key ⇒ Object
string - Wasabi: Access Key.
337 338 339 |
# File 'lib/files.com/models/remote_server.rb', line 337 def wasabi_access_key @attributes[:wasabi_access_key] end |
#wasabi_access_key=(value) ⇒ Object
341 342 343 |
# File 'lib/files.com/models/remote_server.rb', line 341 def wasabi_access_key=(value) @attributes[:wasabi_access_key] = value end |
#wasabi_bucket ⇒ Object
string - Wasabi: Bucket name
319 320 321 |
# File 'lib/files.com/models/remote_server.rb', line 319 def wasabi_bucket @attributes[:wasabi_bucket] end |
#wasabi_bucket=(value) ⇒ Object
323 324 325 |
# File 'lib/files.com/models/remote_server.rb', line 323 def wasabi_bucket=(value) @attributes[:wasabi_bucket] = value end |
#wasabi_region ⇒ Object
string - Wasabi: Region
328 329 330 |
# File 'lib/files.com/models/remote_server.rb', line 328 def wasabi_region @attributes[:wasabi_region] end |
#wasabi_region=(value) ⇒ Object
332 333 334 |
# File 'lib/files.com/models/remote_server.rb', line 332 def wasabi_region=(value) @attributes[:wasabi_region] = value end |
#wasabi_secret_key ⇒ Object
string - Wasabi: Secret Key
832 833 834 |
# File 'lib/files.com/models/remote_server.rb', line 832 def wasabi_secret_key @attributes[:wasabi_secret_key] end |
#wasabi_secret_key=(value) ⇒ Object
836 837 838 |
# File 'lib/files.com/models/remote_server.rb', line 836 def wasabi_secret_key=(value) @attributes[:wasabi_secret_key] = value end |
#workspace_id ⇒ Object
int64 - Workspace ID (0 for default workspace)
229 230 231 |
# File 'lib/files.com/models/remote_server.rb', line 229 def workspace_id @attributes[:workspace_id] end |
#workspace_id=(value) ⇒ Object
233 234 235 |
# File 'lib/files.com/models/remote_server.rb', line 233 def workspace_id=(value) @attributes[:workspace_id] = value end |