groupdocs_viewer_cloud 18.11 → 19.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_viewer_cloud.rb +27 -32
  3. data/lib/groupdocs_viewer_cloud/api/file_api.rb +729 -0
  4. data/lib/groupdocs_viewer_cloud/api/folder_api.rb +694 -0
  5. data/lib/groupdocs_viewer_cloud/api/storage_api.rb +541 -0
  6. data/lib/groupdocs_viewer_cloud/api/viewer_api.rb +232 -5069
  7. data/lib/groupdocs_viewer_cloud/api_client.rb +5 -5
  8. data/lib/groupdocs_viewer_cloud/api_error.rb +6 -6
  9. data/lib/groupdocs_viewer_cloud/configuration.rb +4 -4
  10. data/lib/groupdocs_viewer_cloud/models/attachment_info.rb +22 -34
  11. data/lib/groupdocs_viewer_cloud/models/{html_page.rb → attachment_view.rb} +39 -33
  12. data/lib/groupdocs_viewer_cloud/models/cad_options.rb +44 -65
  13. data/lib/groupdocs_viewer_cloud/models/{font_family.rb → delete_view_options.rb} +25 -17
  14. data/lib/groupdocs_viewer_cloud/models/{reorder_options.rb → disc_usage.rb} +42 -34
  15. data/lib/groupdocs_viewer_cloud/models/email_options.rb +23 -25
  16. data/lib/groupdocs_viewer_cloud/models/{image_page_collection.rb → error.rb} +46 -40
  17. data/lib/groupdocs_viewer_cloud/models/{outlook_options.rb → error_details.rb} +40 -17
  18. data/lib/groupdocs_viewer_cloud/models/field_label.rb +20 -12
  19. data/lib/groupdocs_viewer_cloud/models/{transform_options_base.rb → file_info.rb} +49 -21
  20. data/lib/groupdocs_viewer_cloud/models/{html_attachment_page_collection.rb → file_version.rb} +91 -40
  21. data/lib/groupdocs_viewer_cloud/models/{page_info_collection.rb → file_versions.rb} +26 -18
  22. data/lib/groupdocs_viewer_cloud/models/{font_collection.rb → files_list.rb} +26 -18
  23. data/lib/groupdocs_viewer_cloud/models/{image_page.rb → files_upload_result.rb} +36 -24
  24. data/lib/groupdocs_viewer_cloud/models/format.rb +30 -22
  25. data/lib/groupdocs_viewer_cloud/models/{format_collection.rb → formats_result.rb} +19 -11
  26. data/lib/groupdocs_viewer_cloud/models/html_options.rb +108 -209
  27. data/lib/groupdocs_viewer_cloud/models/html_resource.rb +234 -0
  28. data/lib/groupdocs_viewer_cloud/models/image_options.rb +129 -163
  29. data/lib/groupdocs_viewer_cloud/models/{attachment_collection.rb → info_result.rb} +32 -32
  30. data/lib/groupdocs_viewer_cloud/models/{rotate_options.rb → object_exist.rb} +42 -34
  31. data/lib/groupdocs_viewer_cloud/models/page_info.rb +48 -55
  32. data/lib/groupdocs_viewer_cloud/models/{pdf_file_info.rb → page_view.rb} +53 -38
  33. data/lib/groupdocs_viewer_cloud/models/{project_options.rb → project_management_options.rb} +39 -21
  34. data/lib/groupdocs_viewer_cloud/models/render_options.rb +92 -146
  35. data/lib/groupdocs_viewer_cloud/models/resource.rb +30 -22
  36. data/lib/groupdocs_viewer_cloud/models/{row_info.rb → row.rb} +65 -37
  37. data/lib/groupdocs_viewer_cloud/models/{cells_options.rb → spreadsheet_options.rb} +95 -67
  38. data/lib/groupdocs_viewer_cloud/models/{attachment.rb → storage_exist.rb} +30 -27
  39. data/lib/groupdocs_viewer_cloud/models/{image_attachment_page_collection.rb → storage_file.rb} +66 -40
  40. data/lib/groupdocs_viewer_cloud/models/{document_info.rb → view_options.rb} +99 -105
  41. data/lib/groupdocs_viewer_cloud/models/{html_page_collection.rb → view_result.rb} +43 -33
  42. data/lib/groupdocs_viewer_cloud/models/watermark.rb +35 -22
  43. data/lib/groupdocs_viewer_cloud/version.rb +2 -2
  44. metadata +27 -110
  45. data/lib/groupdocs_viewer_cloud/models/document_info_options.rb +0 -358
  46. data/lib/groupdocs_viewer_cloud/models/file_response.rb +0 -196
  47. data/lib/groupdocs_viewer_cloud/models/pdf_file_options.rb +0 -358
  48. data/lib/groupdocs_viewer_cloud/models/pdf_options.rb +0 -236
  49. data/lib/groupdocs_viewer_cloud/models/render_options_base.rb +0 -358
  50. data/lib/groupdocs_viewer_cloud/models/requests/html_create_attachment_pages_cache_request.rb +0 -65
  51. data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_from_content_request.rb +0 -65
  52. data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_from_url_request.rb +0 -65
  53. data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_request.rb +0 -61
  54. data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_from_content_request.rb +0 -65
  55. data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_from_url_request.rb +0 -65
  56. data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_request.rb +0 -61
  57. data/lib/groupdocs_viewer_cloud/models/requests/html_delete_attachment_pages_cache_request.rb +0 -57
  58. data/lib/groupdocs_viewer_cloud/models/requests/html_delete_pages_cache_request.rb +0 -53
  59. data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_info_request.rb +0 -65
  60. data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_info_with_options_request.rb +0 -61
  61. data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_page_request.rb +0 -109
  62. data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_page_resource_request.rb +0 -65
  63. data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_pages_request.rb +0 -113
  64. data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_request.rb +0 -61
  65. data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachments_request.rb +0 -57
  66. data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_content_request.rb +0 -61
  67. data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_url_request.rb +0 -69
  68. data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_url_with_options_request.rb +0 -61
  69. data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_request.rb +0 -65
  70. data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_with_options_request.rb +0 -57
  71. data/lib/groupdocs_viewer_cloud/models/requests/html_get_page_request.rb +0 -101
  72. data/lib/groupdocs_viewer_cloud/models/requests/html_get_page_resource_request.rb +0 -61
  73. data/lib/groupdocs_viewer_cloud/models/requests/html_get_pages_from_url_request.rb +0 -109
  74. data/lib/groupdocs_viewer_cloud/models/requests/html_get_pages_request.rb +0 -105
  75. data/lib/groupdocs_viewer_cloud/models/requests/html_get_pdf_file_from_url_request.rb +0 -77
  76. data/lib/groupdocs_viewer_cloud/models/requests/html_get_pdf_file_request.rb +0 -73
  77. data/lib/groupdocs_viewer_cloud/models/requests/html_get_zip_with_attachment_pages_request.rb +0 -113
  78. data/lib/groupdocs_viewer_cloud/models/requests/html_get_zip_with_pages_request.rb +0 -105
  79. data/lib/groupdocs_viewer_cloud/models/requests/html_transform_pages_request.rb +0 -57
  80. data/lib/groupdocs_viewer_cloud/models/requests/image_create_attachment_pages_cache_request.rb +0 -65
  81. data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_from_content_request.rb +0 -65
  82. data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_from_url_request.rb +0 -65
  83. data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_request.rb +0 -61
  84. data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_from_content_request.rb +0 -65
  85. data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_from_url_request.rb +0 -65
  86. data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_request.rb +0 -61
  87. data/lib/groupdocs_viewer_cloud/models/requests/image_delete_attachment_pages_cache_request.rb +0 -57
  88. data/lib/groupdocs_viewer_cloud/models/requests/image_delete_pages_cache_request.rb +0 -53
  89. data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_info_request.rb +0 -69
  90. data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_info_with_options_request.rb +0 -61
  91. data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_page_request.rb +0 -105
  92. data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_pages_request.rb +0 -109
  93. data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_request.rb +0 -61
  94. data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachments_request.rb +0 -57
  95. data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_content_request.rb +0 -61
  96. data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_url_request.rb +0 -73
  97. data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_url_with_options_request.rb +0 -61
  98. data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_request.rb +0 -69
  99. data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_with_options_request.rb +0 -57
  100. data/lib/groupdocs_viewer_cloud/models/requests/image_get_page_request.rb +0 -97
  101. data/lib/groupdocs_viewer_cloud/models/requests/image_get_pages_from_url_request.rb +0 -105
  102. data/lib/groupdocs_viewer_cloud/models/requests/image_get_pages_request.rb +0 -101
  103. data/lib/groupdocs_viewer_cloud/models/requests/image_get_pdf_file_from_url_request.rb +0 -77
  104. data/lib/groupdocs_viewer_cloud/models/requests/image_get_pdf_file_request.rb +0 -73
  105. data/lib/groupdocs_viewer_cloud/models/requests/image_get_zip_with_attachment_pages_request.rb +0 -109
  106. data/lib/groupdocs_viewer_cloud/models/requests/image_get_zip_with_pages_request.rb +0 -101
  107. data/lib/groupdocs_viewer_cloud/models/requests/image_transform_pages_request.rb +0 -57
  108. data/lib/groupdocs_viewer_cloud/models/resource_url.rb +0 -206
  109. data/lib/groupdocs_viewer_cloud/models/slides_options.rb +0 -206
  110. data/lib/groupdocs_viewer_cloud/models/tile.rb +0 -236
  111. data/lib/groupdocs_viewer_cloud/models/words_options.rb +0 -216
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
- # <copyright company="Aspose Pty Ltd" file="project_options.rb">
4
- # Copyright (c) 2003-2018 Aspose Pty Ltd
3
+ # <copyright company="Aspose Pty Ltd" file="project_management_options.rb">
4
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -28,8 +28,8 @@
28
28
  require 'date'
29
29
 
30
30
  module GroupDocsViewerCloud
31
- # The Microsoft Project documents rendering options.
32
- class ProjectOptions
31
+ # Rendering options for Project file formats. Project file formats include files with extensions: .mpt, .mpp
32
+ class ProjectManagementOptions
33
33
 
34
34
  # The size of the page. Supported values {Unknown|Letter|Ledger|A0|A1|A2|A3}: 1. Unknown - the default, unspecified page size. 2. Letter - the size of the Letter page in points is 792x612. 3. Ledger - the size of the Letter page in points is 1224x792. 4. A0 - the size of the A0 page in points is 3371x2384. 5. A1 - the size of the A1 page in points is 2384x1685. 6. A2 - the size of the A2 page in points is 1684x1190. 7. A3 - the size of the A3 page in points is 1190x842. 8. A4 - the size of the A4 page in points is 842x595.
35
35
  attr_accessor :page_size
@@ -46,10 +46,10 @@ module GroupDocsViewerCloud
46
46
  # Attribute mapping from ruby-style variable name to JSON key.
47
47
  def self.attribute_map
48
48
  {
49
- :'page_size' => :'pageSize',
50
- :'time_unit' => :'timeUnit',
51
- :'start_date' => :'startDate',
52
- :'end_date' => :'endDate'
49
+ :'page_size' => :'PageSize',
50
+ :'time_unit' => :'TimeUnit',
51
+ :'start_date' => :'StartDate',
52
+ :'end_date' => :'EndDate'
53
53
  }
54
54
  end
55
55
 
@@ -71,20 +71,20 @@ module GroupDocsViewerCloud
71
71
  # convert string to symbol for hash key
72
72
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
73
 
74
- if attributes.key?(:'pageSize')
75
- self.page_size = attributes[:'pageSize']
74
+ if attributes.key?(:'PageSize')
75
+ self.page_size = attributes[:'PageSize']
76
76
  end
77
77
 
78
- if attributes.key?(:'timeUnit')
79
- self.time_unit = attributes[:'timeUnit']
78
+ if attributes.key?(:'TimeUnit')
79
+ self.time_unit = attributes[:'TimeUnit']
80
80
  end
81
81
 
82
- if attributes.key?(:'startDate')
83
- self.start_date = attributes[:'startDate']
82
+ if attributes.key?(:'StartDate')
83
+ self.start_date = attributes[:'StartDate']
84
84
  end
85
85
 
86
- if attributes.key?(:'endDate')
87
- self.end_date = attributes[:'endDate']
86
+ if attributes.key?(:'EndDate')
87
+ self.end_date = attributes[:'EndDate']
88
88
  end
89
89
 
90
90
  end
@@ -93,12 +93,22 @@ module GroupDocsViewerCloud
93
93
  # @return Array for valid properies with the reasons
94
94
  def list_invalid_properties
95
95
  invalid_properties = []
96
+ if @start_date.nil?
97
+ invalid_properties.push("invalid value for 'start_date', start_date cannot be nil.")
98
+ end
99
+
100
+ if @end_date.nil?
101
+ invalid_properties.push("invalid value for 'end_date', end_date cannot be nil.")
102
+ end
103
+
96
104
  return invalid_properties
97
105
  end
98
106
 
99
107
  # Check to see if the all the properties in the model are valid
100
108
  # @return true if the model is valid
101
109
  def valid?
110
+ return false if @start_date.nil?
111
+ return false if @end_date.nil?
102
112
  return true
103
113
  end
104
114
 
@@ -125,20 +135,28 @@ module GroupDocsViewerCloud
125
135
  [page_size, time_unit, start_date, end_date].hash
126
136
  end
127
137
 
138
+ # Downcases first letter.
139
+ # @return downcased string
140
+ def uncap(str)
141
+ str[0, 1].downcase + str[1..-1]
142
+ end
143
+
128
144
  # Builds the object from hash
129
145
  # @param [Hash] attributes Model attributes in the form of hash
130
146
  # @return [Object] Returns the model itself
131
147
  def build_from_hash(attributes)
132
148
  return nil unless attributes.is_a?(Hash)
133
149
  self.class.swagger_types.each_pair do |key, type|
150
+ pname = uncap(self.class.attribute_map[key]).intern
151
+ value = attributes[pname]
134
152
  if type =~ /\AArray<(.*)>/i
135
153
  # check to ensure the input is an array given that the the attribute
136
- # is documented as an array but the input is not
137
- if attributes[self.class.attribute_map[key]].is_a?(Array)
138
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
154
+ # is documented as an array but the input is not
155
+ if value.is_a?(Array)
156
+ self.send("#{key}=", value.map { |v| _deserialize($1, v) })
139
157
  end
140
- elsif !attributes[self.class.attribute_map[key]].nil?
141
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
158
+ elsif !value.nil?
159
+ self.send("#{key}=", _deserialize(type, value))
142
160
  end
143
161
  # or else data not found in attributes(hash), not an issue as the data can be optional
144
162
  end
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="render_options.rb">
4
- # Copyright (c) 2003-2018 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -28,108 +28,68 @@
28
28
  require 'date'
29
29
 
30
30
  module GroupDocsViewerCloud
31
- # Base render options.
31
+ # Rendering options
32
32
  class RenderOptions
33
33
 
34
- # Allows to specify document password in case when document is password-protected.
35
- attr_accessor :password
34
+ # Page number from which rendering should be started
35
+ attr_accessor :start_page_number
36
+
37
+ # Count pages which should be rendered
38
+ attr_accessor :count_pages_to_render
36
39
 
37
- # Allows to specify attachment password in case when attachment is password-protected.
38
- attr_accessor :attachment_password
40
+ # Default font name may be specified in following cases: - You want to generally specify the default font to fall back on, if particular font in the document cannot be found during rendering. - Your document uses fonts, that contain non-English characters and you want to make sure any missing font is replaced with one that has the same character set available.
41
+ attr_accessor :default_font_name
39
42
 
40
- # Enables document text extraction. For rendering document as image only.
41
- attr_accessor :extract_text
43
+ # Default encoding for the plain text files such as .csv, .txt and .eml files when encoding is not specified in header
44
+ attr_accessor :default_encoding
42
45
 
43
- # Enables document comments rendering.
46
+ # When enabled comments will be rendered to the output.
44
47
  attr_accessor :render_comments
45
48
 
46
- # Enables rendering of document hidden pages, sheets or slides.
49
+ # When enabled hidden pages, sheets or slides will be rendered to the output
47
50
  attr_accessor :render_hidden_pages
48
51
 
49
- # Transforms to apply. Available transforms [\"Rotate\",\"Reorder\",\"AddPrintAction\"]. 1. Rotate - pages will be rotated on angle if angle was set before. 2. Reorder - for rendering document as PDF only. Pages will be ordered according to rearrangements made before. 3. AddPrintAction - for rendering document as PDF only. An JavaScript action will be added which opens print dialog when PDF document is opened.
50
- attr_accessor :transforms
51
-
52
- # The name of the default font. Default font name may be specified in following cases: - You want to generally specify the default font to fall back on, if particular font in the document cannot be found during rendering. - Your document uses fonts, that contain non-English characters and you want to make sure any missing font is replaced with one that has the same character set available.
53
- attr_accessor :default_font_name
54
-
55
- # Allows to specify watermark.
56
- attr_accessor :watermark
52
+ # Rendering options for Spreadsheet file formats. Spreadsheet file formats include files with extensions: .xls, .xlsx, .xlsm, .xlsb, .csv, .ods, .ots, .xltx, .xltm, .tsv
53
+ attr_accessor :spreadsheet_options
57
54
 
58
- # The Spreadsheet documents rendering options.
59
- attr_accessor :cells_options
60
-
61
- # The CAD documents rendering options.
55
+ # Rendering options for CAD file formats. CAD file formats include files with extensions: .dwg, .dxf, .dgn, .ifc, .stl
62
56
  attr_accessor :cad_options
63
57
 
64
- # The Email documents rendering options.
58
+ # Rendering options for Email file formats. Email file formats include files with extensions: .msg, .eml, .emlx, .ifc, .stl
65
59
  attr_accessor :email_options
66
60
 
67
- # The Text documents rendering options.
68
- attr_accessor :words_options
69
-
70
- # The PDF documents rendering options.
71
- attr_accessor :pdf_options
72
-
73
- # The Presentation documents rendering options.
74
- attr_accessor :slides_options
75
-
76
- # The Microsoft Project documents rendering options.
77
- attr_accessor :project_options
78
-
79
- # The Outlook Data File document (PST/OST) rendering options.
80
- attr_accessor :outlook_options
81
-
82
- # Allows to specify document page number as starting page to render.
83
- attr_accessor :start_page_number
84
-
85
- # Allows to specify count of document pages to render.
86
- attr_accessor :count_pages
61
+ # Rendering options for Project file formats. Project file formats include files with extensions: .mpt, .mpp
62
+ attr_accessor :project_management_options
87
63
 
88
64
  # Attribute mapping from ruby-style variable name to JSON key.
89
65
  def self.attribute_map
90
66
  {
91
- :'password' => :'password',
92
- :'attachment_password' => :'attachmentPassword',
93
- :'extract_text' => :'extractText',
94
- :'render_comments' => :'renderComments',
95
- :'render_hidden_pages' => :'renderHiddenPages',
96
- :'transforms' => :'transforms',
97
- :'default_font_name' => :'defaultFontName',
98
- :'watermark' => :'watermark',
99
- :'cells_options' => :'cellsOptions',
100
- :'cad_options' => :'cadOptions',
101
- :'email_options' => :'emailOptions',
102
- :'words_options' => :'wordsOptions',
103
- :'pdf_options' => :'pdfOptions',
104
- :'slides_options' => :'slidesOptions',
105
- :'project_options' => :'projectOptions',
106
- :'outlook_options' => :'outlookOptions',
107
- :'start_page_number' => :'startPageNumber',
108
- :'count_pages' => :'countPages'
67
+ :'start_page_number' => :'StartPageNumber',
68
+ :'count_pages_to_render' => :'CountPagesToRender',
69
+ :'default_font_name' => :'DefaultFontName',
70
+ :'default_encoding' => :'DefaultEncoding',
71
+ :'render_comments' => :'RenderComments',
72
+ :'render_hidden_pages' => :'RenderHiddenPages',
73
+ :'spreadsheet_options' => :'SpreadsheetOptions',
74
+ :'cad_options' => :'CadOptions',
75
+ :'email_options' => :'EmailOptions',
76
+ :'project_management_options' => :'ProjectManagementOptions'
109
77
  }
110
78
  end
111
79
 
112
80
  # Attribute type mapping.
113
81
  def self.swagger_types
114
82
  {
115
- :'password' => :'String',
116
- :'attachment_password' => :'String',
117
- :'extract_text' => :'BOOLEAN',
83
+ :'start_page_number' => :'Integer',
84
+ :'count_pages_to_render' => :'Integer',
85
+ :'default_font_name' => :'String',
86
+ :'default_encoding' => :'String',
118
87
  :'render_comments' => :'BOOLEAN',
119
88
  :'render_hidden_pages' => :'BOOLEAN',
120
- :'transforms' => :'Array<String>',
121
- :'default_font_name' => :'String',
122
- :'watermark' => :'Watermark',
123
- :'cells_options' => :'CellsOptions',
89
+ :'spreadsheet_options' => :'SpreadsheetOptions',
124
90
  :'cad_options' => :'CadOptions',
125
91
  :'email_options' => :'EmailOptions',
126
- :'words_options' => :'WordsOptions',
127
- :'pdf_options' => :'PdfOptions',
128
- :'slides_options' => :'SlidesOptions',
129
- :'project_options' => :'ProjectOptions',
130
- :'outlook_options' => :'OutlookOptions',
131
- :'start_page_number' => :'Integer',
132
- :'count_pages' => :'Integer'
92
+ :'project_management_options' => :'ProjectManagementOptions'
133
93
  }
134
94
  end
135
95
 
@@ -141,92 +101,78 @@ module GroupDocsViewerCloud
141
101
  # convert string to symbol for hash key
142
102
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
143
103
 
144
- if attributes.key?(:'password')
145
- self.password = attributes[:'password']
104
+ if attributes.key?(:'StartPageNumber')
105
+ self.start_page_number = attributes[:'StartPageNumber']
146
106
  end
147
107
 
148
- if attributes.key?(:'attachmentPassword')
149
- self.attachment_password = attributes[:'attachmentPassword']
108
+ if attributes.key?(:'CountPagesToRender')
109
+ self.count_pages_to_render = attributes[:'CountPagesToRender']
150
110
  end
151
111
 
152
- if attributes.key?(:'extractText')
153
- self.extract_text = attributes[:'extractText']
112
+ if attributes.key?(:'DefaultFontName')
113
+ self.default_font_name = attributes[:'DefaultFontName']
154
114
  end
155
115
 
156
- if attributes.key?(:'renderComments')
157
- self.render_comments = attributes[:'renderComments']
116
+ if attributes.key?(:'DefaultEncoding')
117
+ self.default_encoding = attributes[:'DefaultEncoding']
158
118
  end
159
119
 
160
- if attributes.key?(:'renderHiddenPages')
161
- self.render_hidden_pages = attributes[:'renderHiddenPages']
162
- end
163
-
164
- if attributes.key?(:'transforms')
165
- if (value = attributes[:'transforms']).is_a?(Array)
166
- self.transforms = value
167
- end
120
+ if attributes.key?(:'RenderComments')
121
+ self.render_comments = attributes[:'RenderComments']
168
122
  end
169
123
 
170
- if attributes.key?(:'defaultFontName')
171
- self.default_font_name = attributes[:'defaultFontName']
124
+ if attributes.key?(:'RenderHiddenPages')
125
+ self.render_hidden_pages = attributes[:'RenderHiddenPages']
172
126
  end
173
127
 
174
- if attributes.key?(:'watermark')
175
- self.watermark = attributes[:'watermark']
128
+ if attributes.key?(:'SpreadsheetOptions')
129
+ self.spreadsheet_options = attributes[:'SpreadsheetOptions']
176
130
  end
177
131
 
178
- if attributes.key?(:'cellsOptions')
179
- self.cells_options = attributes[:'cellsOptions']
132
+ if attributes.key?(:'CadOptions')
133
+ self.cad_options = attributes[:'CadOptions']
180
134
  end
181
135
 
182
- if attributes.key?(:'cadOptions')
183
- self.cad_options = attributes[:'cadOptions']
136
+ if attributes.key?(:'EmailOptions')
137
+ self.email_options = attributes[:'EmailOptions']
184
138
  end
185
139
 
186
- if attributes.key?(:'emailOptions')
187
- self.email_options = attributes[:'emailOptions']
140
+ if attributes.key?(:'ProjectManagementOptions')
141
+ self.project_management_options = attributes[:'ProjectManagementOptions']
188
142
  end
189
143
 
190
- if attributes.key?(:'wordsOptions')
191
- self.words_options = attributes[:'wordsOptions']
192
- end
193
-
194
- if attributes.key?(:'pdfOptions')
195
- self.pdf_options = attributes[:'pdfOptions']
196
- end
197
-
198
- if attributes.key?(:'slidesOptions')
199
- self.slides_options = attributes[:'slidesOptions']
200
- end
144
+ end
201
145
 
202
- if attributes.key?(:'projectOptions')
203
- self.project_options = attributes[:'projectOptions']
146
+ # Show invalid properties with the reasons. Usually used together with valid?
147
+ # @return Array for valid properies with the reasons
148
+ def list_invalid_properties
149
+ invalid_properties = []
150
+ if @start_page_number.nil?
151
+ invalid_properties.push("invalid value for 'start_page_number', start_page_number cannot be nil.")
204
152
  end
205
153
 
206
- if attributes.key?(:'outlookOptions')
207
- self.outlook_options = attributes[:'outlookOptions']
154
+ if @count_pages_to_render.nil?
155
+ invalid_properties.push("invalid value for 'count_pages_to_render', count_pages_to_render cannot be nil.")
208
156
  end
209
157
 
210
- if attributes.key?(:'startPageNumber')
211
- self.start_page_number = attributes[:'startPageNumber']
158
+ if @render_comments.nil?
159
+ invalid_properties.push("invalid value for 'render_comments', render_comments cannot be nil.")
212
160
  end
213
161
 
214
- if attributes.key?(:'countPages')
215
- self.count_pages = attributes[:'countPages']
162
+ if @render_hidden_pages.nil?
163
+ invalid_properties.push("invalid value for 'render_hidden_pages', render_hidden_pages cannot be nil.")
216
164
  end
217
165
 
218
- end
219
-
220
- # Show invalid properties with the reasons. Usually used together with valid?
221
- # @return Array for valid properies with the reasons
222
- def list_invalid_properties
223
- invalid_properties = []
224
166
  return invalid_properties
225
167
  end
226
168
 
227
169
  # Check to see if the all the properties in the model are valid
228
170
  # @return true if the model is valid
229
171
  def valid?
172
+ return false if @start_page_number.nil?
173
+ return false if @count_pages_to_render.nil?
174
+ return false if @render_comments.nil?
175
+ return false if @render_hidden_pages.nil?
230
176
  return true
231
177
  end
232
178
 
@@ -235,24 +181,16 @@ module GroupDocsViewerCloud
235
181
  def ==(other)
236
182
  return true if self.equal?(other)
237
183
  self.class == other.class &&
238
- password == other.password &&
239
- attachment_password == other.attachment_password &&
240
- extract_text == other.extract_text &&
184
+ start_page_number == other.start_page_number &&
185
+ count_pages_to_render == other.count_pages_to_render &&
186
+ default_font_name == other.default_font_name &&
187
+ default_encoding == other.default_encoding &&
241
188
  render_comments == other.render_comments &&
242
189
  render_hidden_pages == other.render_hidden_pages &&
243
- transforms == other.transforms &&
244
- default_font_name == other.default_font_name &&
245
- watermark == other.watermark &&
246
- cells_options == other.cells_options &&
190
+ spreadsheet_options == other.spreadsheet_options &&
247
191
  cad_options == other.cad_options &&
248
192
  email_options == other.email_options &&
249
- words_options == other.words_options &&
250
- pdf_options == other.pdf_options &&
251
- slides_options == other.slides_options &&
252
- project_options == other.project_options &&
253
- outlook_options == other.outlook_options &&
254
- start_page_number == other.start_page_number &&
255
- count_pages == other.count_pages
193
+ project_management_options == other.project_management_options
256
194
  end
257
195
 
258
196
  # @see the `==` method
@@ -264,7 +202,13 @@ module GroupDocsViewerCloud
264
202
  # Calculates hash code according to all attributes.
265
203
  # @return [Fixnum] Hash code
266
204
  def hash
267
- [password, attachment_password, extract_text, render_comments, render_hidden_pages, transforms, default_font_name, watermark, cells_options, cad_options, email_options, words_options, pdf_options, slides_options, project_options, outlook_options, start_page_number, count_pages].hash
205
+ [start_page_number, count_pages_to_render, default_font_name, default_encoding, render_comments, render_hidden_pages, spreadsheet_options, cad_options, email_options, project_management_options].hash
206
+ end
207
+
208
+ # Downcases first letter.
209
+ # @return downcased string
210
+ def uncap(str)
211
+ str[0, 1].downcase + str[1..-1]
268
212
  end
269
213
 
270
214
  # Builds the object from hash
@@ -273,14 +217,16 @@ module GroupDocsViewerCloud
273
217
  def build_from_hash(attributes)
274
218
  return nil unless attributes.is_a?(Hash)
275
219
  self.class.swagger_types.each_pair do |key, type|
220
+ pname = uncap(self.class.attribute_map[key]).intern
221
+ value = attributes[pname]
276
222
  if type =~ /\AArray<(.*)>/i
277
223
  # check to ensure the input is an array given that the the attribute
278
- # is documented as an array but the input is not
279
- if attributes[self.class.attribute_map[key]].is_a?(Array)
280
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
224
+ # is documented as an array but the input is not
225
+ if value.is_a?(Array)
226
+ self.send("#{key}=", value.map { |v| _deserialize($1, v) })
281
227
  end
282
- elsif !attributes[self.class.attribute_map[key]].nil?
283
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
228
+ elsif !value.nil?
229
+ self.send("#{key}=", _deserialize(type, value))
284
230
  end
285
231
  # or else data not found in attributes(hash), not an issue as the data can be optional
286
232
  end