class Comet::RestoreJobAdvancedOptions
def to_hash
-
(Hash)
- The complete object as a Ruby hash
def to_hash ret = {} ret['Type'] = @type ret['OverwriteExistingFiles'] = @overwrite_existing_files ret['OverwriteIfNewer'] = @overwrite_if_newer ret['DestIsOriginalLocation'] = @dest_is_original_location ret['DestPath'] = @dest_path ret['ExactDestPaths'] = @exact_dest_paths ret['ArchiveFormat'] = @archive_format ret['SkipUnreadableChunks'] = @skip_unreadable_chunks ret['OnDiskIndexesKey'] = @on_disk_indexes_key unless @office_365credential.nil? ret['Office365Credential'] = @office_365credential end ret['Username'] = @username ret['Password'] = @password ret['Host'] = @host ret['Port'] = @port ret['UseSsl'] = @use_ssl ret['SslAllowInvalid'] = @ssl_allow_invalid ret['SslCaFile'] = @ssl_ca_file ret['SslCrtFile'] = @ssl_crt_file ret['SslKeyFile'] = @ssl_key_file unless @ms_sql_connection.nil? ret['MsSqlConnection'] = @ms_sql_connection end @unknown_json_fields.each do |k, v| ret[k] = v end ret end