aspose_cells_cloud 1.0.8 → 1.0.9
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/aspose_cells_cloud-1.0.8.gem +0 -0
- data/lib/aspose_cells_cloud/api/cells_api.rb +557 -1
- data/lib/aspose_cells_cloud/api_client.rb +1 -0
- data/lib/aspose_cells_cloud/configuration.rb +1 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +14 -0
- data/test/cells_tests.rb +414 -0
- metadata +3 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: '08dd175a3897a7ed2c93a552c8cfc69279e92b59'
         | 
| 4 | 
            +
              data.tar.gz: 98548dc0824e5448651d6a1eab80acbde675f320
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 4b8614e8af2455ecc4f911a3875cdf88fdcbe2f130bc164ece3ec35680a3de3049153493650757b3c6fa92c24ba589f31e8d3a1039a00742b5c853e3b77c5402
         | 
| 7 | 
            +
              data.tar.gz: 50ea6c97434ff9c57968c5cd26334dfde120f5bb7a0cf7b545b6621f562784c392fd2655a804530a19efd82d729367d827ac39430b3d10a3dd1cb56e79a4b228
         | 
| Binary file | 
| @@ -11417,6 +11417,562 @@ module AsposeCellsCloud | |
| 11417 11417 | 
             
                    Configuration.logger.debug "API called: CellsApi#cells_charts_post_worksheet_chart. Result: #{result.inspect}"
         | 
| 11418 11418 | 
             
                  end
         | 
| 11419 11419 | 
             
                  return result
         | 
| 11420 | 
            -
                end | 
| 11420 | 
            +
                end
         | 
| 11421 | 
            +
                
         | 
| 11422 | 
            +
                # Get conditional formattings
         | 
| 11423 | 
            +
                #
         | 
| 11424 | 
            +
                # @param name
         | 
| 11425 | 
            +
                # @param sheet_name
         | 
| 11426 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 11427 | 
            +
                # @option opts [String] :folder
         | 
| 11428 | 
            +
                # @return [ConditionalFormattingsResponse]
         | 
| 11429 | 
            +
                def get_worksheet_conditional_formattings(name, sheet_name, opts = {})
         | 
| 11430 | 
            +
                    if Configuration.debugging
         | 
| 11431 | 
            +
                        Configuration.debugging "Calling API: CellsConditionalFormattingsApi#get_worksheet_conditional_formattings ..."
         | 
| 11432 | 
            +
                    end
         | 
| 11433 | 
            +
                    
         | 
| 11434 | 
            +
                    # verify the required parameter 'name' is set
         | 
| 11435 | 
            +
                    fail "Missing the required parameter 'name' when calling get_worksheet_conditional_formattings" if name.nil?
         | 
| 11436 | 
            +
                    
         | 
| 11437 | 
            +
                    # verify the required parameter 'sheet_name' is set
         | 
| 11438 | 
            +
                    fail "Missing the required parameter 'sheet_name' when calling get_worksheet_conditional_formattings" if sheet_name.nil?
         | 
| 11439 | 
            +
                    
         | 
| 11440 | 
            +
                    # resource path
         | 
| 11441 | 
            +
                    path = "/cells/{name}/worksheets/{sheetName}/conditionalFormattings".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
         | 
| 11442 | 
            +
                    
         | 
| 11443 | 
            +
                    # query parameters
         | 
| 11444 | 
            +
                    query_params = {}
         | 
| 11445 | 
            +
                    query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
         | 
| 11446 | 
            +
                    
         | 
| 11447 | 
            +
                    # header parameters
         | 
| 11448 | 
            +
                    header_params = {}
         | 
| 11449 | 
            +
                    
         | 
| 11450 | 
            +
                    # HTTP header 'Accept' (if needed)
         | 
| 11451 | 
            +
                    _header_accept = []
         | 
| 11452 | 
            +
                    _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
         | 
| 11453 | 
            +
                    
         | 
| 11454 | 
            +
                    # HTTP header 'Content-Type'
         | 
| 11455 | 
            +
                    _header_content_type = []
         | 
| 11456 | 
            +
                    header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
         | 
| 11457 | 
            +
                    
         | 
| 11458 | 
            +
                    # form parameters
         | 
| 11459 | 
            +
                    form_params = {}
         | 
| 11460 | 
            +
                    
         | 
| 11461 | 
            +
                    # http body (model)
         | 
| 11462 | 
            +
                    post_body = nil
         | 
| 11463 | 
            +
                    
         | 
| 11464 | 
            +
                    
         | 
| 11465 | 
            +
                    auth_names = []
         | 
| 11466 | 
            +
                    result = @api_client.call_api(:GET, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ConditionalFormattingsResponse')
         | 
| 11467 | 
            +
                    if Configuration.debugging
         | 
| 11468 | 
            +
                        Configuration.logger.debug "API called: CellsConditionalFormattingsApi#get_worksheet_conditional_formattings. Result: #{result.inspect}"
         | 
| 11469 | 
            +
                    end
         | 
| 11470 | 
            +
                    result
         | 
| 11471 | 
            +
                end
         | 
| 11472 | 
            +
                
         | 
| 11473 | 
            +
                # Add a condition formatting.
         | 
| 11474 | 
            +
                #
         | 
| 11475 | 
            +
                # @param name
         | 
| 11476 | 
            +
                # @param sheet_name
         | 
| 11477 | 
            +
                # @param cell_area
         | 
| 11478 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 11479 | 
            +
                # @option opts [FormatCondition] :formatcondition
         | 
| 11480 | 
            +
                # @option opts [String] :folder
         | 
| 11481 | 
            +
                # @return [BaseResponse]
         | 
| 11482 | 
            +
                def put_worksheet_conditional_formatting(name, sheet_name, cell_area, opts = {})
         | 
| 11483 | 
            +
                    
         | 
| 11484 | 
            +
                    #if Configuration.debugging
         | 
| 11485 | 
            +
                    #    Configuration.debugging "Calling API: CellsConditionalFormattingsApi#put_worksheet_conditional_formatting ..."
         | 
| 11486 | 
            +
                    #end
         | 
| 11487 | 
            +
             | 
| 11488 | 
            +
                    # verify the required parameter 'name' is set
         | 
| 11489 | 
            +
                    fail "Missing the required parameter 'name' when calling put_worksheet_conditional_formatting" if name.nil?
         | 
| 11490 | 
            +
                    
         | 
| 11491 | 
            +
                    # verify the required parameter 'sheet_name' is set
         | 
| 11492 | 
            +
                    fail "Missing the required parameter 'sheet_name' when calling put_worksheet_conditional_formatting" if sheet_name.nil?
         | 
| 11493 | 
            +
                    
         | 
| 11494 | 
            +
                    # verify the required parameter 'cell_area' is set
         | 
| 11495 | 
            +
                    fail "Missing the required parameter 'cell_area' when calling put_worksheet_conditional_formatting" if cell_area.nil?
         | 
| 11496 | 
            +
             | 
| 11497 | 
            +
                    # resource path
         | 
| 11498 | 
            +
                    path = "/cells/{name}/worksheets/{sheetName}/conditionalFormattings".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
         | 
| 11499 | 
            +
                    
         | 
| 11500 | 
            +
                    # query parameters
         | 
| 11501 | 
            +
                    query_params = {}
         | 
| 11502 | 
            +
                    query_params[:'cellArea'] = cell_area
         | 
| 11503 | 
            +
                    query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
         | 
| 11504 | 
            +
                    
         | 
| 11505 | 
            +
                    # header parameters
         | 
| 11506 | 
            +
                    header_params = {}
         | 
| 11507 | 
            +
                    
         | 
| 11508 | 
            +
                    # HTTP header 'Accept' (if needed)
         | 
| 11509 | 
            +
                    _header_accept = []
         | 
| 11510 | 
            +
                    _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
         | 
| 11511 | 
            +
                    
         | 
| 11512 | 
            +
                    # HTTP header 'Content-Type'
         | 
| 11513 | 
            +
                    _header_content_type = ['multipart/form-data']
         | 
| 11514 | 
            +
                    header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
         | 
| 11515 | 
            +
                    
         | 
| 11516 | 
            +
                    # form parameters
         | 
| 11517 | 
            +
                    form_params = {}
         | 
| 11518 | 
            +
                    
         | 
| 11519 | 
            +
                    # http body (model)
         | 
| 11520 | 
            +
                    post_body = @api_client.object_to_http_body(opts[:'formatcondition'])
         | 
| 11521 | 
            +
                    
         | 
| 11522 | 
            +
                    auth_names = []
         | 
| 11523 | 
            +
                    
         | 
| 11524 | 
            +
                    result = @api_client.call_api(:PUT, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
         | 
| 11525 | 
            +
                    if Configuration.debugging
         | 
| 11526 | 
            +
                        Configuration.logger.debug "API called: CellsConditionalFormattingsApi#put_worksheet_conditional_formatting. Result: #{result.inspect}"
         | 
| 11527 | 
            +
                    end
         | 
| 11528 | 
            +
                    result
         | 
| 11529 | 
            +
                end
         | 
| 11530 | 
            +
                
         | 
| 11531 | 
            +
                # Clear all condition formattings
         | 
| 11532 | 
            +
                #
         | 
| 11533 | 
            +
                # @param name
         | 
| 11534 | 
            +
                # @param sheet_name
         | 
| 11535 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 11536 | 
            +
                # @option opts [String] :folder
         | 
| 11537 | 
            +
                # @return [BaseResponse]
         | 
| 11538 | 
            +
                def delete_worksheet_conditional_formattings(name, sheet_name, opts = {})
         | 
| 11539 | 
            +
                    if Configuration.debugging
         | 
| 11540 | 
            +
                        Configuration.debugging "Calling API: CellsConditionalFormattingsApi#delete_worksheet_conditional_formattings ..."
         | 
| 11541 | 
            +
                    end
         | 
| 11542 | 
            +
                    
         | 
| 11543 | 
            +
                    # verify the required parameter 'name' is set
         | 
| 11544 | 
            +
                    fail "Missing the required parameter 'name' when calling delete_worksheet_conditional_formattings" if name.nil?
         | 
| 11545 | 
            +
                    
         | 
| 11546 | 
            +
                    # verify the required parameter 'sheet_name' is set
         | 
| 11547 | 
            +
                    fail "Missing the required parameter 'sheet_name' when calling delete_worksheet_conditional_formattings" if sheet_name.nil?
         | 
| 11548 | 
            +
                    
         | 
| 11549 | 
            +
                    # resource path
         | 
| 11550 | 
            +
                    path = "/cells/{name}/worksheets/{sheetName}/conditionalFormattings".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
         | 
| 11551 | 
            +
                    
         | 
| 11552 | 
            +
                    # query parameters
         | 
| 11553 | 
            +
                    query_params = {}
         | 
| 11554 | 
            +
                    query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
         | 
| 11555 | 
            +
                    
         | 
| 11556 | 
            +
                    # header parameters
         | 
| 11557 | 
            +
                    header_params = {}
         | 
| 11558 | 
            +
                    
         | 
| 11559 | 
            +
                    # HTTP header 'Accept' (if needed)
         | 
| 11560 | 
            +
                    _header_accept = []
         | 
| 11561 | 
            +
                    _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
         | 
| 11562 | 
            +
                    
         | 
| 11563 | 
            +
                    # HTTP header 'Content-Type'
         | 
| 11564 | 
            +
                    _header_content_type = []
         | 
| 11565 | 
            +
                    header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
         | 
| 11566 | 
            +
                    
         | 
| 11567 | 
            +
                    # form parameters
         | 
| 11568 | 
            +
                    form_params = {}
         | 
| 11569 | 
            +
                    
         | 
| 11570 | 
            +
                    # http body (model)
         | 
| 11571 | 
            +
                    post_body = nil
         | 
| 11572 | 
            +
                    
         | 
| 11573 | 
            +
                    
         | 
| 11574 | 
            +
                    auth_names = []
         | 
| 11575 | 
            +
                    result = @api_client.call_api(:DELETE, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
         | 
| 11576 | 
            +
                    if Configuration.debugging
         | 
| 11577 | 
            +
                        Configuration.logger.debug "API called: CellsConditionalFormattingsApi#delete_worksheet_conditional_formattings. Result: #{result.inspect}"
         | 
| 11578 | 
            +
                    end
         | 
| 11579 | 
            +
                    result
         | 
| 11580 | 
            +
                end
         | 
| 11581 | 
            +
                
         | 
| 11582 | 
            +
                # Remove cell area from conditional formatting.
         | 
| 11583 | 
            +
                #
         | 
| 11584 | 
            +
                # @param name
         | 
| 11585 | 
            +
                # @param sheet_name
         | 
| 11586 | 
            +
                # @param start_row
         | 
| 11587 | 
            +
                # @param start_column
         | 
| 11588 | 
            +
                # @param total_rows
         | 
| 11589 | 
            +
                # @param total_columns
         | 
| 11590 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 11591 | 
            +
                # @option opts [String] :folder
         | 
| 11592 | 
            +
                # @return [BaseResponse]
         | 
| 11593 | 
            +
                def delete_worksheet_conditional_formatting_area(name, sheet_name, start_row, start_column, total_rows, total_columns, opts = {})
         | 
| 11594 | 
            +
                    if Configuration.debugging
         | 
| 11595 | 
            +
                        Configuration.debugging "Calling API: CellsConditionalFormattingsApi#delete_worksheet_conditional_formatting_area ..."
         | 
| 11596 | 
            +
                    end
         | 
| 11597 | 
            +
                    
         | 
| 11598 | 
            +
                    # verify the required parameter 'name' is set
         | 
| 11599 | 
            +
                    fail "Missing the required parameter 'name' when calling delete_worksheet_conditional_formatting_area" if name.nil?
         | 
| 11600 | 
            +
                    
         | 
| 11601 | 
            +
                    # verify the required parameter 'sheet_name' is set
         | 
| 11602 | 
            +
                    fail "Missing the required parameter 'sheet_name' when calling delete_worksheet_conditional_formatting_area" if sheet_name.nil?
         | 
| 11603 | 
            +
                    
         | 
| 11604 | 
            +
                    # verify the required parameter 'start_row' is set
         | 
| 11605 | 
            +
                    fail "Missing the required parameter 'start_row' when calling delete_worksheet_conditional_formatting_area" if start_row.nil?
         | 
| 11606 | 
            +
                    
         | 
| 11607 | 
            +
                    # verify the required parameter 'start_column' is set
         | 
| 11608 | 
            +
                    fail "Missing the required parameter 'start_column' when calling delete_worksheet_conditional_formatting_area" if start_column.nil?
         | 
| 11609 | 
            +
                    
         | 
| 11610 | 
            +
                    # verify the required parameter 'total_rows' is set
         | 
| 11611 | 
            +
                    fail "Missing the required parameter 'total_rows' when calling delete_worksheet_conditional_formatting_area" if total_rows.nil?
         | 
| 11612 | 
            +
                    
         | 
| 11613 | 
            +
                    # verify the required parameter 'total_columns' is set
         | 
| 11614 | 
            +
                    fail "Missing the required parameter 'total_columns' when calling delete_worksheet_conditional_formatting_area" if total_columns.nil?
         | 
| 11615 | 
            +
                    
         | 
| 11616 | 
            +
                    # resource path
         | 
| 11617 | 
            +
                    path = "/cells/{name}/worksheets/{sheetName}/conditionalFormattings/area".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
         | 
| 11618 | 
            +
                    
         | 
| 11619 | 
            +
                    # query parameters
         | 
| 11620 | 
            +
                    query_params = {}
         | 
| 11621 | 
            +
                    query_params[:'startRow'] = start_row
         | 
| 11622 | 
            +
                    query_params[:'startColumn'] = start_column
         | 
| 11623 | 
            +
                    query_params[:'totalRows'] = total_rows
         | 
| 11624 | 
            +
                    query_params[:'totalColumns'] = total_columns
         | 
| 11625 | 
            +
                    query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
         | 
| 11626 | 
            +
                    
         | 
| 11627 | 
            +
                    # header parameters
         | 
| 11628 | 
            +
                    header_params = {}
         | 
| 11629 | 
            +
                    
         | 
| 11630 | 
            +
                    # HTTP header 'Accept' (if needed)
         | 
| 11631 | 
            +
                    _header_accept = []
         | 
| 11632 | 
            +
                    _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
         | 
| 11633 | 
            +
                    
         | 
| 11634 | 
            +
                    # HTTP header 'Content-Type'
         | 
| 11635 | 
            +
                    _header_content_type = []
         | 
| 11636 | 
            +
                    header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
         | 
| 11637 | 
            +
                    
         | 
| 11638 | 
            +
                    # form parameters
         | 
| 11639 | 
            +
                    form_params = {}
         | 
| 11640 | 
            +
                    
         | 
| 11641 | 
            +
                    # http body (model)
         | 
| 11642 | 
            +
                    post_body = nil
         | 
| 11643 | 
            +
                    
         | 
| 11644 | 
            +
                    
         | 
| 11645 | 
            +
                    auth_names = []
         | 
| 11646 | 
            +
                    result = @api_client.call_api(:DELETE, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
         | 
| 11647 | 
            +
                    if Configuration.debugging
         | 
| 11648 | 
            +
                        Configuration.logger.debug "API called: CellsConditionalFormattingsApi#delete_worksheet_conditional_formatting_area. Result: #{result.inspect}"
         | 
| 11649 | 
            +
                    end
         | 
| 11650 | 
            +
                    result
         | 
| 11651 | 
            +
                end
         | 
| 11652 | 
            +
                
         | 
| 11653 | 
            +
                # Get conditional formatting
         | 
| 11654 | 
            +
                #
         | 
| 11655 | 
            +
                # @param name
         | 
| 11656 | 
            +
                # @param sheet_name
         | 
| 11657 | 
            +
                # @param index
         | 
| 11658 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 11659 | 
            +
                # @option opts [String] :folder
         | 
| 11660 | 
            +
                # @return [ConditionalFormattingResponse]
         | 
| 11661 | 
            +
                def get_worksheet_conditional_formatting(name, sheet_name, index, opts = {})
         | 
| 11662 | 
            +
                    if Configuration.debugging
         | 
| 11663 | 
            +
                        Configuration.debugging "Calling API: CellsConditionalFormattingsApi#get_worksheet_conditional_formatting ..."
         | 
| 11664 | 
            +
                    end
         | 
| 11665 | 
            +
                    
         | 
| 11666 | 
            +
                    # verify the required parameter 'name' is set
         | 
| 11667 | 
            +
                    fail "Missing the required parameter 'name' when calling get_worksheet_conditional_formatting" if name.nil?
         | 
| 11668 | 
            +
                    
         | 
| 11669 | 
            +
                    # verify the required parameter 'sheet_name' is set
         | 
| 11670 | 
            +
                    fail "Missing the required parameter 'sheet_name' when calling get_worksheet_conditional_formatting" if sheet_name.nil?
         | 
| 11671 | 
            +
                    
         | 
| 11672 | 
            +
                    # verify the required parameter 'index' is set
         | 
| 11673 | 
            +
                    fail "Missing the required parameter 'index' when calling get_worksheet_conditional_formatting" if index.nil?
         | 
| 11674 | 
            +
                    
         | 
| 11675 | 
            +
                    # resource path
         | 
| 11676 | 
            +
                    path = "/cells/{name}/worksheets/{sheetName}/conditionalFormattings/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'index' + '}', index.to_s)
         | 
| 11677 | 
            +
                    
         | 
| 11678 | 
            +
                    # query parameters
         | 
| 11679 | 
            +
                    query_params = {}
         | 
| 11680 | 
            +
                    query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
         | 
| 11681 | 
            +
                    
         | 
| 11682 | 
            +
                    # header parameters
         | 
| 11683 | 
            +
                    header_params = {}
         | 
| 11684 | 
            +
                    
         | 
| 11685 | 
            +
                    # HTTP header 'Accept' (if needed)
         | 
| 11686 | 
            +
                    _header_accept = []
         | 
| 11687 | 
            +
                    _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
         | 
| 11688 | 
            +
                    
         | 
| 11689 | 
            +
                    # HTTP header 'Content-Type'
         | 
| 11690 | 
            +
                    _header_content_type = []
         | 
| 11691 | 
            +
                    header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
         | 
| 11692 | 
            +
                    
         | 
| 11693 | 
            +
                    # form parameters
         | 
| 11694 | 
            +
                    form_params = {}
         | 
| 11695 | 
            +
                    
         | 
| 11696 | 
            +
                    # http body (model)
         | 
| 11697 | 
            +
                    post_body = nil
         | 
| 11698 | 
            +
                    
         | 
| 11699 | 
            +
                    
         | 
| 11700 | 
            +
                    auth_names = []
         | 
| 11701 | 
            +
                    result = @api_client.call_api(:GET, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ConditionalFormattingResponse')
         | 
| 11702 | 
            +
                    if Configuration.debugging
         | 
| 11703 | 
            +
                        Configuration.logger.debug "API called: CellsConditionalFormattingsApi#get_worksheet_conditional_formatting. Result: #{result.inspect}"
         | 
| 11704 | 
            +
                    end
         | 
| 11705 | 
            +
                    result
         | 
| 11706 | 
            +
                end
         | 
| 11707 | 
            +
                
         | 
| 11708 | 
            +
                # Add a format condition.
         | 
| 11709 | 
            +
                #
         | 
| 11710 | 
            +
                # @param name
         | 
| 11711 | 
            +
                # @param sheet_name
         | 
| 11712 | 
            +
                # @param index
         | 
| 11713 | 
            +
                # @param cell_area
         | 
| 11714 | 
            +
                # @param type
         | 
| 11715 | 
            +
                # @param operator_type
         | 
| 11716 | 
            +
                # @param formula1
         | 
| 11717 | 
            +
                # @param formula2
         | 
| 11718 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 11719 | 
            +
                # @option opts [String] :folder
         | 
| 11720 | 
            +
                # @return [BaseResponse]
         | 
| 11721 | 
            +
                def put_worksheet_format_condition(name, sheet_name, index, cell_area, type, operator_type, formula1, formula2, opts = {})
         | 
| 11722 | 
            +
                    if Configuration.debugging
         | 
| 11723 | 
            +
                        Configuration.debugging "Calling API: CellsConditionalFormattingsApi#put_worksheet_format_condition ..."
         | 
| 11724 | 
            +
                    end
         | 
| 11725 | 
            +
                    
         | 
| 11726 | 
            +
                    # verify the required parameter 'name' is set
         | 
| 11727 | 
            +
                    fail "Missing the required parameter 'name' when calling put_worksheet_format_condition" if name.nil?
         | 
| 11728 | 
            +
                    
         | 
| 11729 | 
            +
                    # verify the required parameter 'sheet_name' is set
         | 
| 11730 | 
            +
                    fail "Missing the required parameter 'sheet_name' when calling put_worksheet_format_condition" if sheet_name.nil?
         | 
| 11731 | 
            +
                    
         | 
| 11732 | 
            +
                    # verify the required parameter 'index' is set
         | 
| 11733 | 
            +
                    fail "Missing the required parameter 'index' when calling put_worksheet_format_condition" if index.nil?
         | 
| 11734 | 
            +
                    
         | 
| 11735 | 
            +
                    # verify the required parameter 'cell_area' is set
         | 
| 11736 | 
            +
                    fail "Missing the required parameter 'cell_area' when calling put_worksheet_format_condition" if cell_area.nil?
         | 
| 11737 | 
            +
                    
         | 
| 11738 | 
            +
                    # verify the required parameter 'type' is set
         | 
| 11739 | 
            +
                    fail "Missing the required parameter 'type' when calling put_worksheet_format_condition" if type.nil?
         | 
| 11740 | 
            +
                    
         | 
| 11741 | 
            +
                    # verify the required parameter 'operator_type' is set
         | 
| 11742 | 
            +
                    fail "Missing the required parameter 'operator_type' when calling put_worksheet_format_condition" if operator_type.nil?
         | 
| 11743 | 
            +
                    
         | 
| 11744 | 
            +
                    # verify the required parameter 'formula1' is set
         | 
| 11745 | 
            +
                    fail "Missing the required parameter 'formula1' when calling put_worksheet_format_condition" if formula1.nil?
         | 
| 11746 | 
            +
                    
         | 
| 11747 | 
            +
                    # verify the required parameter 'formula2' is set
         | 
| 11748 | 
            +
                    fail "Missing the required parameter 'formula2' when calling put_worksheet_format_condition" if formula2.nil?
         | 
| 11749 | 
            +
                    
         | 
| 11750 | 
            +
                    # resource path
         | 
| 11751 | 
            +
                    path = "/cells/{name}/worksheets/{sheetName}/conditionalFormattings/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'index' + '}', index.to_s)
         | 
| 11752 | 
            +
                    
         | 
| 11753 | 
            +
                    # query parameters
         | 
| 11754 | 
            +
                    query_params = {}
         | 
| 11755 | 
            +
                    query_params[:'cellArea'] = cell_area
         | 
| 11756 | 
            +
                    query_params[:'type'] = type
         | 
| 11757 | 
            +
                    query_params[:'operatorType'] = operator_type
         | 
| 11758 | 
            +
                    query_params[:'formula1'] = formula1
         | 
| 11759 | 
            +
                    query_params[:'formula2'] = formula2
         | 
| 11760 | 
            +
                    query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
         | 
| 11761 | 
            +
                    
         | 
| 11762 | 
            +
                    # header parameters
         | 
| 11763 | 
            +
                    header_params = {}
         | 
| 11764 | 
            +
                    
         | 
| 11765 | 
            +
                    # HTTP header 'Accept' (if needed)
         | 
| 11766 | 
            +
                    _header_accept = []
         | 
| 11767 | 
            +
                    _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
         | 
| 11768 | 
            +
                    
         | 
| 11769 | 
            +
                    # HTTP header 'Content-Type'
         | 
| 11770 | 
            +
                    _header_content_type = ['multipart/form-data']
         | 
| 11771 | 
            +
                    header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
         | 
| 11772 | 
            +
                    
         | 
| 11773 | 
            +
                    # form parameters
         | 
| 11774 | 
            +
                    form_params = {}
         | 
| 11775 | 
            +
                    
         | 
| 11776 | 
            +
                    # http body (model)
         | 
| 11777 | 
            +
                    post_body = nil
         | 
| 11778 | 
            +
                    
         | 
| 11779 | 
            +
                    
         | 
| 11780 | 
            +
                    auth_names = []
         | 
| 11781 | 
            +
                    result = @api_client.call_api(:PUT, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
         | 
| 11782 | 
            +
                    if Configuration.debugging
         | 
| 11783 | 
            +
                        Configuration.logger.debug "API called: CellsConditionalFormattingsApi#put_worksheet_format_condition. Result: #{result.inspect}"
         | 
| 11784 | 
            +
                    end
         | 
| 11785 | 
            +
                    result
         | 
| 11786 | 
            +
                end
         | 
| 11787 | 
            +
                
         | 
| 11788 | 
            +
                # Remove conditional formatting
         | 
| 11789 | 
            +
                #
         | 
| 11790 | 
            +
                # @param name
         | 
| 11791 | 
            +
                # @param sheet_name
         | 
| 11792 | 
            +
                # @param index
         | 
| 11793 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 11794 | 
            +
                # @option opts [String] :folder
         | 
| 11795 | 
            +
                # @return [BaseResponse]
         | 
| 11796 | 
            +
                def delete_worksheet_conditional_formatting(name, sheet_name, index, opts = {})
         | 
| 11797 | 
            +
                    if Configuration.debugging
         | 
| 11798 | 
            +
                        Configuration.debugging "Calling API: CellsConditionalFormattingsApi#delete_worksheet_conditional_formatting ..."
         | 
| 11799 | 
            +
                    end
         | 
| 11800 | 
            +
                    
         | 
| 11801 | 
            +
                    # verify the required parameter 'name' is set
         | 
| 11802 | 
            +
                    fail "Missing the required parameter 'name' when calling delete_worksheet_conditional_formatting" if name.nil?
         | 
| 11803 | 
            +
                    
         | 
| 11804 | 
            +
                    # verify the required parameter 'sheet_name' is set
         | 
| 11805 | 
            +
                    fail "Missing the required parameter 'sheet_name' when calling delete_worksheet_conditional_formatting" if sheet_name.nil?
         | 
| 11806 | 
            +
                    
         | 
| 11807 | 
            +
                    # verify the required parameter 'index' is set
         | 
| 11808 | 
            +
                    fail "Missing the required parameter 'index' when calling delete_worksheet_conditional_formatting" if index.nil?
         | 
| 11809 | 
            +
                    
         | 
| 11810 | 
            +
                    # resource path
         | 
| 11811 | 
            +
                    path = "/cells/{name}/worksheets/{sheetName}/conditionalFormattings/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'index' + '}', index.to_s)
         | 
| 11812 | 
            +
                    
         | 
| 11813 | 
            +
                    # query parameters
         | 
| 11814 | 
            +
                    query_params = {}
         | 
| 11815 | 
            +
                    query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
         | 
| 11816 | 
            +
                    
         | 
| 11817 | 
            +
                    # header parameters
         | 
| 11818 | 
            +
                    header_params = {}
         | 
| 11819 | 
            +
                    
         | 
| 11820 | 
            +
                    # HTTP header 'Accept' (if needed)
         | 
| 11821 | 
            +
                    _header_accept = []
         | 
| 11822 | 
            +
                    _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
         | 
| 11823 | 
            +
                    
         | 
| 11824 | 
            +
                    # HTTP header 'Content-Type'
         | 
| 11825 | 
            +
                    _header_content_type = []
         | 
| 11826 | 
            +
                    header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
         | 
| 11827 | 
            +
                    
         | 
| 11828 | 
            +
                    # form parameters
         | 
| 11829 | 
            +
                    form_params = {}
         | 
| 11830 | 
            +
                    
         | 
| 11831 | 
            +
                    # http body (model)
         | 
| 11832 | 
            +
                    post_body = nil
         | 
| 11833 | 
            +
                    
         | 
| 11834 | 
            +
                    
         | 
| 11835 | 
            +
                    auth_names = []
         | 
| 11836 | 
            +
                    result = @api_client.call_api(:DELETE, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
         | 
| 11837 | 
            +
                    if Configuration.debugging
         | 
| 11838 | 
            +
                        Configuration.logger.debug "API called: CellsConditionalFormattingsApi#delete_worksheet_conditional_formatting. Result: #{result.inspect}"
         | 
| 11839 | 
            +
                    end
         | 
| 11840 | 
            +
                    result
         | 
| 11841 | 
            +
                end
         | 
| 11842 | 
            +
                
         | 
| 11843 | 
            +
                # Add a cell area for format condition
         | 
| 11844 | 
            +
                #
         | 
| 11845 | 
            +
                # @param name
         | 
| 11846 | 
            +
                # @param sheet_name
         | 
| 11847 | 
            +
                # @param index
         | 
| 11848 | 
            +
                # @param cell_area
         | 
| 11849 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 11850 | 
            +
                # @option opts [String] :folder
         | 
| 11851 | 
            +
                # @return [BaseResponse]
         | 
| 11852 | 
            +
                def put_worksheet_format_condition_area(name, sheet_name, index, cell_area, opts = {})
         | 
| 11853 | 
            +
                    if Configuration.debugging
         | 
| 11854 | 
            +
                        Configuration.debugging "Calling API: CellsConditionalFormattingsApi#put_worksheet_format_condition_area ..."
         | 
| 11855 | 
            +
                    end
         | 
| 11856 | 
            +
                    
         | 
| 11857 | 
            +
                    # verify the required parameter 'name' is set
         | 
| 11858 | 
            +
                    fail "Missing the required parameter 'name' when calling put_worksheet_format_condition_area" if name.nil?
         | 
| 11859 | 
            +
                    
         | 
| 11860 | 
            +
                    # verify the required parameter 'sheet_name' is set
         | 
| 11861 | 
            +
                    fail "Missing the required parameter 'sheet_name' when calling put_worksheet_format_condition_area" if sheet_name.nil?
         | 
| 11862 | 
            +
                    
         | 
| 11863 | 
            +
                    # verify the required parameter 'index' is set
         | 
| 11864 | 
            +
                    fail "Missing the required parameter 'index' when calling put_worksheet_format_condition_area" if index.nil?
         | 
| 11865 | 
            +
                    
         | 
| 11866 | 
            +
                    # verify the required parameter 'cell_area' is set
         | 
| 11867 | 
            +
                    fail "Missing the required parameter 'cell_area' when calling put_worksheet_format_condition_area" if cell_area.nil?
         | 
| 11868 | 
            +
                    
         | 
| 11869 | 
            +
                    # resource path
         | 
| 11870 | 
            +
                    path = "/cells/{name}/worksheets/{sheetName}/conditionalFormattings/{index}/area".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'index' + '}', index.to_s)
         | 
| 11871 | 
            +
                    
         | 
| 11872 | 
            +
                    # query parameters
         | 
| 11873 | 
            +
                    query_params = {}
         | 
| 11874 | 
            +
                    query_params[:'cellArea'] = cell_area
         | 
| 11875 | 
            +
                    query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
         | 
| 11876 | 
            +
                    
         | 
| 11877 | 
            +
                    # header parameters
         | 
| 11878 | 
            +
                    header_params = {}
         | 
| 11879 | 
            +
                    
         | 
| 11880 | 
            +
                    # HTTP header 'Accept' (if needed)
         | 
| 11881 | 
            +
                    _header_accept = []
         | 
| 11882 | 
            +
                    _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
         | 
| 11883 | 
            +
                    
         | 
| 11884 | 
            +
                    # HTTP header 'Content-Type'
         | 
| 11885 | 
            +
                    _header_content_type = ['multipart/form-data']
         | 
| 11886 | 
            +
                    header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
         | 
| 11887 | 
            +
                    
         | 
| 11888 | 
            +
                    # form parameters
         | 
| 11889 | 
            +
                    form_params = {}
         | 
| 11890 | 
            +
                    
         | 
| 11891 | 
            +
                    # http body (model)
         | 
| 11892 | 
            +
                    post_body = nil
         | 
| 11893 | 
            +
                    
         | 
| 11894 | 
            +
                    
         | 
| 11895 | 
            +
                    auth_names = []
         | 
| 11896 | 
            +
                    result = @api_client.call_api(:PUT, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
         | 
| 11897 | 
            +
                    if Configuration.debugging
         | 
| 11898 | 
            +
                        Configuration.logger.debug "API called: CellsConditionalFormattingsApi#put_worksheet_format_condition_area. Result: #{result.inspect}"
         | 
| 11899 | 
            +
                    end
         | 
| 11900 | 
            +
                    result
         | 
| 11901 | 
            +
                end
         | 
| 11902 | 
            +
                
         | 
| 11903 | 
            +
                # Add a condition for format condition.
         | 
| 11904 | 
            +
                #
         | 
| 11905 | 
            +
                # @param name
         | 
| 11906 | 
            +
                # @param sheet_name
         | 
| 11907 | 
            +
                # @param index
         | 
| 11908 | 
            +
                # @param type
         | 
| 11909 | 
            +
                # @param operator_type
         | 
| 11910 | 
            +
                # @param formula1
         | 
| 11911 | 
            +
                # @param formula2
         | 
| 11912 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 11913 | 
            +
                # @option opts [String] :folder
         | 
| 11914 | 
            +
                # @return [BaseResponse]
         | 
| 11915 | 
            +
                def put_worksheet_format_condition_condition(name, sheet_name, index, type, operator_type, formula1, formula2, opts = {})
         | 
| 11916 | 
            +
                    if Configuration.debugging
         | 
| 11917 | 
            +
                        Configuration.debugging "Calling API: CellsConditionalFormattingsApi#put_worksheet_format_condition_condition ..."
         | 
| 11918 | 
            +
                    end
         | 
| 11919 | 
            +
                    
         | 
| 11920 | 
            +
                    # verify the required parameter 'name' is set
         | 
| 11921 | 
            +
                    fail "Missing the required parameter 'name' when calling put_worksheet_format_condition_condition" if name.nil?
         | 
| 11922 | 
            +
                    
         | 
| 11923 | 
            +
                    # verify the required parameter 'sheet_name' is set
         | 
| 11924 | 
            +
                    fail "Missing the required parameter 'sheet_name' when calling put_worksheet_format_condition_condition" if sheet_name.nil?
         | 
| 11925 | 
            +
                    
         | 
| 11926 | 
            +
                    # verify the required parameter 'index' is set
         | 
| 11927 | 
            +
                    fail "Missing the required parameter 'index' when calling put_worksheet_format_condition_condition" if index.nil?
         | 
| 11928 | 
            +
                    
         | 
| 11929 | 
            +
                    # verify the required parameter 'type' is set
         | 
| 11930 | 
            +
                    fail "Missing the required parameter 'type' when calling put_worksheet_format_condition_condition" if type.nil?
         | 
| 11931 | 
            +
                    
         | 
| 11932 | 
            +
                    # verify the required parameter 'operator_type' is set
         | 
| 11933 | 
            +
                    fail "Missing the required parameter 'operator_type' when calling put_worksheet_format_condition_condition" if operator_type.nil?
         | 
| 11934 | 
            +
                    
         | 
| 11935 | 
            +
                    # verify the required parameter 'formula1' is set
         | 
| 11936 | 
            +
                    fail "Missing the required parameter 'formula1' when calling put_worksheet_format_condition_condition" if formula1.nil?
         | 
| 11937 | 
            +
                    
         | 
| 11938 | 
            +
                    # verify the required parameter 'formula2' is set
         | 
| 11939 | 
            +
                    fail "Missing the required parameter 'formula2' when calling put_worksheet_format_condition_condition" if formula2.nil?
         | 
| 11940 | 
            +
                    
         | 
| 11941 | 
            +
                    # resource path
         | 
| 11942 | 
            +
                    path = "/cells/{name}/worksheets/{sheetName}/conditionalFormattings/{index}/condition".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'index' + '}', index.to_s)
         | 
| 11943 | 
            +
                    
         | 
| 11944 | 
            +
                    # query parameters
         | 
| 11945 | 
            +
                    query_params = {}
         | 
| 11946 | 
            +
                    query_params[:'type'] = type
         | 
| 11947 | 
            +
                    query_params[:'operatorType'] = operator_type
         | 
| 11948 | 
            +
                    query_params[:'formula1'] = formula1
         | 
| 11949 | 
            +
                    query_params[:'formula2'] = formula2
         | 
| 11950 | 
            +
                    query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
         | 
| 11951 | 
            +
                    
         | 
| 11952 | 
            +
                    # header parameters
         | 
| 11953 | 
            +
                    header_params = {}
         | 
| 11954 | 
            +
                    
         | 
| 11955 | 
            +
                    # HTTP header 'Accept' (if needed)
         | 
| 11956 | 
            +
                    _header_accept = []
         | 
| 11957 | 
            +
                    _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
         | 
| 11958 | 
            +
                    
         | 
| 11959 | 
            +
                    # HTTP header 'Content-Type'
         | 
| 11960 | 
            +
                    _header_content_type = ['multipart/form-data']
         | 
| 11961 | 
            +
                    header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
         | 
| 11962 | 
            +
                    
         | 
| 11963 | 
            +
                    # form parameters
         | 
| 11964 | 
            +
                    form_params = {}
         | 
| 11965 | 
            +
                    
         | 
| 11966 | 
            +
                    # http body (model)
         | 
| 11967 | 
            +
                    post_body = nil
         | 
| 11968 | 
            +
                    
         | 
| 11969 | 
            +
                    
         | 
| 11970 | 
            +
                    auth_names = []
         | 
| 11971 | 
            +
                    result = @api_client.call_api(:PUT, path, :query_params => query_params, :header_params => header_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse')
         | 
| 11972 | 
            +
                    if Configuration.debugging
         | 
| 11973 | 
            +
                        Configuration.logger.debug "API called: CellsConditionalFormattingsApi#put_worksheet_format_condition_condition. Result: #{result.inspect}"
         | 
| 11974 | 
            +
                    end
         | 
| 11975 | 
            +
                    result
         | 
| 11976 | 
            +
                end
         | 
| 11421 11977 | 
             
              end
         | 
| 11422 11978 | 
             
            end
         | 
    
        data/lib/aspose_cells_cloud.rb
    CHANGED
    
    | @@ -155,6 +155,20 @@ require_relative 'aspose_cells_cloud/models/color_filter_request' | |
| 155 155 | 
             
            require_relative 'aspose_cells_cloud/models/calculation_options'
         | 
| 156 156 | 
             
            require_relative 'aspose_cells_cloud/models/font_setting'
         | 
| 157 157 | 
             
            require_relative 'aspose_cells_cloud/models/chart'
         | 
| 158 | 
            +
            require_relative 'aspose_cells_cloud/models/format_condition'
         | 
| 159 | 
            +
            require_relative 'aspose_cells_cloud/models/conditional_formatting_response'
         | 
| 160 | 
            +
            require_relative 'aspose_cells_cloud/models/conditional_formatting'
         | 
| 161 | 
            +
            require_relative 'aspose_cells_cloud/models/above_average'
         | 
| 162 | 
            +
            require_relative 'aspose_cells_cloud/models/color_scale'
         | 
| 163 | 
            +
            require_relative 'aspose_cells_cloud/models/data_bar'
         | 
| 164 | 
            +
            require_relative 'aspose_cells_cloud/models/icon_set'
         | 
| 165 | 
            +
            require_relative 'aspose_cells_cloud/models/top10'
         | 
| 166 | 
            +
            require_relative 'aspose_cells_cloud/models/conditional_formatting_icon'
         | 
| 167 | 
            +
            require_relative 'aspose_cells_cloud/models/conditional_formatting_value'
         | 
| 168 | 
            +
            require_relative 'aspose_cells_cloud/models/conditional_formattings_response'
         | 
| 169 | 
            +
            require_relative 'aspose_cells_cloud/models/conditional_formattings'
         | 
| 170 | 
            +
            require_relative 'aspose_cells_cloud/models/data_bar_border'
         | 
| 171 | 
            +
            require_relative 'aspose_cells_cloud/models/negative_bar_format'
         | 
| 158 172 |  | 
| 159 173 | 
             
            # APIs
         | 
| 160 174 | 
             
            require_relative 'aspose_cells_cloud/api/cells_api'
         | 
    
        data/test/cells_tests.rb
    CHANGED
    
    | @@ -60,6 +60,7 @@ class CellsTests < Minitest::Test | |
| 60 60 | 
             
                	#upload_file(file_name)
         | 
| 61 61 |  | 
| 62 62 | 
             
                    response = @cells_api.get_work_book(file_name)
         | 
| 63 | 
            +
                    puts response
         | 
| 63 64 | 
             
                	assert(response, message="Failed to read workbook info.")
         | 
| 64 65 | 
             
                end
         | 
| 65 66 |  | 
| @@ -2200,4 +2201,417 @@ class CellsTests < Minitest::Test | |
| 2200 2201 | 
             
                    response = @cells_api.cells_charts_post_worksheet_chart(file_name, sheet_name, chart_index, chart, opts = {})
         | 
| 2201 2202 | 
             
                    assert(response, message="Failed to update chart propreties")
         | 
| 2202 2203 | 
             
                end
         | 
| 2204 | 
            +
                
         | 
| 2205 | 
            +
                def test_get_worksheet_conditional_formattings
         | 
| 2206 | 
            +
                    file_name = "Book1.xlsx"
         | 
| 2207 | 
            +
                    upload_file(file_name)
         | 
| 2208 | 
            +
                    
         | 
| 2209 | 
            +
                    sheet_name = "sheet1"
         | 
| 2210 | 
            +
                    
         | 
| 2211 | 
            +
                    response = @cells_api.get_worksheet_conditional_formattings(file_name, sheet_name)
         | 
| 2212 | 
            +
                    assert(response, message="Failed to get conditional formattings")
         | 
| 2213 | 
            +
                end
         | 
| 2214 | 
            +
                
         | 
| 2215 | 
            +
                def test_get_worksheet_conditional_formatting
         | 
| 2216 | 
            +
                    file_name = "Book1.xlsx"
         | 
| 2217 | 
            +
                    upload_file(file_name)
         | 
| 2218 | 
            +
                    
         | 
| 2219 | 
            +
                    sheet_name = "sheet1"
         | 
| 2220 | 
            +
                    index = 0
         | 
| 2221 | 
            +
                    
         | 
| 2222 | 
            +
                    response = @cells_api.get_worksheet_conditional_formatting(file_name, sheet_name, index)
         | 
| 2223 | 
            +
                    assert(response, message="Failed to get conditional formatting")
         | 
| 2224 | 
            +
                end
         | 
| 2225 | 
            +
                
         | 
| 2226 | 
            +
                def test_put_worksheet_format_condition
         | 
| 2227 | 
            +
                    file_name = "Book1.xlsx"
         | 
| 2228 | 
            +
                    upload_file(file_name)
         | 
| 2229 | 
            +
                    
         | 
| 2230 | 
            +
                    sheet_name = "sheet1"
         | 
| 2231 | 
            +
                    index = 0
         | 
| 2232 | 
            +
                    cell_area = "A1:C3"
         | 
| 2233 | 
            +
                    type = "Expression"
         | 
| 2234 | 
            +
                    operator_type = "Between"
         | 
| 2235 | 
            +
                    formula1 = "v1"
         | 
| 2236 | 
            +
                    formula2 = "v2"
         | 
| 2237 | 
            +
                    
         | 
| 2238 | 
            +
                    response = @cells_api.put_worksheet_format_condition(file_name, sheet_name, index, cell_area, type, operator_type, formula1, formula2)
         | 
| 2239 | 
            +
                    assert(response, message="Failed to add a format condition")
         | 
| 2240 | 
            +
                end
         | 
| 2241 | 
            +
                
         | 
| 2242 | 
            +
                def test_put_worksheet_format_condition_area
         | 
| 2243 | 
            +
                    file_name = "Book1.xlsx"
         | 
| 2244 | 
            +
                    upload_file(file_name)
         | 
| 2245 | 
            +
                    
         | 
| 2246 | 
            +
                    sheet_name = "sheet1"
         | 
| 2247 | 
            +
                    index = 0
         | 
| 2248 | 
            +
                    cell_area = "A1:C3"
         | 
| 2249 | 
            +
                    
         | 
| 2250 | 
            +
                    response = @cells_api.put_worksheet_format_condition_area(file_name, sheet_name, index, cell_area)
         | 
| 2251 | 
            +
                    assert(response, message="Failed to add a cell area for format condition")
         | 
| 2252 | 
            +
                end
         | 
| 2253 | 
            +
                
         | 
| 2254 | 
            +
                def test_put_worksheet_format_condition_condition
         | 
| 2255 | 
            +
                    file_name = "Book1.xlsx"
         | 
| 2256 | 
            +
                    upload_file(file_name)
         | 
| 2257 | 
            +
                    
         | 
| 2258 | 
            +
                    sheet_name = "sheet1"
         | 
| 2259 | 
            +
                    index = 0
         | 
| 2260 | 
            +
                    type = "CellValue"
         | 
| 2261 | 
            +
                    operator_type = "Equal"
         | 
| 2262 | 
            +
                    formula1 = "v1"
         | 
| 2263 | 
            +
                    formula2 = "v2"
         | 
| 2264 | 
            +
                    
         | 
| 2265 | 
            +
                    response = @cells_api.put_worksheet_format_condition_condition(file_name, sheet_name, index, type, operator_type, formula1, formula2)
         | 
| 2266 | 
            +
                    assert(response, message="Failed to add a condition for format condition")
         | 
| 2267 | 
            +
                end
         | 
| 2268 | 
            +
                
         | 
| 2269 | 
            +
                def test_put_worksheet_conditional_formatting
         | 
| 2270 | 
            +
                    file_name = "Book1.xlsx"
         | 
| 2271 | 
            +
                    #upload_file(file_name)
         | 
| 2272 | 
            +
                    
         | 
| 2273 | 
            +
                    sheet_name = "Sheet4"
         | 
| 2274 | 
            +
                    cell_area = "C7:D11"
         | 
| 2275 | 
            +
                    keys = ["CellValue", "Expression", "BeginsWith", "ContainsBlanks", "ContainsErrors",
         | 
| 2276 | 
            +
                            "ContainsText", "DuplicateValues", "EndsWith", "NotContainsBlanks",
         | 
| 2277 | 
            +
                            "NotContainsText", "UniqueValues" , "AboveAverage","TimePeriod","Top10",
         | 
| 2278 | 
            +
                            "ColorScale","DataBar","IconSet"]
         | 
| 2279 | 
            +
                    
         | 
| 2280 | 
            +
                    # CellValue
         | 
| 2281 | 
            +
                    cell_value_format_condition = FormatCondition.new
         | 
| 2282 | 
            +
                    cell_value_format_condition.type = "CellValue"
         | 
| 2283 | 
            +
                    cell_value_format_condition.operator = "Between"
         | 
| 2284 | 
            +
                    cell_value_format_condition.formula1 = "v1"
         | 
| 2285 | 
            +
                    cell_value_format_condition.formula2 = "v2"
         | 
| 2286 | 
            +
                    style = Style.new
         | 
| 2287 | 
            +
                    style.font = Font.new
         | 
| 2288 | 
            +
                    style.font.is_bold = true
         | 
| 2289 | 
            +
                    cell_value_format_condition.style = style
         | 
| 2290 | 
            +
                    
         | 
| 2291 | 
            +
                    # Expression
         | 
| 2292 | 
            +
                    expression_format_condition = FormatCondition.new
         | 
| 2293 | 
            +
                    expression_format_condition.type = "Expression"
         | 
| 2294 | 
            +
                    expression_format_condition.operator = "Between"
         | 
| 2295 | 
            +
                    expression_format_condition.formula1 = "v1"
         | 
| 2296 | 
            +
                    expression_format_condition.formula2 = "v2"
         | 
| 2297 | 
            +
                    style = Style.new
         | 
| 2298 | 
            +
                    style.font = Font.new
         | 
| 2299 | 
            +
                    style.font.is_bold = true
         | 
| 2300 | 
            +
                    expression_format_condition.style = style
         | 
| 2301 | 
            +
             | 
| 2302 | 
            +
                    # BeginsWith
         | 
| 2303 | 
            +
                    beginsWith_format_condition = FormatCondition.new
         | 
| 2304 | 
            +
                    beginsWith_format_condition.type = "BeginsWith"
         | 
| 2305 | 
            +
                    beginsWith_format_condition.text = "Between"
         | 
| 2306 | 
            +
                    beginsWith_format_condition.operator = "LessThan"
         | 
| 2307 | 
            +
                    beginsWith_format_condition.formula1 = "v1"
         | 
| 2308 | 
            +
                    beginsWith_format_condition.formula2 = "v2"
         | 
| 2309 | 
            +
                    style = Style.new
         | 
| 2310 | 
            +
                    style.font = Font.new
         | 
| 2311 | 
            +
                    style.font.is_bold = true
         | 
| 2312 | 
            +
                    beginsWith_format_condition.style = style
         | 
| 2313 | 
            +
             | 
| 2314 | 
            +
                    # ContainsBlanks
         | 
| 2315 | 
            +
                    contains_blanks_format_condition = FormatCondition.new
         | 
| 2316 | 
            +
                    contains_blanks_format_condition.type = "ContainsBlanks"
         | 
| 2317 | 
            +
                    contains_blanks_format_condition.text = "ContainsBlanks"
         | 
| 2318 | 
            +
                    contains_blanks_format_condition.operator = "LessThan"
         | 
| 2319 | 
            +
                    contains_blanks_format_condition.formula1 = "v1"
         | 
| 2320 | 
            +
                    contains_blanks_format_condition.formula2 = "v2"
         | 
| 2321 | 
            +
                    style = Style.new
         | 
| 2322 | 
            +
                    style.font = Font.new
         | 
| 2323 | 
            +
                    style.font.is_bold = true
         | 
| 2324 | 
            +
                    contains_blanks_format_condition.style = style
         | 
| 2325 | 
            +
             | 
| 2326 | 
            +
                    # ContainsErrors
         | 
| 2327 | 
            +
                    contains_errors_format_condition = FormatCondition.new
         | 
| 2328 | 
            +
                    contains_errors_format_condition.type = "ContainsErrors"
         | 
| 2329 | 
            +
                    contains_errors_format_condition.text = "Between"
         | 
| 2330 | 
            +
                    contains_errors_format_condition.operator = "LessThan"
         | 
| 2331 | 
            +
                    contains_errors_format_condition.formula1 = "v1"
         | 
| 2332 | 
            +
                    contains_errors_format_condition.formula2 = "v2"
         | 
| 2333 | 
            +
                    style = Style.new
         | 
| 2334 | 
            +
                    style.font = Font.new
         | 
| 2335 | 
            +
                    style.font.is_bold = true
         | 
| 2336 | 
            +
                    contains_errors_format_condition.style = style
         | 
| 2337 | 
            +
             | 
| 2338 | 
            +
                    # ContainsText
         | 
| 2339 | 
            +
                    contains_text_format_condition = FormatCondition.new
         | 
| 2340 | 
            +
                    contains_text_format_condition.type = "ContainsText"
         | 
| 2341 | 
            +
                    contains_text_format_condition.text = "Between"
         | 
| 2342 | 
            +
                    contains_text_format_condition.operator = "LessThan"
         | 
| 2343 | 
            +
                    contains_text_format_condition.formula1 = "v1"
         | 
| 2344 | 
            +
                    contains_text_format_condition.formula2 = "v2"
         | 
| 2345 | 
            +
                    style = Style.new
         | 
| 2346 | 
            +
                    style.font = Font.new
         | 
| 2347 | 
            +
                    style.font.is_bold = true
         | 
| 2348 | 
            +
                    contains_text_format_condition.style = style        
         | 
| 2349 | 
            +
             | 
| 2350 | 
            +
                    # DuplicateValues
         | 
| 2351 | 
            +
                    duplicate_values_format_condition = FormatCondition.new
         | 
| 2352 | 
            +
                    duplicate_values_format_condition.type = "DuplicateValues"
         | 
| 2353 | 
            +
                    duplicate_values_format_condition.text = "Between"
         | 
| 2354 | 
            +
                    duplicate_values_format_condition.operator = "LessThan"
         | 
| 2355 | 
            +
                    duplicate_values_format_condition.formula1 = "v1"
         | 
| 2356 | 
            +
                    duplicate_values_format_condition.formula2 = "v2"
         | 
| 2357 | 
            +
                    style = Style.new
         | 
| 2358 | 
            +
                    style.font = Font.new
         | 
| 2359 | 
            +
                    style.font.is_bold = true
         | 
| 2360 | 
            +
                    duplicate_values_format_condition.style = style
         | 
| 2361 | 
            +
             | 
| 2362 | 
            +
                    # EndsWith
         | 
| 2363 | 
            +
                    ends_with_format_condition = FormatCondition.new
         | 
| 2364 | 
            +
                    ends_with_format_condition.type = "EndsWith"
         | 
| 2365 | 
            +
                    ends_with_format_condition.text = "EndsWith"
         | 
| 2366 | 
            +
                    ends_with_format_condition.operator = "LessThan"
         | 
| 2367 | 
            +
                    ends_with_format_condition.formula1 = "v1"
         | 
| 2368 | 
            +
                    ends_with_format_condition.formula2 = "v2"
         | 
| 2369 | 
            +
                    style = Style.new
         | 
| 2370 | 
            +
                    style.font = Font.new
         | 
| 2371 | 
            +
                    style.font.is_bold = true
         | 
| 2372 | 
            +
                    ends_with_format_condition.style = style
         | 
| 2373 | 
            +
             | 
| 2374 | 
            +
                    # NotContainsBlanks
         | 
| 2375 | 
            +
                    not_contains_blanks_format_condition = FormatCondition.new
         | 
| 2376 | 
            +
                    not_contains_blanks_format_condition.type = "NotContainsBlanks"
         | 
| 2377 | 
            +
                    not_contains_blanks_format_condition.text = "NotContainsBlanks"
         | 
| 2378 | 
            +
                    not_contains_blanks_format_condition.operator = "LessThan"
         | 
| 2379 | 
            +
                    not_contains_blanks_format_condition.formula1 = "v1"
         | 
| 2380 | 
            +
                    not_contains_blanks_format_condition.formula2 = "v2"
         | 
| 2381 | 
            +
                    style = Style.new
         | 
| 2382 | 
            +
                    style.font = Font.new
         | 
| 2383 | 
            +
                    style.font.is_bold = true
         | 
| 2384 | 
            +
                    not_contains_blanks_format_condition.style = style
         | 
| 2385 | 
            +
             | 
| 2386 | 
            +
                    # NotContainsText
         | 
| 2387 | 
            +
                    not_contains_text_format_condition = FormatCondition.new
         | 
| 2388 | 
            +
                    not_contains_text_format_condition.type = "NotContainsText"
         | 
| 2389 | 
            +
                    not_contains_text_format_condition.text = "NotContainsText"
         | 
| 2390 | 
            +
                    not_contains_text_format_condition.operator = "LessThan"
         | 
| 2391 | 
            +
                    not_contains_text_format_condition.formula1 = "v1"
         | 
| 2392 | 
            +
                    not_contains_text_format_condition.formula2 = "v2"
         | 
| 2393 | 
            +
                    style = Style.new
         | 
| 2394 | 
            +
                    style.font = Font.new
         | 
| 2395 | 
            +
                    style.font.is_bold = true
         | 
| 2396 | 
            +
                    not_contains_text_format_condition.style = style
         | 
| 2397 | 
            +
             | 
| 2398 | 
            +
                    # UniqueValues
         | 
| 2399 | 
            +
                    unique_values_format_condition = FormatCondition.new
         | 
| 2400 | 
            +
                    unique_values_format_condition.type = "UniqueValues"
         | 
| 2401 | 
            +
                    unique_values_format_condition.text = "UniqueValues"
         | 
| 2402 | 
            +
                    unique_values_format_condition.operator = "LessThan"
         | 
| 2403 | 
            +
                    unique_values_format_condition.formula1 = "v1"
         | 
| 2404 | 
            +
                    unique_values_format_condition.formula2 = "v2"
         | 
| 2405 | 
            +
                    style = Style.new
         | 
| 2406 | 
            +
                    style.font = Font.new
         | 
| 2407 | 
            +
                    style.font.is_bold = true
         | 
| 2408 | 
            +
                    unique_values_format_condition.style = style
         | 
| 2409 | 
            +
             | 
| 2410 | 
            +
                    # AboveAverage
         | 
| 2411 | 
            +
                    above_average_format_condition = FormatCondition.new
         | 
| 2412 | 
            +
                    above_average_format_condition.type = "AboveAverage"
         | 
| 2413 | 
            +
                    above_average = AboveAverage.new
         | 
| 2414 | 
            +
                    above_average.is_above_average = true
         | 
| 2415 | 
            +
                    above_average.is_equal_average = true
         | 
| 2416 | 
            +
                    above_average.std_dev = 1        
         | 
| 2417 | 
            +
                    above_average_format_condition.above_average = above_average
         | 
| 2418 | 
            +
                    style = Style.new
         | 
| 2419 | 
            +
                    style.font = Font.new
         | 
| 2420 | 
            +
                    style.font.is_bold = true
         | 
| 2421 | 
            +
                    above_average_format_condition.style = style
         | 
| 2422 | 
            +
             | 
| 2423 | 
            +
                    # TimePeriod
         | 
| 2424 | 
            +
                    time_period_format_condition = FormatCondition.new
         | 
| 2425 | 
            +
                    time_period_format_condition.type = "TimePeriod"
         | 
| 2426 | 
            +
                    time_period_format_condition.time_period = "Last7Days"
         | 
| 2427 | 
            +
                    style = Style.new
         | 
| 2428 | 
            +
                    style.font = Font.new
         | 
| 2429 | 
            +
                    style.font.is_bold = true
         | 
| 2430 | 
            +
                    time_period_format_condition.style = style
         | 
| 2431 | 
            +
             | 
| 2432 | 
            +
                    # Top10
         | 
| 2433 | 
            +
                    top_10_format_condition = FormatCondition.new
         | 
| 2434 | 
            +
                    top_10_format_condition.type = "Top10"
         | 
| 2435 | 
            +
                    top_10 = Top10.new
         | 
| 2436 | 
            +
                    top_10.is_bottom = true
         | 
| 2437 | 
            +
                    top_10.is_percent = true
         | 
| 2438 | 
            +
                    top_10.rank = 1
         | 
| 2439 | 
            +
                    top_10_format_condition.top10 = top_10
         | 
| 2440 | 
            +
                    style = Style.new
         | 
| 2441 | 
            +
                    style.font = Font.new
         | 
| 2442 | 
            +
                    style.font.is_bold = true
         | 
| 2443 | 
            +
                    top_10_format_condition.style = style
         | 
| 2444 | 
            +
             | 
| 2445 | 
            +
                    # ColorScale
         | 
| 2446 | 
            +
                    color_scale_format_condition = FormatCondition.new
         | 
| 2447 | 
            +
                    color_scale_format_condition.type = "ColorScale"
         | 
| 2448 | 
            +
                    color_scale = ColorScale.new
         | 
| 2449 | 
            +
                    max_cfvo = ConditionalFormattingValue.new
         | 
| 2450 | 
            +
                    max_cfvo.is_gte = true
         | 
| 2451 | 
            +
                    max_cfvo.type = "AutomaticMax"
         | 
| 2452 | 
            +
                    max_cfvo.value = "AutomaticMax"
         | 
| 2453 | 
            +
                    color_scale.max_cfvo = max_cfvo
         | 
| 2454 | 
            +
                    max_color = Color.new
         | 
| 2455 | 
            +
                    max_color.a = 255
         | 
| 2456 | 
            +
                    max_color.r = 255
         | 
| 2457 | 
            +
                    max_color.g = 0
         | 
| 2458 | 
            +
                    max_color.b = 255
         | 
| 2459 | 
            +
                    color_scale.max_color = max_color
         | 
| 2460 | 
            +
                    mid_cfvo = ConditionalFormattingValue.new
         | 
| 2461 | 
            +
                    mid_cfvo.is_gte = true
         | 
| 2462 | 
            +
                    mid_cfvo.type = "Number"
         | 
| 2463 | 
            +
                    mid_cfvo.value = "Number"
         | 
| 2464 | 
            +
                    color_scale.mid_cfvo = mid_cfvo
         | 
| 2465 | 
            +
                    mid_color = Color.new
         | 
| 2466 | 
            +
                    mid_color.a = 0
         | 
| 2467 | 
            +
                    mid_color.r = 255
         | 
| 2468 | 
            +
                    mid_color.g = 0
         | 
| 2469 | 
            +
                    mid_color.b = 0
         | 
| 2470 | 
            +
                    color_scale.mid_color = mid_color
         | 
| 2471 | 
            +
                    min_color = Color.new
         | 
| 2472 | 
            +
                    min_color.a = 0
         | 
| 2473 | 
            +
                    min_color.r = 255
         | 
| 2474 | 
            +
                    min_color.g = 0
         | 
| 2475 | 
            +
                    min_color.b = 0
         | 
| 2476 | 
            +
                    color_scale.min_color = min_color
         | 
| 2477 | 
            +
                    color_scale_format_condition.color_scale = color_scale
         | 
| 2478 | 
            +
                    style = Style.new
         | 
| 2479 | 
            +
                    style.font = Font.new
         | 
| 2480 | 
            +
                    style.font.is_bold = true
         | 
| 2481 | 
            +
                    color_scale_format_condition.style = style
         | 
| 2482 | 
            +
             | 
| 2483 | 
            +
                    # DataBar
         | 
| 2484 | 
            +
                    databar_format_condition = FormatCondition.new
         | 
| 2485 | 
            +
                    databar_format_condition.type = "DataBar"
         | 
| 2486 | 
            +
                    
         | 
| 2487 | 
            +
                    data_bar = DataBar.new
         | 
| 2488 | 
            +
                    axis_color = Color.new
         | 
| 2489 | 
            +
                    axis_color.a = 0
         | 
| 2490 | 
            +
                    axis_color.r = 0
         | 
| 2491 | 
            +
                    axis_color.g = 0
         | 
| 2492 | 
            +
                    axis_color.b = 255
         | 
| 2493 | 
            +
                    data_bar.axis_color = axis_color
         | 
| 2494 | 
            +
                    data_bar.axis_position = "DataBarAxisAutomatic"
         | 
| 2495 | 
            +
                    bar_border = BarBorder.new
         | 
| 2496 | 
            +
                    color = Color.new
         | 
| 2497 | 
            +
                    color.a = 0
         | 
| 2498 | 
            +
                    color.r = 255
         | 
| 2499 | 
            +
                    color.g = 0
         | 
| 2500 | 
            +
                    color.b = 0
         | 
| 2501 | 
            +
                    bar_border.color = color
         | 
| 2502 | 
            +
                    bar_border.type = "None"
         | 
| 2503 | 
            +
                    data_bar.bar_border = bar_border
         | 
| 2504 | 
            +
                    data_bar.bar_fill_type = "Solid"
         | 
| 2505 | 
            +
                    color = Color.new
         | 
| 2506 | 
            +
                    color.a = 0
         | 
| 2507 | 
            +
                    color.r = 0
         | 
| 2508 | 
            +
                    color.g = 255
         | 
| 2509 | 
            +
                    color.b = 0
         | 
| 2510 | 
            +
                    data_bar.color = color
         | 
| 2511 | 
            +
                    data_bar.direction = "LeftToRight"
         | 
| 2512 | 
            +
                    max_cfvo = ConditionalFormattingValue.new
         | 
| 2513 | 
            +
                    max_cfvo.is_gte = true
         | 
| 2514 | 
            +
                    max_cfvo.type = "Number"
         | 
| 2515 | 
            +
                    max_cfvo.value = "Number"
         | 
| 2516 | 
            +
                    data_bar.max_cfvo = max_cfvo
         | 
| 2517 | 
            +
                    data_bar.max_length = 1
         | 
| 2518 | 
            +
                    min_cfvo = ConditionalFormattingValue.new
         | 
| 2519 | 
            +
                    min_cfvo.is_gte = true
         | 
| 2520 | 
            +
                    min_cfvo.type = "Number"
         | 
| 2521 | 
            +
                    min_cfvo.value = "Number"
         | 
| 2522 | 
            +
                    data_bar.min_cfvo = min_cfvo
         | 
| 2523 | 
            +
                    data_bar.min_length = 1
         | 
| 2524 | 
            +
             | 
| 2525 | 
            +
                    negative_bar_format = NegativeBarFormat.new
         | 
| 2526 | 
            +
                    border_color = Color.new
         | 
| 2527 | 
            +
                    border_color.a = 0
         | 
| 2528 | 
            +
                    border_color.r = 0
         | 
| 2529 | 
            +
                    border_color.g = 255
         | 
| 2530 | 
            +
                    border_color.b = 0
         | 
| 2531 | 
            +
                    negative_bar_format.border_color = border_color
         | 
| 2532 | 
            +
                    negative_bar_format.border_color_type = "Color"
         | 
| 2533 | 
            +
                    color = Color.new
         | 
| 2534 | 
            +
                    color.a = 0
         | 
| 2535 | 
            +
                    color.r = 0
         | 
| 2536 | 
            +
                    color.g = 255
         | 
| 2537 | 
            +
                    color.b = 0
         | 
| 2538 | 
            +
                    negative_bar_format.color = color
         | 
| 2539 | 
            +
                    negative_bar_format.color_type = "Color"
         | 
| 2540 | 
            +
                    data_bar.negative_bar_format = negative_bar_format
         | 
| 2541 | 
            +
             | 
| 2542 | 
            +
                    data_bar.show_value = true
         | 
| 2543 | 
            +
             | 
| 2544 | 
            +
                    databar_format_condition.data_bar = data_bar
         | 
| 2545 | 
            +
                    style = Style.new
         | 
| 2546 | 
            +
                    style.font = Font.new
         | 
| 2547 | 
            +
                    style.font.is_bold = true
         | 
| 2548 | 
            +
                    databar_format_condition.style = style
         | 
| 2549 | 
            +
             | 
| 2550 | 
            +
                    # IconSet
         | 
| 2551 | 
            +
                    iconset_format_condition = FormatCondition.new
         | 
| 2552 | 
            +
                    iconset_format_condition.type = "IconSet"
         | 
| 2553 | 
            +
                    
         | 
| 2554 | 
            +
                    icon_set = IconSet.new
         | 
| 2555 | 
            +
                    conditional_formatting_icon = ConditionalFormattingIcon.new
         | 
| 2556 | 
            +
                    conditional_formatting_icon.index = 0
         | 
| 2557 | 
            +
                    conditional_formatting_icon.type = "Arrows3"
         | 
| 2558 | 
            +
                    icon_set.cf_icons = [conditional_formatting_icon]
         | 
| 2559 | 
            +
             | 
| 2560 | 
            +
                    conditional_formatting_val = ConditionalFormattingValue.new
         | 
| 2561 | 
            +
                    conditional_formatting_val.is_gte = true
         | 
| 2562 | 
            +
                    conditional_formatting_val.type = "AutomaticMax"
         | 
| 2563 | 
            +
                    conditional_formatting_val.value = "AutomaticMax"
         | 
| 2564 | 
            +
                    icon_set.cfvos = [conditional_formatting_val]
         | 
| 2565 | 
            +
             | 
| 2566 | 
            +
                    icon_set.is_custom = true
         | 
| 2567 | 
            +
                    icon_set.reverse = true
         | 
| 2568 | 
            +
                    icon_set.show_value = true
         | 
| 2569 | 
            +
                    icon_set.icon_set_type = "Rating4"
         | 
| 2570 | 
            +
             | 
| 2571 | 
            +
                    iconset_format_condition.icon_set = icon_set
         | 
| 2572 | 
            +
                    style = Style.new
         | 
| 2573 | 
            +
                    style.font = Font.new
         | 
| 2574 | 
            +
                    style.font.is_bold = true
         | 
| 2575 | 
            +
                    iconset_format_condition.style = style
         | 
| 2576 | 
            +
             | 
| 2577 | 
            +
                    response = @cells_api.put_worksheet_conditional_formatting(file_name, sheet_name, cell_area, opts = {formatcondition: format_condition})
         | 
| 2578 | 
            +
                    assert(response, message="Failed to add a condition formatting")
         | 
| 2579 | 
            +
                end
         | 
| 2580 | 
            +
             | 
| 2581 | 
            +
                def test_delete_worksheet_conditional_formatting_area
         | 
| 2582 | 
            +
                    file_name = "Book1.xlsx"
         | 
| 2583 | 
            +
                    upload_file(file_name)
         | 
| 2584 | 
            +
                    
         | 
| 2585 | 
            +
                    sheet_name = "sheet1"
         | 
| 2586 | 
            +
                    start_row = 3
         | 
| 2587 | 
            +
                    start_column = 3
         | 
| 2588 | 
            +
                    total_rows = 1
         | 
| 2589 | 
            +
                    total_columns = 1
         | 
| 2590 | 
            +
                    
         | 
| 2591 | 
            +
                    response = @cells_api.delete_worksheet_conditional_formatting_area(file_name, sheet_name, start_row, start_column, total_rows, total_columns, opts = {})
         | 
| 2592 | 
            +
                    assert(response, message="Failed to remove cell area from conditional formatting.")
         | 
| 2593 | 
            +
                end
         | 
| 2594 | 
            +
                
         | 
| 2595 | 
            +
                def test_delete_worksheet_conditional_formatting
         | 
| 2596 | 
            +
                    file_name = "Book1.xlsx"
         | 
| 2597 | 
            +
                    upload_file(file_name)
         | 
| 2598 | 
            +
                    
         | 
| 2599 | 
            +
                    sheet_name = "sheet1"
         | 
| 2600 | 
            +
                    index = 0
         | 
| 2601 | 
            +
                    
         | 
| 2602 | 
            +
                    response = @cells_api.delete_worksheet_conditional_formatting(file_name, sheet_name, index, opts = {})
         | 
| 2603 | 
            +
                    assert(response, message="Failed to remove conditional formatting.")
         | 
| 2604 | 
            +
                end
         | 
| 2605 | 
            +
             | 
| 2606 | 
            +
                def test_delete_worksheet_conditional_formattings
         | 
| 2607 | 
            +
                    file_name = "Book1.xlsx"
         | 
| 2608 | 
            +
                    upload_file(file_name)
         | 
| 2609 | 
            +
                    
         | 
| 2610 | 
            +
                    sheet_name = "sheet1"
         | 
| 2611 | 
            +
                    
         | 
| 2612 | 
            +
                    response = @cells_api.delete_worksheet_conditional_formattings(file_name, sheet_name, opts = {})
         | 
| 2613 | 
            +
                    assert(response, message="Failed to remove conditional formatting.")
         | 
| 2614 | 
            +
                end
         | 
| 2615 | 
            +
             | 
| 2616 | 
            +
                
         | 
| 2203 2617 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aspose_cells_cloud
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0. | 
| 4 | 
            +
              version: 1.0.9
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - M. Sohail Ismail
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2017- | 
| 11 | 
            +
            date: 2017-08-31 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: typhoeus
         | 
| @@ -93,6 +93,7 @@ files: | |
| 93 93 | 
             
            - ".ruby-version"
         | 
| 94 94 | 
             
            - LICENSE
         | 
| 95 95 | 
             
            - README.md
         | 
| 96 | 
            +
            - aspose_cells_cloud-1.0.8.gem
         | 
| 96 97 | 
             
            - aspose_cells_cloud.gemspec
         | 
| 97 98 | 
             
            - lib/aspose_cells_cloud.rb
         | 
| 98 99 | 
             
            - lib/aspose_cells_cloud/api/cells_api.rb
         |