module AsposeCellsCloud # class CopyOptions < BaseObject attr_accessor :column_character_width, :copy_invalid_formulas_as_values, :copy_names, :extend_to_adjacent_range, :refer_to_destination_sheet, :refer_to_sheet_with_same_name # attribute mapping from ruby-style variable name to JSON key def self.attribute_map { # Indicates whether copying column width in unit of characters. :'column_character_width' => :'ColumnCharacterWidth', # If the formula is not valid for the dest destination, only copy values. :'copy_invalid_formulas_as_values' => :'CopyInvalidFormulasAsValues', # Indicates whether copying the names. :'copy_names' => :'CopyNames', # Indicates whether extend ranges when copying the range to adjacent range. :'extend_to_adjacent_range' => :'ExtendToAdjacentRange', # When copying the range in the same file and the chart refers to the source sheet,\n False means the copied chart's data source will not be changed. True means the\n copied chart's data source refers to the destination sheet.\n :'refer_to_destination_sheet' => :'ReferToDestinationSheet', # :'refer_to_sheet_with_same_name' => :'ReferToSheetWithSameName' } end # attribute type def self.swagger_types { :'column_character_width' => :'BOOLEAN', :'copy_invalid_formulas_as_values' => :'BOOLEAN', :'copy_names' => :'BOOLEAN', :'extend_to_adjacent_range' => :'BOOLEAN', :'refer_to_destination_sheet' => :'BOOLEAN', :'refer_to_sheet_with_same_name' => :'BOOLEAN' } end def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'ColumnCharacterWidth'] self.column_character_width = attributes[:'ColumnCharacterWidth'] end if attributes[:'CopyInvalidFormulasAsValues'] self.copy_invalid_formulas_as_values = attributes[:'CopyInvalidFormulasAsValues'] end if attributes[:'CopyNames'] self.copy_names = attributes[:'CopyNames'] end if attributes[:'ExtendToAdjacentRange'] self.extend_to_adjacent_range = attributes[:'ExtendToAdjacentRange'] end if attributes[:'ReferToDestinationSheet'] self.refer_to_destination_sheet = attributes[:'ReferToDestinationSheet'] end if attributes[:'ReferToSheetWithSameName'] self.refer_to_sheet_with_same_name = attributes[:'ReferToSheetWithSameName'] end end end end