aspose_cells_cloud 23.7 → 23.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/README.md +6 -4
 - data/lib/aspose_cells_cloud/models/digital_signature.rb +294 -0
 - data/lib/aspose_cells_cloud/models/html_save_options.rb +61 -1
 - data/lib/aspose_cells_cloud/models/image_or_print_options.rb +498 -0
 - data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +49 -1
 - data/lib/aspose_cells_cloud/models/pdf_save_options.rb +109 -1
 - data/lib/aspose_cells_cloud/models/protect_workbook_requst.rb +270 -0
 - data/lib/aspose_cells_cloud/models/protection.rb +402 -0
 - data/lib/aspose_cells_cloud/models/rendering_font.rb +258 -0
 - data/lib/aspose_cells_cloud/models/rendering_watermark.rb +330 -0
 - data/lib/aspose_cells_cloud/requests/post_lock_request.rb +120 -0
 - data/lib/aspose_cells_cloud/requests/post_protect_request.rb +13 -8
 - data/lib/aspose_cells_cloud/version.rb +1 -1
 - data/lib/aspose_cells_cloud.rb +7 -0
 - data/spec/document/light_cells_spec.rb +2 -1
 - data/spec/onecase_spec.rb +28 -0
 - metadata +14 -6
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 3ca0c313c39a3b7d43e262ff2be26af211dfbe07158b2a291c65df27e2cc9f36
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: fb7489269efdd4d5473ff97f02658586805b99bb32b6c90b4945d6e32a3b2860
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 1ca1006a6daa1a623e52d3449007910e518a3b71eb92abc1d2a625409fec709f658aa2d95fc9f4044e7fda35ce4fbfb2fc413371f9f201c41ccb605de83ea641
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 1ccd961c385a3b1e1ea8f0096e1d5d432173fa0b3a1bfda724104d385bfbaae1f48887bc99e781c64e505fd38a2cfe31a5435c6341524146356903b6725a82b6
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
               [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE)    [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) 
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            # Ruby SDK for Spreadsheet Processing in the Cloud
         
     | 
| 
         @@ -22,10 +22,12 @@ Ruby Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Mic 
     | 
|
| 
       22 
22 
     | 
    
         
             
            - [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         | 
| 
       25 
     | 
    
         
            -
            ## Feature & Enhancements in Version 23. 
     | 
| 
      
 25 
     | 
    
         
            +
            ## Feature & Enhancements in Version 23.8
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
      
 27 
     | 
    
         
            +
            Full list of issues covering all changes in this release:
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
            - Support to lock API.
         
     | 
| 
      
 30 
     | 
    
         
            +
            - Optimize protect API.
         
     | 
| 
       29 
31 
     | 
    
         | 
| 
       30 
32 
     | 
    
         
             
            ## Read & Write Spreadsheet Formats
         
     | 
| 
       31 
33 
     | 
    
         | 
| 
         @@ -0,0 +1,294 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            =begin
         
     | 
| 
      
 2 
     | 
    
         
            +
            --------------------------------------------------------------------------------------------------------------------
         
     | 
| 
      
 3 
     | 
    
         
            +
             <copyright company="Aspose" file="DigitalSignaturerb.cs">
         
     | 
| 
      
 4 
     | 
    
         
            +
               Copyright (c) 2023 Aspose.Cells Cloud
         
     | 
| 
      
 5 
     | 
    
         
            +
             </copyright>
         
     | 
| 
      
 6 
     | 
    
         
            +
             <summary>
         
     | 
| 
      
 7 
     | 
    
         
            +
               Permission is hereby granted, free of charge, to any person obtaining a copy
         
     | 
| 
      
 8 
     | 
    
         
            +
              of this software and associated documentation files (the "Software"), to deal
         
     | 
| 
      
 9 
     | 
    
         
            +
              in the Software without restriction, including without limitation the rights
         
     | 
| 
      
 10 
     | 
    
         
            +
              to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         
     | 
| 
      
 11 
     | 
    
         
            +
              copies of the Software, and to permit persons to whom the Software is
         
     | 
| 
      
 12 
     | 
    
         
            +
              furnished to do so, subject to the following conditions:
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
              The above copyright notice and this permission notice shall be included in all
         
     | 
| 
      
 15 
     | 
    
         
            +
              copies or substantial portions of the Software.
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
              THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         
     | 
| 
      
 18 
     | 
    
         
            +
              IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         
     | 
| 
      
 19 
     | 
    
         
            +
              FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         
     | 
| 
      
 20 
     | 
    
         
            +
              AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         
     | 
| 
      
 21 
     | 
    
         
            +
              LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         
     | 
| 
      
 22 
     | 
    
         
            +
              OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         
     | 
| 
      
 23 
     | 
    
         
            +
              SOFTWARE.
         
     | 
| 
      
 24 
     | 
    
         
            +
             </summary>
         
     | 
| 
      
 25 
     | 
    
         
            +
            --------------------------------------------------------------------------------------------------------------------
         
     | 
| 
      
 26 
     | 
    
         
            +
            =end
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
            require 'date'
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            module AsposeCellsCloud
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
              class DigitalSignature
         
     | 
| 
      
 34 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 35 
     | 
    
         
            +
                    attr_accessor :comments
         
     | 
| 
      
 36 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 37 
     | 
    
         
            +
                    attr_accessor :sign_time
         
     | 
| 
      
 38 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 39 
     | 
    
         
            +
                    attr_accessor :id
         
     | 
| 
      
 40 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 41 
     | 
    
         
            +
                    attr_accessor :password
         
     | 
| 
      
 42 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 43 
     | 
    
         
            +
                    attr_accessor :image
         
     | 
| 
      
 44 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 45 
     | 
    
         
            +
                    attr_accessor :provider_id
         
     | 
| 
      
 46 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 47 
     | 
    
         
            +
                    attr_accessor :is_valid
         
     | 
| 
      
 48 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 49 
     | 
    
         
            +
                    attr_accessor :x_ad_es_type
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
      
 51 
     | 
    
         
            +
                # Attribute mapping from ruby-style variable name to JSON key.
         
     | 
| 
      
 52 
     | 
    
         
            +
                def self.attribute_map
         
     | 
| 
      
 53 
     | 
    
         
            +
                  {
         
     | 
| 
      
 54 
     | 
    
         
            +
                    :'comments' => :'Comments',
         
     | 
| 
      
 55 
     | 
    
         
            +
                    :'sign_time' => :'SignTime',
         
     | 
| 
      
 56 
     | 
    
         
            +
                    :'id' => :'Id',
         
     | 
| 
      
 57 
     | 
    
         
            +
                    :'password' => :'Password',
         
     | 
| 
      
 58 
     | 
    
         
            +
                    :'image' => :'Image',
         
     | 
| 
      
 59 
     | 
    
         
            +
                    :'provider_id' => :'ProviderId',
         
     | 
| 
      
 60 
     | 
    
         
            +
                    :'is_valid' => :'IsValid',
         
     | 
| 
      
 61 
     | 
    
         
            +
                    :'x_ad_es_type' => :'XAdESType'
         
     | 
| 
      
 62 
     | 
    
         
            +
                  }
         
     | 
| 
      
 63 
     | 
    
         
            +
                end
         
     | 
| 
      
 64 
     | 
    
         
            +
             
     | 
| 
      
 65 
     | 
    
         
            +
                # Attribute type mapping.
         
     | 
| 
      
 66 
     | 
    
         
            +
                def self.swagger_types
         
     | 
| 
      
 67 
     | 
    
         
            +
                  {
         
     | 
| 
      
 68 
     | 
    
         
            +
                    :'comments' => :'String',
         
     | 
| 
      
 69 
     | 
    
         
            +
                    :'sign_time' => :'String',
         
     | 
| 
      
 70 
     | 
    
         
            +
                    :'id' => :'String',
         
     | 
| 
      
 71 
     | 
    
         
            +
                    :'password' => :'String',
         
     | 
| 
      
 72 
     | 
    
         
            +
                    :'image' => :'Array<Integer>',
         
     | 
| 
      
 73 
     | 
    
         
            +
                    :'provider_id' => :'String',
         
     | 
| 
      
 74 
     | 
    
         
            +
                    :'is_valid' => :'BOOLEAN',
         
     | 
| 
      
 75 
     | 
    
         
            +
                    :'x_ad_es_type' => :'String'
         
     | 
| 
      
 76 
     | 
    
         
            +
                  }
         
     | 
| 
      
 77 
     | 
    
         
            +
                end
         
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
      
 79 
     | 
    
         
            +
                # Initializes the object
         
     | 
| 
      
 80 
     | 
    
         
            +
                # @param [Hash] attributes Model attributes in the form of hash
         
     | 
| 
      
 81 
     | 
    
         
            +
                def initialize(attributes = {})
         
     | 
| 
      
 82 
     | 
    
         
            +
                  return unless attributes.is_a?(Hash)
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
                  # convert string to symbol for hash key
         
     | 
| 
      
 85 
     | 
    
         
            +
                  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
      
 87 
     | 
    
         
            +
                  if attributes.has_key?(:'Comments')
         
     | 
| 
      
 88 
     | 
    
         
            +
                      self.comments = attributes[:'Comments']
         
     | 
| 
      
 89 
     | 
    
         
            +
                  end
         
     | 
| 
      
 90 
     | 
    
         
            +
                  if attributes.has_key?(:'SignTime')
         
     | 
| 
      
 91 
     | 
    
         
            +
                      self.sign_time = attributes[:'SignTime']
         
     | 
| 
      
 92 
     | 
    
         
            +
                  end
         
     | 
| 
      
 93 
     | 
    
         
            +
                  if attributes.has_key?(:'Id')
         
     | 
| 
      
 94 
     | 
    
         
            +
                      self.id = attributes[:'Id']
         
     | 
| 
      
 95 
     | 
    
         
            +
                  end
         
     | 
| 
      
 96 
     | 
    
         
            +
                  if attributes.has_key?(:'Password')
         
     | 
| 
      
 97 
     | 
    
         
            +
                      self.password = attributes[:'Password']
         
     | 
| 
      
 98 
     | 
    
         
            +
                  end
         
     | 
| 
      
 99 
     | 
    
         
            +
                  if attributes.has_key?(:'Image')
         
     | 
| 
      
 100 
     | 
    
         
            +
                      self.image = attributes[:'Image']
         
     | 
| 
      
 101 
     | 
    
         
            +
                  end
         
     | 
| 
      
 102 
     | 
    
         
            +
                  if attributes.has_key?(:'ProviderId')
         
     | 
| 
      
 103 
     | 
    
         
            +
                      self.provider_id = attributes[:'ProviderId']
         
     | 
| 
      
 104 
     | 
    
         
            +
                  end
         
     | 
| 
      
 105 
     | 
    
         
            +
                  if attributes.has_key?(:'IsValid')
         
     | 
| 
      
 106 
     | 
    
         
            +
                      self.is_valid = attributes[:'IsValid']
         
     | 
| 
      
 107 
     | 
    
         
            +
                  end
         
     | 
| 
      
 108 
     | 
    
         
            +
                  if attributes.has_key?(:'XAdESType')
         
     | 
| 
      
 109 
     | 
    
         
            +
                      self.x_ad_es_type = attributes[:'XAdESType']
         
     | 
| 
      
 110 
     | 
    
         
            +
                  end
         
     | 
| 
      
 111 
     | 
    
         
            +
             
     | 
| 
      
 112 
     | 
    
         
            +
                end
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
                # Show invalid properties with the reasons. Usually used together with valid?
         
     | 
| 
      
 115 
     | 
    
         
            +
                # @return Array for valid properies with the reasons
         
     | 
| 
      
 116 
     | 
    
         
            +
                def list_invalid_properties
         
     | 
| 
      
 117 
     | 
    
         
            +
                  invalid_properties = Array.new
         
     | 
| 
      
 118 
     | 
    
         
            +
                  if @comments.nil?
         
     | 
| 
      
 119 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'comments', comments cannot be nil.")
         
     | 
| 
      
 120 
     | 
    
         
            +
                  end
         
     | 
| 
      
 121 
     | 
    
         
            +
                  if @sign_time.nil?
         
     | 
| 
      
 122 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'sign_time', sign_time cannot be nil.")
         
     | 
| 
      
 123 
     | 
    
         
            +
                  end
         
     | 
| 
      
 124 
     | 
    
         
            +
                  if @id.nil?
         
     | 
| 
      
 125 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'id', id cannot be nil.")
         
     | 
| 
      
 126 
     | 
    
         
            +
                  end
         
     | 
| 
      
 127 
     | 
    
         
            +
                  if @password.nil?
         
     | 
| 
      
 128 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'password', password cannot be nil.")
         
     | 
| 
      
 129 
     | 
    
         
            +
                  end
         
     | 
| 
      
 130 
     | 
    
         
            +
                  if @image.nil?
         
     | 
| 
      
 131 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'image', image cannot be nil.")
         
     | 
| 
      
 132 
     | 
    
         
            +
                  end
         
     | 
| 
      
 133 
     | 
    
         
            +
                  if @provider_id.nil?
         
     | 
| 
      
 134 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'provider_id', provider_id cannot be nil.")
         
     | 
| 
      
 135 
     | 
    
         
            +
                  end
         
     | 
| 
      
 136 
     | 
    
         
            +
                  if @is_valid.nil?
         
     | 
| 
      
 137 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'is_valid', is_valid cannot be nil.")
         
     | 
| 
      
 138 
     | 
    
         
            +
                  end
         
     | 
| 
      
 139 
     | 
    
         
            +
                  if @x_ad_es_type.nil?
         
     | 
| 
      
 140 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'x_ad_es_type', x_ad_es_type cannot be nil.")
         
     | 
| 
      
 141 
     | 
    
         
            +
                  end
         
     | 
| 
      
 142 
     | 
    
         
            +
             
     | 
| 
      
 143 
     | 
    
         
            +
                  return invalid_properties
         
     | 
| 
      
 144 
     | 
    
         
            +
                end
         
     | 
| 
      
 145 
     | 
    
         
            +
             
     | 
| 
      
 146 
     | 
    
         
            +
                # Check to see if the all the properties in the model are valid
         
     | 
| 
      
 147 
     | 
    
         
            +
                # @return true if the model is valid
         
     | 
| 
      
 148 
     | 
    
         
            +
                def valid?
         
     | 
| 
      
 149 
     | 
    
         
            +
                  return false if @comments.nil?
         
     | 
| 
      
 150 
     | 
    
         
            +
                  return false if @sign_time.nil?
         
     | 
| 
      
 151 
     | 
    
         
            +
                  return false if @id.nil?
         
     | 
| 
      
 152 
     | 
    
         
            +
                  return false if @password.nil?
         
     | 
| 
      
 153 
     | 
    
         
            +
                  return false if @image.nil?
         
     | 
| 
      
 154 
     | 
    
         
            +
                  return false if @provider_id.nil?
         
     | 
| 
      
 155 
     | 
    
         
            +
                  return false if @is_valid.nil?
         
     | 
| 
      
 156 
     | 
    
         
            +
                  return false if @x_ad_es_type.nil?
         
     | 
| 
      
 157 
     | 
    
         
            +
                  return true
         
     | 
| 
      
 158 
     | 
    
         
            +
                end
         
     | 
| 
      
 159 
     | 
    
         
            +
             
     | 
| 
      
 160 
     | 
    
         
            +
                # Checks equality by comparing each attribute.
         
     | 
| 
      
 161 
     | 
    
         
            +
                # @param [Object] Object to be compared
         
     | 
| 
      
 162 
     | 
    
         
            +
                def ==(o)
         
     | 
| 
      
 163 
     | 
    
         
            +
                  return true if self.equal?(o)
         
     | 
| 
      
 164 
     | 
    
         
            +
                  self.class == o.class &&
         
     | 
| 
      
 165 
     | 
    
         
            +
                      comments == o.comments &&
         
     | 
| 
      
 166 
     | 
    
         
            +
                      sign_time == o.sign_time &&
         
     | 
| 
      
 167 
     | 
    
         
            +
                      id == o.id &&
         
     | 
| 
      
 168 
     | 
    
         
            +
                      password == o.password &&
         
     | 
| 
      
 169 
     | 
    
         
            +
                      image == o.image &&
         
     | 
| 
      
 170 
     | 
    
         
            +
                      provider_id == o.provider_id &&
         
     | 
| 
      
 171 
     | 
    
         
            +
                      is_valid == o.is_valid &&
         
     | 
| 
      
 172 
     | 
    
         
            +
                      x_ad_es_type == o.x_ad_es_type 
         
     | 
| 
      
 173 
     | 
    
         
            +
                      std_dev == o.std_dev
         
     | 
| 
      
 174 
     | 
    
         
            +
                end
         
     | 
| 
      
 175 
     | 
    
         
            +
             
     | 
| 
      
 176 
     | 
    
         
            +
                # @see the `==` method
         
     | 
| 
      
 177 
     | 
    
         
            +
                # @param [Object] Object to be compared
         
     | 
| 
      
 178 
     | 
    
         
            +
                def eql?(o)
         
     | 
| 
      
 179 
     | 
    
         
            +
                  self == o
         
     | 
| 
      
 180 
     | 
    
         
            +
                end
         
     | 
| 
      
 181 
     | 
    
         
            +
             
     | 
| 
      
 182 
     | 
    
         
            +
                # Calculates hash code according to all attributes.
         
     | 
| 
      
 183 
     | 
    
         
            +
                # @return [Fixnum] Hash code
         
     | 
| 
      
 184 
     | 
    
         
            +
                def hash
         
     | 
| 
      
 185 
     | 
    
         
            +
                  [ comments , sign_time , id , password , image , provider_id , is_valid , x_ad_es_type ].hash
         
     | 
| 
      
 186 
     | 
    
         
            +
                end
         
     | 
| 
      
 187 
     | 
    
         
            +
             
     | 
| 
      
 188 
     | 
    
         
            +
                # Builds the object from hash
         
     | 
| 
      
 189 
     | 
    
         
            +
                # @param [Hash] attributes Model attributes in the form of hash
         
     | 
| 
      
 190 
     | 
    
         
            +
                # @return [Object] Returns the model itself
         
     | 
| 
      
 191 
     | 
    
         
            +
                def build_from_hash(attributes)
         
     | 
| 
      
 192 
     | 
    
         
            +
                  return nil unless attributes.is_a?(Hash)
         
     | 
| 
      
 193 
     | 
    
         
            +
                  self.class.swagger_types.each_pair do |key, type|
         
     | 
| 
      
 194 
     | 
    
         
            +
                    if type =~ /\AArray<(.*)>/i
         
     | 
| 
      
 195 
     | 
    
         
            +
                      # check to ensure the input is an array given that the the attribute
         
     | 
| 
      
 196 
     | 
    
         
            +
                      # is documented as an array but the input is not
         
     | 
| 
      
 197 
     | 
    
         
            +
                      if attributes[self.class.attribute_map[key]].is_a?(Array)
         
     | 
| 
      
 198 
     | 
    
         
            +
                        self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
         
     | 
| 
      
 199 
     | 
    
         
            +
                      end
         
     | 
| 
      
 200 
     | 
    
         
            +
                    elsif !attributes[self.class.attribute_map[key]].nil?
         
     | 
| 
      
 201 
     | 
    
         
            +
                      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
         
     | 
| 
      
 202 
     | 
    
         
            +
                    end # or else data not found in attributes(hash), not an issue as the data can be optional
         
     | 
| 
      
 203 
     | 
    
         
            +
                  end
         
     | 
| 
      
 204 
     | 
    
         
            +
             
     | 
| 
      
 205 
     | 
    
         
            +
                  self
         
     | 
| 
      
 206 
     | 
    
         
            +
                end
         
     | 
| 
      
 207 
     | 
    
         
            +
             
     | 
| 
      
 208 
     | 
    
         
            +
                # Deserializes the data based on type
         
     | 
| 
      
 209 
     | 
    
         
            +
                # @param string type Data type
         
     | 
| 
      
 210 
     | 
    
         
            +
                # @param string value Value to be deserialized
         
     | 
| 
      
 211 
     | 
    
         
            +
                # @return [Object] Deserialized data
         
     | 
| 
      
 212 
     | 
    
         
            +
                def _deserialize(type, value)
         
     | 
| 
      
 213 
     | 
    
         
            +
                  case type.to_sym
         
     | 
| 
      
 214 
     | 
    
         
            +
                  when :DateTime
         
     | 
| 
      
 215 
     | 
    
         
            +
                    DateTime.parse(value)
         
     | 
| 
      
 216 
     | 
    
         
            +
                  when :Date
         
     | 
| 
      
 217 
     | 
    
         
            +
                    Date.parse(value)
         
     | 
| 
      
 218 
     | 
    
         
            +
                  when :String
         
     | 
| 
      
 219 
     | 
    
         
            +
                    value.to_s
         
     | 
| 
      
 220 
     | 
    
         
            +
                  when :Integer
         
     | 
| 
      
 221 
     | 
    
         
            +
                    value.to_i
         
     | 
| 
      
 222 
     | 
    
         
            +
                  when :Float
         
     | 
| 
      
 223 
     | 
    
         
            +
                    value.to_f
         
     | 
| 
      
 224 
     | 
    
         
            +
                  when :BOOLEAN
         
     | 
| 
      
 225 
     | 
    
         
            +
                    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
         
     | 
| 
      
 226 
     | 
    
         
            +
                      true
         
     | 
| 
      
 227 
     | 
    
         
            +
                    else
         
     | 
| 
      
 228 
     | 
    
         
            +
                      false
         
     | 
| 
      
 229 
     | 
    
         
            +
                    end
         
     | 
| 
      
 230 
     | 
    
         
            +
                  when :Object
         
     | 
| 
      
 231 
     | 
    
         
            +
                    # generic object (usually a Hash), return directly
         
     | 
| 
      
 232 
     | 
    
         
            +
                    value
         
     | 
| 
      
 233 
     | 
    
         
            +
                  when /\AArray<(?<inner_type>.+)>\z/
         
     | 
| 
      
 234 
     | 
    
         
            +
                    inner_type = Regexp.last_match[:inner_type]
         
     | 
| 
      
 235 
     | 
    
         
            +
                    value.map { |v| _deserialize(inner_type, v) }
         
     | 
| 
      
 236 
     | 
    
         
            +
                  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
         
     | 
| 
      
 237 
     | 
    
         
            +
                    k_type = Regexp.last_match[:k_type]
         
     | 
| 
      
 238 
     | 
    
         
            +
                    v_type = Regexp.last_match[:v_type]
         
     | 
| 
      
 239 
     | 
    
         
            +
                    {}.tap do |hash|
         
     | 
| 
      
 240 
     | 
    
         
            +
                      value.each do |k, v|
         
     | 
| 
      
 241 
     | 
    
         
            +
                        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
         
     | 
| 
      
 242 
     | 
    
         
            +
                      end
         
     | 
| 
      
 243 
     | 
    
         
            +
                    end
         
     | 
| 
      
 244 
     | 
    
         
            +
                  else # model
         
     | 
| 
      
 245 
     | 
    
         
            +
                    temp_model = AsposeCellsCloud.const_get(type).new
         
     | 
| 
      
 246 
     | 
    
         
            +
                    temp_model.build_from_hash(value)
         
     | 
| 
      
 247 
     | 
    
         
            +
                  end
         
     | 
| 
      
 248 
     | 
    
         
            +
                end
         
     | 
| 
      
 249 
     | 
    
         
            +
             
     | 
| 
      
 250 
     | 
    
         
            +
                # Returns the string representation of the object
         
     | 
| 
      
 251 
     | 
    
         
            +
                # @return [String] String presentation of the object
         
     | 
| 
      
 252 
     | 
    
         
            +
                def to_s
         
     | 
| 
      
 253 
     | 
    
         
            +
                  to_hash.to_s
         
     | 
| 
      
 254 
     | 
    
         
            +
                end
         
     | 
| 
      
 255 
     | 
    
         
            +
             
     | 
| 
      
 256 
     | 
    
         
            +
                # to_body is an alias to to_hash (backward compatibility)
         
     | 
| 
      
 257 
     | 
    
         
            +
                # @return [Hash] Returns the object in the form of hash
         
     | 
| 
      
 258 
     | 
    
         
            +
                def to_body
         
     | 
| 
      
 259 
     | 
    
         
            +
                  to_hash
         
     | 
| 
      
 260 
     | 
    
         
            +
                end
         
     | 
| 
      
 261 
     | 
    
         
            +
             
     | 
| 
      
 262 
     | 
    
         
            +
                # Returns the object in the form of hash
         
     | 
| 
      
 263 
     | 
    
         
            +
                # @return [Hash] Returns the object in the form of hash
         
     | 
| 
      
 264 
     | 
    
         
            +
                def to_hash
         
     | 
| 
      
 265 
     | 
    
         
            +
                  hash = {}
         
     | 
| 
      
 266 
     | 
    
         
            +
                  self.class.attribute_map.each_pair do |attr, param|
         
     | 
| 
      
 267 
     | 
    
         
            +
                    value = self.send(attr)
         
     | 
| 
      
 268 
     | 
    
         
            +
                    next if value.nil?
         
     | 
| 
      
 269 
     | 
    
         
            +
                    hash[param] = _to_hash(value)
         
     | 
| 
      
 270 
     | 
    
         
            +
                  end
         
     | 
| 
      
 271 
     | 
    
         
            +
                  hash
         
     | 
| 
      
 272 
     | 
    
         
            +
                end
         
     | 
| 
      
 273 
     | 
    
         
            +
             
     | 
| 
      
 274 
     | 
    
         
            +
                # Outputs non-array value in the form of hash
         
     | 
| 
      
 275 
     | 
    
         
            +
                # For object, use to_hash. Otherwise, just return the value
         
     | 
| 
      
 276 
     | 
    
         
            +
                # @param [Object] value Any valid value
         
     | 
| 
      
 277 
     | 
    
         
            +
                # @return [Hash] Returns the value in the form of hash
         
     | 
| 
      
 278 
     | 
    
         
            +
                def _to_hash(value)
         
     | 
| 
      
 279 
     | 
    
         
            +
                  if value.is_a?(Array)
         
     | 
| 
      
 280 
     | 
    
         
            +
                    value.compact.map{ |v| _to_hash(v) }
         
     | 
| 
      
 281 
     | 
    
         
            +
                  elsif value.is_a?(Hash)
         
     | 
| 
      
 282 
     | 
    
         
            +
                    {}.tap do |hash|
         
     | 
| 
      
 283 
     | 
    
         
            +
                      value.each { |k, v| hash[k] = _to_hash(v) }
         
     | 
| 
      
 284 
     | 
    
         
            +
                    end
         
     | 
| 
      
 285 
     | 
    
         
            +
                  elsif value.respond_to? :to_hash
         
     | 
| 
      
 286 
     | 
    
         
            +
                    value.to_hash
         
     | 
| 
      
 287 
     | 
    
         
            +
                  else
         
     | 
| 
      
 288 
     | 
    
         
            +
                    value
         
     | 
| 
      
 289 
     | 
    
         
            +
                  end
         
     | 
| 
      
 290 
     | 
    
         
            +
                end
         
     | 
| 
      
 291 
     | 
    
         
            +
             
     | 
| 
      
 292 
     | 
    
         
            +
              end
         
     | 
| 
      
 293 
     | 
    
         
            +
             
     | 
| 
      
 294 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -31,6 +31,16 @@ require 'date' 
     | 
|
| 
       31 
31 
     | 
    
         
             
            module AsposeCellsCloud
         
     | 
| 
       32 
32 
     | 
    
         | 
| 
       33 
33 
     | 
    
         
             
              class HtmlSaveOptions
         
     | 
| 
      
 34 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 35 
     | 
    
         
            +
                    attr_accessor :export_page_headers
         
     | 
| 
      
 36 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 37 
     | 
    
         
            +
                    attr_accessor :export_page_footers
         
     | 
| 
      
 38 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 39 
     | 
    
         
            +
                    attr_accessor :export_row_column_headings
         
     | 
| 
      
 40 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 41 
     | 
    
         
            +
                    attr_accessor :show_all_sheets
         
     | 
| 
      
 42 
     | 
    
         
            +
                    #            
         
     | 
| 
      
 43 
     | 
    
         
            +
                    attr_accessor :image_options
         
     | 
| 
       34 
44 
     | 
    
         
             
                    #            
         
     | 
| 
       35 
45 
     | 
    
         
             
                    attr_accessor :save_as_single_file
         
     | 
| 
       36 
46 
     | 
    
         
             
                    #            
         
     | 
| 
         @@ -117,6 +127,11 @@ module AsposeCellsCloud 
     | 
|
| 
       117 
127 
     | 
    
         
             
                # Attribute mapping from ruby-style variable name to JSON key.
         
     | 
| 
       118 
128 
     | 
    
         
             
                def self.attribute_map
         
     | 
| 
       119 
129 
     | 
    
         
             
                  {
         
     | 
| 
      
 130 
     | 
    
         
            +
                    :'export_page_headers' => :'ExportPageHeaders',
         
     | 
| 
      
 131 
     | 
    
         
            +
                    :'export_page_footers' => :'ExportPageFooters',
         
     | 
| 
      
 132 
     | 
    
         
            +
                    :'export_row_column_headings' => :'ExportRowColumnHeadings',
         
     | 
| 
      
 133 
     | 
    
         
            +
                    :'show_all_sheets' => :'ShowAllSheets',
         
     | 
| 
      
 134 
     | 
    
         
            +
                    :'image_options' => :'ImageOptions',
         
     | 
| 
       120 
135 
     | 
    
         
             
                    :'save_as_single_file' => :'SaveAsSingleFile',
         
     | 
| 
       121 
136 
     | 
    
         
             
                    :'export_hidden_worksheet' => :'ExportHiddenWorksheet',
         
     | 
| 
       122 
137 
     | 
    
         
             
                    :'export_grid_lines' => :'ExportGridLines',
         
     | 
| 
         @@ -164,6 +179,11 @@ module AsposeCellsCloud 
     | 
|
| 
       164 
179 
     | 
    
         
             
                # Attribute type mapping.
         
     | 
| 
       165 
180 
     | 
    
         
             
                def self.swagger_types
         
     | 
| 
       166 
181 
     | 
    
         
             
                  {
         
     | 
| 
      
 182 
     | 
    
         
            +
                    :'export_page_headers' => :'BOOLEAN',
         
     | 
| 
      
 183 
     | 
    
         
            +
                    :'export_page_footers' => :'BOOLEAN',
         
     | 
| 
      
 184 
     | 
    
         
            +
                    :'export_row_column_headings' => :'BOOLEAN',
         
     | 
| 
      
 185 
     | 
    
         
            +
                    :'show_all_sheets' => :'BOOLEAN',
         
     | 
| 
      
 186 
     | 
    
         
            +
                    :'image_options' => :'ImageOrPrintOptions',
         
     | 
| 
       167 
187 
     | 
    
         
             
                    :'save_as_single_file' => :'BOOLEAN',
         
     | 
| 
       168 
188 
     | 
    
         
             
                    :'export_hidden_worksheet' => :'BOOLEAN',
         
     | 
| 
       169 
189 
     | 
    
         
             
                    :'export_grid_lines' => :'BOOLEAN',
         
     | 
| 
         @@ -216,6 +236,21 @@ module AsposeCellsCloud 
     | 
|
| 
       216 
236 
     | 
    
         
             
                  # convert string to symbol for hash key
         
     | 
| 
       217 
237 
     | 
    
         
             
                  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
         
     | 
| 
       218 
238 
     | 
    
         | 
| 
      
 239 
     | 
    
         
            +
                  if attributes.has_key?(:'ExportPageHeaders')
         
     | 
| 
      
 240 
     | 
    
         
            +
                      self.export_page_headers = attributes[:'ExportPageHeaders']
         
     | 
| 
      
 241 
     | 
    
         
            +
                  end
         
     | 
| 
      
 242 
     | 
    
         
            +
                  if attributes.has_key?(:'ExportPageFooters')
         
     | 
| 
      
 243 
     | 
    
         
            +
                      self.export_page_footers = attributes[:'ExportPageFooters']
         
     | 
| 
      
 244 
     | 
    
         
            +
                  end
         
     | 
| 
      
 245 
     | 
    
         
            +
                  if attributes.has_key?(:'ExportRowColumnHeadings')
         
     | 
| 
      
 246 
     | 
    
         
            +
                      self.export_row_column_headings = attributes[:'ExportRowColumnHeadings']
         
     | 
| 
      
 247 
     | 
    
         
            +
                  end
         
     | 
| 
      
 248 
     | 
    
         
            +
                  if attributes.has_key?(:'ShowAllSheets')
         
     | 
| 
      
 249 
     | 
    
         
            +
                      self.show_all_sheets = attributes[:'ShowAllSheets']
         
     | 
| 
      
 250 
     | 
    
         
            +
                  end
         
     | 
| 
      
 251 
     | 
    
         
            +
                  if attributes.has_key?(:'ImageOptions')
         
     | 
| 
      
 252 
     | 
    
         
            +
                      self.image_options = attributes[:'ImageOptions']
         
     | 
| 
      
 253 
     | 
    
         
            +
                  end
         
     | 
| 
       219 
254 
     | 
    
         
             
                  if attributes.has_key?(:'SaveAsSingleFile')
         
     | 
| 
       220 
255 
     | 
    
         
             
                      self.save_as_single_file = attributes[:'SaveAsSingleFile']
         
     | 
| 
       221 
256 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -346,6 +381,21 @@ module AsposeCellsCloud 
     | 
|
| 
       346 
381 
     | 
    
         
             
                # @return Array for valid properies with the reasons
         
     | 
| 
       347 
382 
     | 
    
         
             
                def list_invalid_properties
         
     | 
| 
       348 
383 
     | 
    
         
             
                  invalid_properties = Array.new
         
     | 
| 
      
 384 
     | 
    
         
            +
                  if @export_page_headers.nil?
         
     | 
| 
      
 385 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'export_page_headers', export_page_headers cannot be nil.")
         
     | 
| 
      
 386 
     | 
    
         
            +
                  end
         
     | 
| 
      
 387 
     | 
    
         
            +
                  if @export_page_footers.nil?
         
     | 
| 
      
 388 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'export_page_footers', export_page_footers cannot be nil.")
         
     | 
| 
      
 389 
     | 
    
         
            +
                  end
         
     | 
| 
      
 390 
     | 
    
         
            +
                  if @export_row_column_headings.nil?
         
     | 
| 
      
 391 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'export_row_column_headings', export_row_column_headings cannot be nil.")
         
     | 
| 
      
 392 
     | 
    
         
            +
                  end
         
     | 
| 
      
 393 
     | 
    
         
            +
                  if @show_all_sheets.nil?
         
     | 
| 
      
 394 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'show_all_sheets', show_all_sheets cannot be nil.")
         
     | 
| 
      
 395 
     | 
    
         
            +
                  end
         
     | 
| 
      
 396 
     | 
    
         
            +
                  if @image_options.nil?
         
     | 
| 
      
 397 
     | 
    
         
            +
                      invalid_properties.push("invalid value for 'image_options', image_options cannot be nil.")
         
     | 
| 
      
 398 
     | 
    
         
            +
                  end
         
     | 
| 
       349 
399 
     | 
    
         
             
                  if @save_as_single_file.nil?
         
     | 
| 
       350 
400 
     | 
    
         
             
                      invalid_properties.push("invalid value for 'save_as_single_file', save_as_single_file cannot be nil.")
         
     | 
| 
       351 
401 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -476,6 +526,11 @@ module AsposeCellsCloud 
     | 
|
| 
       476 
526 
     | 
    
         
             
                # Check to see if the all the properties in the model are valid
         
     | 
| 
       477 
527 
     | 
    
         
             
                # @return true if the model is valid
         
     | 
| 
       478 
528 
     | 
    
         
             
                def valid?
         
     | 
| 
      
 529 
     | 
    
         
            +
                  return false if @export_page_headers.nil?
         
     | 
| 
      
 530 
     | 
    
         
            +
                  return false if @export_page_footers.nil?
         
     | 
| 
      
 531 
     | 
    
         
            +
                  return false if @export_row_column_headings.nil?
         
     | 
| 
      
 532 
     | 
    
         
            +
                  return false if @show_all_sheets.nil?
         
     | 
| 
      
 533 
     | 
    
         
            +
                  return false if @image_options.nil?
         
     | 
| 
       479 
534 
     | 
    
         
             
                  return false if @save_as_single_file.nil?
         
     | 
| 
       480 
535 
     | 
    
         
             
                  return false if @export_hidden_worksheet.nil?
         
     | 
| 
       481 
536 
     | 
    
         
             
                  return false if @export_grid_lines.nil?
         
     | 
| 
         @@ -525,6 +580,11 @@ module AsposeCellsCloud 
     | 
|
| 
       525 
580 
     | 
    
         
             
                def ==(o)
         
     | 
| 
       526 
581 
     | 
    
         
             
                  return true if self.equal?(o)
         
     | 
| 
       527 
582 
     | 
    
         
             
                  self.class == o.class &&
         
     | 
| 
      
 583 
     | 
    
         
            +
                      export_page_headers == o.export_page_headers &&
         
     | 
| 
      
 584 
     | 
    
         
            +
                      export_page_footers == o.export_page_footers &&
         
     | 
| 
      
 585 
     | 
    
         
            +
                      export_row_column_headings == o.export_row_column_headings &&
         
     | 
| 
      
 586 
     | 
    
         
            +
                      show_all_sheets == o.show_all_sheets &&
         
     | 
| 
      
 587 
     | 
    
         
            +
                      image_options == o.image_options &&
         
     | 
| 
       528 
588 
     | 
    
         
             
                      save_as_single_file == o.save_as_single_file &&
         
     | 
| 
       529 
589 
     | 
    
         
             
                      export_hidden_worksheet == o.export_hidden_worksheet &&
         
     | 
| 
       530 
590 
     | 
    
         
             
                      export_grid_lines == o.export_grid_lines &&
         
     | 
| 
         @@ -578,7 +638,7 @@ module AsposeCellsCloud 
     | 
|
| 
       578 
638 
     | 
    
         
             
                # Calculates hash code according to all attributes.
         
     | 
| 
       579 
639 
     | 
    
         
             
                # @return [Fixnum] Hash code
         
     | 
| 
       580 
640 
     | 
    
         
             
                def hash
         
     | 
| 
       581 
     | 
    
         
            -
                  [ save_as_single_file , export_hidden_worksheet , export_grid_lines , presentation_preference , cell_css_prefix , table_css_id , is_full_path_link , export_worksheet_css_separately , export_similar_border_style , merge_empty_td_forcely , export_cell_coordinate , export_extra_headings , export_headings , export_formula , add_tooltip_text , export_bogus_row_data , exclude_unused_styles , export_document_properties , export_worksheet_properties , export_workbook_properties , export_frame_scripts_and_properties , attached_files_directory , attached_files_url_prefix , encoding , export_active_worksheet_only , export_chart_image_format , export_images_as_base64 , hidden_col_display_type , hidden_row_display_type , html_cross_string_type , is_exp_image_to_temp_dir , page_title , parse_html_tag_in_cell , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
         
     | 
| 
      
 641 
     | 
    
         
            +
                  [ export_page_headers , export_page_footers , export_row_column_headings , show_all_sheets , image_options , save_as_single_file , export_hidden_worksheet , export_grid_lines , presentation_preference , cell_css_prefix , table_css_id , is_full_path_link , export_worksheet_css_separately , export_similar_border_style , merge_empty_td_forcely , export_cell_coordinate , export_extra_headings , export_headings , export_formula , add_tooltip_text , export_bogus_row_data , exclude_unused_styles , export_document_properties , export_worksheet_properties , export_workbook_properties , export_frame_scripts_and_properties , attached_files_directory , attached_files_url_prefix , encoding , export_active_worksheet_only , export_chart_image_format , export_images_as_base64 , hidden_col_display_type , hidden_row_display_type , html_cross_string_type , is_exp_image_to_temp_dir , page_title , parse_html_tag_in_cell , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
         
     | 
| 
       582 
642 
     | 
    
         
             
                end
         
     | 
| 
       583 
643 
     | 
    
         | 
| 
       584 
644 
     | 
    
         
             
                # Builds the object from hash
         
     |