class Morpheus::Cli::BackupServices
Protected Instance Methods
backup_service_column_definitions(options)
click to toggle source
# File lib/morpheus/cli/commands/backup_services_command.rb, line 32 def backup_service_column_definitions(options) { "ID" => 'id', "Name" => 'name', "Enabled" => 'enabled', "Api URL" => 'serviceUrl', "Host" => 'host', "Port" => 'port', "Credential" => lambda {|it| it['credential']['type'] == 'local' ? 'local' : it['credential']['name']}, "Visibility" => 'visibility' } end
backup_service_list_column_definitions(options)
click to toggle source
# File lib/morpheus/cli/commands/backup_services_command.rb, line 23 def backup_service_list_column_definitions(options) { "ID" => 'id', "Name" => 'name', "Status" => 'status', "Visibility" => 'visibility' } end
load_option_types_for_backup_service(record_type, parent_record)
click to toggle source
# File lib/morpheus/cli/commands/backup_services_command.rb, line 15 def load_option_types_for_backup_service(record_type, parent_record) [ {'fieldName' => 'name', 'fieldLabel' => 'Name', 'type' => 'text', 'required' => true, 'displayOrder' => 1}, {'fieldName' => 'enabled', 'fieldLabel' => 'Enabled', 'type' => 'checkbox', 'defaultValue' => 'on', 'displayOrder' => 2}, {'fieldName' => 'visibility', 'fieldLabel' => 'Visibility', 'type' => 'select', 'selectOptions' => [{'name' => 'Public', 'value' => 'public'}, {'name' => 'Private', 'value' => 'private'}], 'defaultValue' => 'public', 'displayOrder' => 1000} ] + record_type['optionTypes'] end