groupdocs_annotation_cloud 19.5 → 20.10

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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_annotation_cloud.rb +1 -2
  3. data/lib/groupdocs_annotation_cloud/api/annotate_api.rb +5 -104
  4. data/lib/groupdocs_annotation_cloud/api/file_api.rb +7 -7
  5. data/lib/groupdocs_annotation_cloud/api/folder_api.rb +7 -7
  6. data/lib/groupdocs_annotation_cloud/api/info_api.rb +2 -2
  7. data/lib/groupdocs_annotation_cloud/api/preview_api.rb +37 -37
  8. data/lib/groupdocs_annotation_cloud/api/storage_api.rb +5 -5
  9. data/lib/groupdocs_annotation_cloud/api_client.rb +1 -1
  10. data/lib/groupdocs_annotation_cloud/api_error.rb +1 -1
  11. data/lib/groupdocs_annotation_cloud/configuration.rb +1 -1
  12. data/lib/groupdocs_annotation_cloud/models/annotation_api_link.rb +1 -1
  13. data/lib/groupdocs_annotation_cloud/models/annotation_info.rb +147 -64
  14. data/lib/groupdocs_annotation_cloud/models/annotation_reply_info.rb +41 -26
  15. data/lib/groupdocs_annotation_cloud/models/disc_usage.rb +1 -1
  16. data/lib/groupdocs_annotation_cloud/models/document_info.rb +1 -1
  17. data/lib/groupdocs_annotation_cloud/models/error.rb +1 -1
  18. data/lib/groupdocs_annotation_cloud/models/error_details.rb +1 -1
  19. data/lib/groupdocs_annotation_cloud/models/file_version.rb +1 -1
  20. data/lib/groupdocs_annotation_cloud/models/file_versions.rb +1 -1
  21. data/lib/groupdocs_annotation_cloud/models/files_list.rb +1 -1
  22. data/lib/groupdocs_annotation_cloud/models/files_upload_result.rb +1 -1
  23. data/lib/groupdocs_annotation_cloud/models/format.rb +1 -1
  24. data/lib/groupdocs_annotation_cloud/models/formats_result.rb +1 -1
  25. data/lib/groupdocs_annotation_cloud/models/link.rb +1 -1
  26. data/lib/groupdocs_annotation_cloud/models/link_element.rb +1 -1
  27. data/lib/groupdocs_annotation_cloud/models/object_exist.rb +1 -1
  28. data/lib/groupdocs_annotation_cloud/models/page_image.rb +2 -2
  29. data/lib/groupdocs_annotation_cloud/models/page_images.rb +1 -1
  30. data/lib/groupdocs_annotation_cloud/models/page_info.rb +5 -32
  31. data/lib/groupdocs_annotation_cloud/models/point.rb +1 -1
  32. data/lib/groupdocs_annotation_cloud/models/rectangle.rb +1 -1
  33. data/lib/groupdocs_annotation_cloud/models/storage_exist.rb +1 -1
  34. data/lib/groupdocs_annotation_cloud/models/storage_file.rb +1 -1
  35. data/lib/groupdocs_annotation_cloud/version.rb +2 -2
  36. metadata +2 -3
  37. data/lib/groupdocs_annotation_cloud/models/row_info.rb +0 -298
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="annotation_reply_info.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -32,10 +32,10 @@ module GroupDocsAnnotationCloud
32
32
  class AnnotationReplyInfo
33
33
 
34
34
  # Gets or sets the unique identifier
35
- attr_accessor :guid
35
+ attr_accessor :id
36
36
 
37
37
  # Gets or sets the user's unique identifier
38
- attr_accessor :user_guid
38
+ attr_accessor :user_id
39
39
 
40
40
  # Gets or sets the user's name
41
41
  attr_accessor :user_name
@@ -44,37 +44,37 @@ module GroupDocsAnnotationCloud
44
44
  attr_accessor :user_email
45
45
 
46
46
  # Gets or sets the message
47
- attr_accessor :message
47
+ attr_accessor :comment
48
48
 
49
49
  # Gets or sets the reply time
50
50
  attr_accessor :replied_on
51
51
 
52
52
  # Gets or sets the parent reply unique identifier
53
- attr_accessor :parent_reply_guid
53
+ attr_accessor :parent_reply_id
54
54
 
55
55
  # Attribute mapping from ruby-style variable name to JSON key.
56
56
  def self.attribute_map
57
57
  {
58
- :'guid' => :'Guid',
59
- :'user_guid' => :'UserGuid',
58
+ :'id' => :'Id',
59
+ :'user_id' => :'UserId',
60
60
  :'user_name' => :'UserName',
61
61
  :'user_email' => :'UserEmail',
62
- :'message' => :'Message',
62
+ :'comment' => :'Comment',
63
63
  :'replied_on' => :'RepliedOn',
64
- :'parent_reply_guid' => :'ParentReplyGuid'
64
+ :'parent_reply_id' => :'ParentReplyId'
65
65
  }
66
66
  end
67
67
 
68
68
  # Attribute type mapping.
69
69
  def self.swagger_types
70
70
  {
71
- :'guid' => :'String',
72
- :'user_guid' => :'String',
71
+ :'id' => :'Integer',
72
+ :'user_id' => :'Integer',
73
73
  :'user_name' => :'String',
74
74
  :'user_email' => :'String',
75
- :'message' => :'String',
75
+ :'comment' => :'String',
76
76
  :'replied_on' => :'DateTime',
77
- :'parent_reply_guid' => :'String'
77
+ :'parent_reply_id' => :'Integer'
78
78
  }
79
79
  end
80
80
 
@@ -86,12 +86,12 @@ module GroupDocsAnnotationCloud
86
86
  # convert string to symbol for hash key
87
87
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
88
88
 
89
- if attributes.key?(:'Guid')
90
- self.guid = attributes[:'Guid']
89
+ if attributes.key?(:'Id')
90
+ self.id = attributes[:'Id']
91
91
  end
92
92
 
93
- if attributes.key?(:'UserGuid')
94
- self.user_guid = attributes[:'UserGuid']
93
+ if attributes.key?(:'UserId')
94
+ self.user_id = attributes[:'UserId']
95
95
  end
96
96
 
97
97
  if attributes.key?(:'UserName')
@@ -102,16 +102,16 @@ module GroupDocsAnnotationCloud
102
102
  self.user_email = attributes[:'UserEmail']
103
103
  end
104
104
 
105
- if attributes.key?(:'Message')
106
- self.message = attributes[:'Message']
105
+ if attributes.key?(:'Comment')
106
+ self.comment = attributes[:'Comment']
107
107
  end
108
108
 
109
109
  if attributes.key?(:'RepliedOn')
110
110
  self.replied_on = attributes[:'RepliedOn']
111
111
  end
112
112
 
113
- if attributes.key?(:'ParentReplyGuid')
114
- self.parent_reply_guid = attributes[:'ParentReplyGuid']
113
+ if attributes.key?(:'ParentReplyId')
114
+ self.parent_reply_id = attributes[:'ParentReplyId']
115
115
  end
116
116
 
117
117
  end
@@ -120,17 +120,32 @@ module GroupDocsAnnotationCloud
120
120
  # @return Array for valid properies with the reasons
121
121
  def list_invalid_properties
122
122
  invalid_properties = []
123
+ if @id.nil?
124
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
125
+ end
126
+
127
+ if @user_id.nil?
128
+ invalid_properties.push("invalid value for 'user_id', user_id cannot be nil.")
129
+ end
130
+
123
131
  if @replied_on.nil?
124
132
  invalid_properties.push("invalid value for 'replied_on', replied_on cannot be nil.")
125
133
  end
126
134
 
135
+ if @parent_reply_id.nil?
136
+ invalid_properties.push("invalid value for 'parent_reply_id', parent_reply_id cannot be nil.")
137
+ end
138
+
127
139
  return invalid_properties
128
140
  end
129
141
 
130
142
  # Check to see if the all the properties in the model are valid
131
143
  # @return true if the model is valid
132
144
  def valid?
145
+ return false if @id.nil?
146
+ return false if @user_id.nil?
133
147
  return false if @replied_on.nil?
148
+ return false if @parent_reply_id.nil?
134
149
  return true
135
150
  end
136
151
 
@@ -139,13 +154,13 @@ module GroupDocsAnnotationCloud
139
154
  def ==(other)
140
155
  return true if self.equal?(other)
141
156
  self.class == other.class &&
142
- guid == other.guid &&
143
- user_guid == other.user_guid &&
157
+ id == other.id &&
158
+ user_id == other.user_id &&
144
159
  user_name == other.user_name &&
145
160
  user_email == other.user_email &&
146
- message == other.message &&
161
+ comment == other.comment &&
147
162
  replied_on == other.replied_on &&
148
- parent_reply_guid == other.parent_reply_guid
163
+ parent_reply_id == other.parent_reply_id
149
164
  end
150
165
 
151
166
  # @see the `==` method
@@ -157,7 +172,7 @@ module GroupDocsAnnotationCloud
157
172
  # Calculates hash code according to all attributes.
158
173
  # @return [Fixnum] Hash code
159
174
  def hash
160
- [guid, user_guid, user_name, user_email, message, replied_on, parent_reply_guid].hash
175
+ [id, user_id, user_name, user_email, comment, replied_on, parent_reply_id].hash
161
176
  end
162
177
 
163
178
  # Downcases first letter.
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="disc_usage.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="document_info.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="error.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="error_details.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="file_version.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="file_versions.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="files_list.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="files_upload_result.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="format.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="formats_result.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="link.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="link_element.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="object_exist.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="page_image.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 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,7 +28,7 @@
28
28
  require 'date'
29
29
 
30
30
  module GroupDocsAnnotationCloud
31
- # The document page image representatoin
31
+ # The document page image representation
32
32
  class PageImage
33
33
 
34
34
  # Link to the document
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="page_images.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="page_info.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -40,20 +40,12 @@ module GroupDocsAnnotationCloud
40
40
  # Gets or sets the page height
41
41
  attr_accessor :height
42
42
 
43
- # Indicates whether page is visible or not
44
- attr_accessor :is_visible
45
-
46
- # Gets or sets the list of text rows
47
- attr_accessor :rows
48
-
49
43
  # Attribute mapping from ruby-style variable name to JSON key.
50
44
  def self.attribute_map
51
45
  {
52
46
  :'number' => :'Number',
53
47
  :'width' => :'Width',
54
- :'height' => :'Height',
55
- :'is_visible' => :'IsVisible',
56
- :'rows' => :'Rows'
48
+ :'height' => :'Height'
57
49
  }
58
50
  end
59
51
 
@@ -62,9 +54,7 @@ module GroupDocsAnnotationCloud
62
54
  {
63
55
  :'number' => :'Integer',
64
56
  :'width' => :'Integer',
65
- :'height' => :'Integer',
66
- :'is_visible' => :'BOOLEAN',
67
- :'rows' => :'Array<RowInfo>'
57
+ :'height' => :'Integer'
68
58
  }
69
59
  end
70
60
 
@@ -88,16 +78,6 @@ module GroupDocsAnnotationCloud
88
78
  self.height = attributes[:'Height']
89
79
  end
90
80
 
91
- if attributes.key?(:'IsVisible')
92
- self.is_visible = attributes[:'IsVisible']
93
- end
94
-
95
- if attributes.key?(:'Rows')
96
- if (value = attributes[:'Rows']).is_a?(Array)
97
- self.rows = value
98
- end
99
- end
100
-
101
81
  end
102
82
 
103
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -116,10 +96,6 @@ module GroupDocsAnnotationCloud
116
96
  invalid_properties.push("invalid value for 'height', height cannot be nil.")
117
97
  end
118
98
 
119
- if @is_visible.nil?
120
- invalid_properties.push("invalid value for 'is_visible', is_visible cannot be nil.")
121
- end
122
-
123
99
  return invalid_properties
124
100
  end
125
101
 
@@ -129,7 +105,6 @@ module GroupDocsAnnotationCloud
129
105
  return false if @number.nil?
130
106
  return false if @width.nil?
131
107
  return false if @height.nil?
132
- return false if @is_visible.nil?
133
108
  return true
134
109
  end
135
110
 
@@ -140,9 +115,7 @@ module GroupDocsAnnotationCloud
140
115
  self.class == other.class &&
141
116
  number == other.number &&
142
117
  width == other.width &&
143
- height == other.height &&
144
- is_visible == other.is_visible &&
145
- rows == other.rows
118
+ height == other.height
146
119
  end
147
120
 
148
121
  # @see the `==` method
@@ -154,7 +127,7 @@ module GroupDocsAnnotationCloud
154
127
  # Calculates hash code according to all attributes.
155
128
  # @return [Fixnum] Hash code
156
129
  def hash
157
- [number, width, height, is_visible, rows].hash
130
+ [number, width, height].hash
158
131
  end
159
132
 
160
133
  # Downcases first letter.
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="point.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="rectangle.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="storage_exist.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="storage_file.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy