aspose_html_cloud 20.8.0 → 22.10.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,140 @@
1
+ # -*- coding: utf-8 -*-
2
+ =begin
3
+ --------------------------------------------------------------------------------------------------------------------
4
+ <copyright company="Aspose" file="conversion_result.rb">
5
+ </copyright>
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
+ <summary>
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
25
+ </summary>
26
+ --------------------------------------------------------------------------------------------------------------------
27
+ =end
28
+
29
+ require_relative 'base_model'
30
+
31
+ module AsposeHtml
32
+ class ConversionResult < BaseModel
33
+ attr_accessor :code
34
+
35
+ attr_accessor :id
36
+
37
+ attr_accessor :status
38
+
39
+ attr_accessor :description
40
+
41
+ attr_accessor :links
42
+
43
+ attr_accessor :file
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'code' => :'code',
49
+ :'id' => :'id',
50
+ :'status' => :'status',
51
+ :'description' => :'description',
52
+ :'links' => :'links',
53
+ :'file' => :'file'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.model_types
59
+ {
60
+ :'code' => :'Integer',
61
+ :'id' => :'String',
62
+ :'status' => :'String',
63
+ :'description' => :'String',
64
+ :'links' => :'Object',
65
+ :'file' => :'String'
66
+ }
67
+ end
68
+
69
+ # Initializes the object
70
+ # @param [Hash] attributes Model attributes in the form of hash
71
+ def initialize(attributes = {})
72
+ return unless attributes.is_a?(Hash)
73
+
74
+ # convert string to symbol for hash key
75
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
76
+
77
+ if attributes.has_key?(:'code')
78
+ self.code = attributes[:'code']
79
+ end
80
+
81
+ if attributes.has_key?(:'id')
82
+ self.id = attributes[:'id']
83
+ end
84
+
85
+ if attributes.has_key?(:'status')
86
+ self.status = attributes[:'status']
87
+ end
88
+
89
+ if attributes.has_key?(:'description')
90
+ self.description = attributes[:'description']
91
+ end
92
+
93
+ if attributes.has_key?(:'links')
94
+ self.links = attributes[:'links']
95
+ end
96
+
97
+ if attributes.has_key?(:'file')
98
+ self.file = attributes[:'file']
99
+ end
100
+ end
101
+
102
+ # Show invalid properties with the reasons. Usually used together with valid?
103
+ # @return Array for valid properties with the reasons
104
+ def list_invalid_properties
105
+ invalid_properties = Array.new
106
+ if @code.nil?
107
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
108
+ end
109
+
110
+ invalid_properties
111
+ end
112
+
113
+ # Check to see if the all the properties in the model are valid
114
+ # @return true if the model is valid
115
+ def valid?
116
+ return false if @code.nil?
117
+ true
118
+ end
119
+
120
+ # Checks equality by comparing each attribute.
121
+ # @param [Object] Object to be compared
122
+ def ==(o)
123
+ return true if self.equal?(o)
124
+ self.class == o.class &&
125
+ code == o.code &&
126
+ id == o.id &&
127
+ status == o.status &&
128
+ description == o.description &&
129
+ links == o.links &&
130
+ file == o.file
131
+ end
132
+
133
+ # Calculates hash code according to all attributes.
134
+ # @return [Fixnum] Hash code
135
+ def hash
136
+ [code, id, status, description, links, file].hash
137
+ end
138
+
139
+ end
140
+ end
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="disc_usage.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="error.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="error_details.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="file_version.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="file_versions.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="files_list.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="files_upload_result.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="object_exist.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="storage_exist.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="storage_file.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="version.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="aspose_html_cloud.rb">
5
5
  </copyright>
6
- Copyright (c) 2020 Aspose.HTML for Cloud
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -49,6 +49,7 @@ require 'aspose_html_cloud/models/files_upload_result'
49
49
  require 'aspose_html_cloud/models/object_exist'
50
50
  require 'aspose_html_cloud/models/storage_exist'
51
51
  require 'aspose_html_cloud/models/storage_file'
52
+ require 'aspose_html_cloud/models/conversion_result'
52
53
 
53
54
  module AsposeHtml
54
55
  class << self