aspose_words_cloud 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56adca8a938ac524138d425ae13d72609bd2d69e
4
- data.tar.gz: 5c059564439ffb80eb76eb2bb595655e7f4c1c6e
3
+ metadata.gz: 92765fa4616f908a86b9918dd119409fceabfe1b
4
+ data.tar.gz: 3833a07b83f724e7740652d7e77ee30dcfca96b5
5
5
  SHA512:
6
- metadata.gz: d1e4511ec9068bf5705ac036df53c5cbdcf958ddf10283a38f7c5074ecef9d27ce48da439c1bee0b6ed2d63582eb0bc3cb41b0d979b8f05940f196c2cb69d74f
7
- data.tar.gz: 7aae6aa12ed7c74542e8260b583c293f3266ebaa06c2fa61448e80114bcd56de4ed31009be6b3d8f625b3361100dcf3c637c9bed7651bc02c7ae00a42a74d7b5
6
+ metadata.gz: aab3d31dc023ae0ca51c697f3d09e17881aaa1d774140def68a3c2bcc578137dc2b9c6058760a548f3efae0dfb9ef7ff491fd06057358a45a75d6e657276779a
7
+ data.tar.gz: fea794804f63f1c7b65fcd8df9f37cde4df3f435ebcd5d2843b309c18336816f3703119742f05f25dea00b6908f09265360bbf4294f61017a0a8a8c36ccbd89b
@@ -4406,6 +4406,496 @@ module AsposeWordsCloud
4406
4406
  end
4407
4407
  return result
4408
4408
  end
4409
+
4410
+ # Return a table.
4411
+ #
4412
+ # @param name The document name.
4413
+ # @param index Object's index.
4414
+ # @param [Hash] opts the optional parameters
4415
+ # @option opts [String] :storage The document's storage.
4416
+ # @option opts [String] :folder The document's folder.
4417
+ # @return [TableResponse]
4418
+ def get_table(name, index, opts = {})
4419
+ if Configuration.debugging
4420
+ Configuration.debugging "Calling API: WordsApi#get_table ..."
4421
+ end
4422
+
4423
+ # verify the required parameter 'name' is set
4424
+ fail "Missing the required parameter 'name' when calling get_table" if name.nil?
4425
+
4426
+ # verify the required parameter 'index' is set
4427
+ fail "Missing the required parameter 'index' when calling get_table" if index.nil?
4428
+
4429
+ # resource path
4430
+ path = "/words/{name}/tables/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'index' + '}', index.to_s)
4431
+
4432
+ # query parameters
4433
+ query_params = {}
4434
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
4435
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
4436
+
4437
+ # header parameters
4438
+ header_params = {}
4439
+
4440
+ # HTTP header 'Accept' (if needed)
4441
+ _header_accept = ['application/json']
4442
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
4443
+
4444
+ # HTTP header 'Content-Type'
4445
+ _header_content_type = ['application/json']
4446
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
4447
+
4448
+ # form parameters
4449
+ form_params = {}
4450
+
4451
+ # http body (model)
4452
+ post_body = nil
4453
+
4454
+
4455
+ auth_names = []
4456
+ 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 => 'TableResponse')
4457
+ if Configuration.debugging
4458
+ Configuration.logger.debug "API called: WordsApi#get_table. Result: #{result.inspect}"
4459
+ end
4460
+ result
4461
+ end
4462
+
4463
+ # Delete a table.
4464
+ #
4465
+ # @param name The document name.
4466
+ # @param index Object's index.
4467
+ # @param [Hash] opts the optional parameters
4468
+ # @option opts [String] :storage The document's storage.
4469
+ # @option opts [String] :folder The document's folder.
4470
+ # @return [BaseResponse]
4471
+ def delete_table(name, index, opts = {})
4472
+ if Configuration.debugging
4473
+ Configuration.debugging "Calling API: WordsApi#delete_table ..."
4474
+ end
4475
+
4476
+ # verify the required parameter 'name' is set
4477
+ fail "Missing the required parameter 'name' when calling delete_table" if name.nil?
4478
+
4479
+ # verify the required parameter 'index' is set
4480
+ fail "Missing the required parameter 'index' when calling delete_table" if index.nil?
4481
+
4482
+ # resource path
4483
+ path = "/words/{name}/tables/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'index' + '}', index.to_s)
4484
+
4485
+ # query parameters
4486
+ query_params = {}
4487
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
4488
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
4489
+
4490
+ # header parameters
4491
+ header_params = {}
4492
+
4493
+ # HTTP header 'Accept' (if needed)
4494
+ _header_accept = ['application/json']
4495
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
4496
+
4497
+ # HTTP header 'Content-Type'
4498
+ _header_content_type = ['application/json']
4499
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
4500
+
4501
+ # form parameters
4502
+ form_params = {}
4503
+
4504
+ # http body (model)
4505
+ post_body = nil
4506
+
4507
+
4508
+ auth_names = []
4509
+ 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')
4510
+ if Configuration.debugging
4511
+ Configuration.logger.debug "API called: WordsApi#delete_table. Result: #{result.inspect}"
4512
+ end
4513
+ result
4514
+ end
4515
+
4516
+ # Return a collection of borders.
4517
+ #
4518
+ # @param name The document name.
4519
+ # @param table_index Table index.
4520
+ # @param row_index Row index.
4521
+ # @param [Hash] opts the optional parameters
4522
+ # @option opts [String] :storage The document's storage.
4523
+ # @option opts [String] :folder The document's folder.
4524
+ # @return [BordersResponse]
4525
+ def get_borders(name, table_index, row_index, opts = {})
4526
+ if Configuration.debugging
4527
+ Configuration.debugging "Calling API: WordsApi#get_borders ..."
4528
+ end
4529
+
4530
+ # verify the required parameter 'name' is set
4531
+ fail "Missing the required parameter 'name' when calling get_borders" if name.nil?
4532
+
4533
+ # verify the required parameter 'table_index' is set
4534
+ fail "Missing the required parameter 'table_index' when calling get_borders" if table_index.nil?
4535
+
4536
+ # verify the required parameter 'row_index' is set
4537
+ fail "Missing the required parameter 'row_index' when calling get_borders" if row_index.nil?
4538
+
4539
+ # resource path
4540
+ path = "/words/{name}/tables/{tableIndex}/rows/{rowIndex}/borders".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'tableIndex' + '}', table_index.to_s).sub('{' + 'rowIndex' + '}', row_index.to_s)
4541
+
4542
+ # query parameters
4543
+ query_params = {}
4544
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
4545
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
4546
+
4547
+ # header parameters
4548
+ header_params = {}
4549
+
4550
+ # HTTP header 'Accept' (if needed)
4551
+ _header_accept = ['application/json']
4552
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
4553
+
4554
+ # HTTP header 'Content-Type'
4555
+ _header_content_type = ['application/json']
4556
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
4557
+
4558
+ # form parameters
4559
+ form_params = {}
4560
+
4561
+ # http body (model)
4562
+ post_body = nil
4563
+
4564
+
4565
+ auth_names = []
4566
+ 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 => 'BordersResponse')
4567
+ if Configuration.debugging
4568
+ Configuration.logger.debug "API called: WordsApi#get_borders. Result: #{result.inspect}"
4569
+ end
4570
+ result
4571
+ end
4572
+
4573
+ # Resets borders properties to default values.
4574
+ #
4575
+ # @param name The document name.
4576
+ # @param table_index Table index.
4577
+ # @param row_index Row index.
4578
+ # @param [Hash] opts the optional parameters
4579
+ # @option opts [String] :storage The document's storage.
4580
+ # @option opts [String] :folder The document's folder.
4581
+ # @return [BordersResponse]
4582
+ def delete_borders(name, table_index, row_index, opts = {})
4583
+ if Configuration.debugging
4584
+ Configuration.debugging "Calling API: WordsApi#delete_borders ..."
4585
+ end
4586
+
4587
+ # verify the required parameter 'name' is set
4588
+ fail "Missing the required parameter 'name' when calling delete_borders" if name.nil?
4589
+
4590
+ # verify the required parameter 'table_index' is set
4591
+ fail "Missing the required parameter 'table_index' when calling delete_borders" if table_index.nil?
4592
+
4593
+ # verify the required parameter 'row_index' is set
4594
+ fail "Missing the required parameter 'row_index' when calling delete_borders" if row_index.nil?
4595
+
4596
+ # resource path
4597
+ path = "/words/{name}/tables/{tableIndex}/rows/{rowIndex}/borders".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'tableIndex' + '}', table_index.to_s).sub('{' + 'rowIndex' + '}', row_index.to_s)
4598
+
4599
+ # query parameters
4600
+ query_params = {}
4601
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
4602
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
4603
+
4604
+ # header parameters
4605
+ header_params = {}
4606
+
4607
+ # HTTP header 'Accept' (if needed)
4608
+ _header_accept = ['application/json']
4609
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
4610
+
4611
+ # HTTP header 'Content-Type'
4612
+ _header_content_type = ['application/json']
4613
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
4614
+
4615
+ # form parameters
4616
+ form_params = {}
4617
+
4618
+ # http body (model)
4619
+ post_body = nil
4620
+
4621
+
4622
+ auth_names = []
4623
+ 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 => 'BordersResponse')
4624
+ if Configuration.debugging
4625
+ Configuration.logger.debug "API called: WordsApi#delete_borders. Result: #{result.inspect}"
4626
+ end
4627
+ result
4628
+ end
4629
+
4630
+ # Renders page to specified format.
4631
+ #
4632
+ # @param name The document name.
4633
+ # @param page_index Page index.
4634
+ # @param format The destination format.
4635
+ # @param [Hash] opts the optional parameters
4636
+ # @option opts [String] :storage The document's storage.
4637
+ # @option opts [String] :folder The document's folder.
4638
+ # @return [File]
4639
+ def render_page(name, page_index, format, opts = {})
4640
+ if Configuration.debugging
4641
+ Configuration.debugging "Calling API: WordsApi#render_page ..."
4642
+ end
4643
+
4644
+ # verify the required parameter 'name' is set
4645
+ fail "Missing the required parameter 'name' when calling render_page" if name.nil?
4646
+
4647
+ # verify the required parameter 'page_index' is set
4648
+ fail "Missing the required parameter 'page_index' when calling render_page" if page_index.nil?
4649
+
4650
+ # verify the required parameter 'format' is set
4651
+ fail "Missing the required parameter 'format' when calling render_page" if format.nil?
4652
+
4653
+ # resource path
4654
+ path = "/words/{name}/pages/{pageIndex}/render".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageIndex' + '}', page_index.to_s)
4655
+
4656
+ # query parameters
4657
+ query_params = {}
4658
+ query_params[:'format'] = format
4659
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
4660
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
4661
+
4662
+ # header parameters
4663
+ header_params = {}
4664
+
4665
+ # HTTP header 'Accept' (if needed)
4666
+ _header_accept = []
4667
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
4668
+
4669
+ # HTTP header 'Content-Type'
4670
+ _header_content_type = ['application/json']
4671
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
4672
+
4673
+ # form parameters
4674
+ form_params = {}
4675
+
4676
+ # http body (model)
4677
+ post_body = nil
4678
+
4679
+
4680
+ auth_names = []
4681
+ 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 => 'File')
4682
+ if Configuration.debugging
4683
+ Configuration.logger.debug "API called: WordsApi#render_page. Result: #{result.inspect}"
4684
+ end
4685
+ result
4686
+ end
4687
+
4688
+ # Read All OfficeMath objects for a particular section from a document.
4689
+ #
4690
+ # @param name The document name.
4691
+ # @param section_index Section's index.
4692
+ # @param paragraph_index Paragraph's index.
4693
+ # @param [Hash] opts the optional parameters
4694
+ # @option opts [String] :storage The document's storage.
4695
+ # @option opts [String] :folder The document's folder.
4696
+ # @return [OfficeMathObjectsResponse]
4697
+ def get_office_math_objects_for_a_particular_section(name, section_index, paragraph_index, opts = {})
4698
+ if Configuration.debugging
4699
+ Configuration.debugging "Calling API: WordsApi#get_office_math_objects_for_a_particular_section ..."
4700
+ end
4701
+
4702
+ # verify the required parameter 'name' is set
4703
+ fail "Missing the required parameter 'name' when calling get_office_math_objects_for_a_particular_section" if name.nil?
4704
+
4705
+ # verify the required parameter 'section_index' is set
4706
+ fail "Missing the required parameter 'section_index' when calling get_office_math_objects_for_a_particular_section" if section_index.nil?
4707
+
4708
+ # verify the required parameter 'paragraph_index' is set
4709
+ fail "Missing the required parameter 'paragraph_index' when calling get_office_math_objects_for_a_particular_section" if paragraph_index.nil?
4710
+
4711
+ # resource path
4712
+ path = "/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/OfficeMathObjects".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'sectionIndex' + '}', section_index.to_s).sub('{' + 'paragraphIndex' + '}', paragraph_index.to_s)
4713
+
4714
+ # query parameters
4715
+ query_params = {}
4716
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
4717
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
4718
+
4719
+ # header parameters
4720
+ header_params = {}
4721
+
4722
+ # HTTP header 'Accept' (if needed)
4723
+ _header_accept = ['application/json']
4724
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
4725
+
4726
+ # HTTP header 'Content-Type'
4727
+ _header_content_type = ['application/json']
4728
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
4729
+
4730
+ # form parameters
4731
+ form_params = {}
4732
+
4733
+ # http body (model)
4734
+ post_body = nil
4735
+
4736
+
4737
+ auth_names = []
4738
+ 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 => 'OfficeMathObjectsResponse')
4739
+ if Configuration.debugging
4740
+ Configuration.logger.debug "API called: WordsApi#get_office_math_objects_for_a_particular_section. Result: #{result.inspect}"
4741
+ end
4742
+ result
4743
+ end
4744
+
4745
+ # Read All OfficeMath objects for a particular Paragraph from a document.
4746
+ #
4747
+ # @param name The document name.
4748
+ # @param paragraph_index Paragraph's index.
4749
+ # @param [Hash] opts the optional parameters
4750
+ # @option opts [String] :storage The document's storage.
4751
+ # @option opts [String] :folder The document's folder.
4752
+ # @return [OfficeMathObjectsResponse]
4753
+ def get_office_math_objects_for_a_particular_paragraph(name, paragraph_index, opts = {})
4754
+ if Configuration.debugging
4755
+ Configuration.debugging "Calling API: WordsApi#get_office_math_objects_for_a_particular_paragraph ..."
4756
+ end
4757
+
4758
+ # verify the required parameter 'name' is set
4759
+ fail "Missing the required parameter 'name' when calling get_office_math_objects_for_a_particular_paragraph" if name.nil?
4760
+
4761
+ # verify the required parameter 'paragraph_index' is set
4762
+ fail "Missing the required parameter 'paragraph_index' when calling get_office_math_objects_for_a_particular_paragraph" if paragraph_index.nil?
4763
+
4764
+ # resource path
4765
+ path = "/words/{name}/paragraphs/{paragraphIndex}/OfficeMathObjects".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'paragraphIndex' + '}', paragraph_index.to_s)
4766
+
4767
+ # query parameters
4768
+ query_params = {}
4769
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
4770
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
4771
+
4772
+ # header parameters
4773
+ header_params = {}
4774
+
4775
+ # HTTP header 'Accept' (if needed)
4776
+ _header_accept = ['application/json']
4777
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
4778
+
4779
+ # HTTP header 'Content-Type'
4780
+ _header_content_type = ['application/json']
4781
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
4782
+
4783
+ # form parameters
4784
+ form_params = {}
4785
+
4786
+ # http body (model)
4787
+ post_body = nil
4788
+
4789
+
4790
+ auth_names = []
4791
+ 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 => 'OfficeMathObjectsResponse')
4792
+ if Configuration.debugging
4793
+ Configuration.logger.debug "API called: WordsApi#get_office_math_objects_for_a_particular_paragraph. Result: #{result.inspect}"
4794
+ end
4795
+ result
4796
+ end
4797
+
4798
+ # Get OfficeMath objects from document.
4799
+ #
4800
+ # @param name The document name.
4801
+ # @param [Hash] opts the optional parameters
4802
+ # @option opts [String] :storage The document's storage.
4803
+ # @option opts [String] :folder The document's folder.
4804
+ # @return [OfficeMathObjectsResponse]
4805
+ def get_office_math_objects(name, opts = {})
4806
+ if Configuration.debugging
4807
+ Configuration.debugging "Calling API: WordsApi#get_office_math_objects ..."
4808
+ end
4809
+
4810
+ # verify the required parameter 'name' is set
4811
+ fail "Missing the required parameter 'name' when calling get_office_math_objects" if name.nil?
4812
+
4813
+ # resource path
4814
+ path = "/words/{name}/OfficeMathObjects".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
4815
+
4816
+ # query parameters
4817
+ query_params = {}
4818
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
4819
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
4820
+
4821
+ # header parameters
4822
+ header_params = {}
4823
+
4824
+ # HTTP header 'Accept' (if needed)
4825
+ _header_accept = ['application/json']
4826
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
4827
+
4828
+ # HTTP header 'Content-Type'
4829
+ _header_content_type = ['application/json']
4830
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
4831
+
4832
+ # form parameters
4833
+ form_params = {}
4834
+
4835
+ # http body (model)
4836
+ post_body = nil
4837
+
4838
+
4839
+ auth_names = []
4840
+ 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 => 'OfficeMathObjectsResponse')
4841
+ if Configuration.debugging
4842
+ Configuration.logger.debug "API called: WordsApi#get_office_math_objects. Result: #{result.inspect}"
4843
+ end
4844
+ result
4845
+ end
4846
+
4847
+ # Read OfficeMath object by index.
4848
+ #
4849
+ # @param name The document name.
4850
+ # @param index Object's index.
4851
+ # @param [Hash] opts the optional parameters
4852
+ # @option opts [String] :storage The document's storage.
4853
+ # @option opts [String] :folder The document's folder.
4854
+ # @return [OfficeMathObjectResponse]
4855
+ def get_office_math_object(name, index, opts = {})
4856
+ if Configuration.debugging
4857
+ Configuration.debugging "Calling API: WordsApi#get_office_math_object ..."
4858
+ end
4859
+
4860
+ # verify the required parameter 'name' is set
4861
+ fail "Missing the required parameter 'name' when calling get_office_math_object" if name.nil?
4862
+
4863
+ # verify the required parameter 'index' is set
4864
+ fail "Missing the required parameter 'index' when calling get_office_math_object" if index.nil?
4865
+
4866
+ # resource path
4867
+ path = "/words/{name}/OfficeMathObjects/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'index' + '}', index.to_s)
4868
+
4869
+ # query parameters
4870
+ query_params = {}
4871
+ query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
4872
+ query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
4873
+
4874
+ # header parameters
4875
+ header_params = {}
4876
+
4877
+ # HTTP header 'Accept' (if needed)
4878
+ _header_accept = ['application/json']
4879
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
4880
+
4881
+ # HTTP header 'Content-Type'
4882
+ _header_content_type = ['application/json']
4883
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
4884
+
4885
+ # form parameters
4886
+ form_params = {}
4887
+
4888
+ # http body (model)
4889
+ post_body = nil
4890
+
4891
+
4892
+ auth_names = []
4893
+ 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 => 'OfficeMathObjectResponse')
4894
+ if Configuration.debugging
4895
+ Configuration.logger.debug "API called: WordsApi#get_office_math_object. Result: #{result.inspect}"
4896
+ end
4897
+ result
4898
+ end
4409
4899
  end
4410
4900
  end
4411
4901
 
@@ -36,14 +36,14 @@ module AsposeWordsCloud
36
36
  def call_api(http_method, path, opts = {})
37
37
  request = build_request(http_method, path, opts)
38
38
  response = request.run
39
-
39
+
40
40
  # record as last response
41
41
  @last_response = response
42
42
 
43
43
  if Configuration.debugging
44
44
  Configuration.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
45
45
  end
46
-
46
+
47
47
  unless response.success?
48
48
  fail ApiError.new(:code => response.code,
49
49
  :response_headers => response.headers,
@@ -0,0 +1,47 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class BordersCollection < BaseObject
4
+ attr_accessor :list, :link
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'list' => :'List',
11
+
12
+ #
13
+ :'link' => :'link'
14
+
15
+ }
16
+ end
17
+
18
+ # attribute type
19
+ def self.swagger_types
20
+ {
21
+ :'list' => :'Array<Border>',
22
+ :'link' => :'Link'
23
+
24
+ }
25
+ end
26
+
27
+ def initialize(attributes = {})
28
+ return if !attributes.is_a?(Hash) || attributes.empty?
29
+
30
+ # convert string to symbol for hash key
31
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
32
+
33
+
34
+ if attributes[:'List']
35
+ if (value = attributes[:'List']).is_a?(Array)
36
+ self.list = value
37
+ end
38
+ end
39
+
40
+ if attributes[:'link']
41
+ self.link = attributes[:'link']
42
+ end
43
+
44
+ end
45
+
46
+ end
47
+ end
@@ -0,0 +1,53 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class BordersResponse < BaseObject
4
+ attr_accessor :borders, :code, :status
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'borders' => :'Borders',
11
+
12
+ #
13
+ :'code' => :'Code',
14
+
15
+ #
16
+ :'status' => :'Status'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'borders' => :'BordersCollection',
25
+ :'code' => :'String',
26
+ :'status' => :'String'
27
+
28
+ }
29
+ end
30
+
31
+ def initialize(attributes = {})
32
+ return if !attributes.is_a?(Hash) || attributes.empty?
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
+
37
+
38
+ if attributes[:'Borders']
39
+ self.borders = attributes[:'Borders']
40
+ end
41
+
42
+ if attributes[:'Code']
43
+ self.code = attributes[:'Code']
44
+ end
45
+
46
+ if attributes[:'Status']
47
+ self.status = attributes[:'Status']
48
+ end
49
+
50
+ end
51
+
52
+ end
53
+ end
@@ -0,0 +1,53 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class ChildNode < BaseObject
4
+ attr_accessor :text, :node_id, :link
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'text' => :'Text',
11
+
12
+ #
13
+ :'node_id' => :'NodeId',
14
+
15
+ #
16
+ :'link' => :'link'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'text' => :'String',
25
+ :'node_id' => :'String',
26
+ :'link' => :'Link'
27
+
28
+ }
29
+ end
30
+
31
+ def initialize(attributes = {})
32
+ return if !attributes.is_a?(Hash) || attributes.empty?
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
+
37
+
38
+ if attributes[:'Text']
39
+ self.text = attributes[:'Text']
40
+ end
41
+
42
+ if attributes[:'NodeId']
43
+ self.node_id = attributes[:'NodeId']
44
+ end
45
+
46
+ if attributes[:'link']
47
+ self.link = attributes[:'link']
48
+ end
49
+
50
+ end
51
+
52
+ end
53
+ end