aspose_cells_cloud 23.10 → 23.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,40 +1,62 @@
1
1
  =begin
2
2
  --------------------------------------------------------------------------------------------------------------------
3
- Copyright (c) 2022 Aspose.Cells Cloud
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- SOFTWARE.
3
+ <copyright company="Aspose" file="BarcodeResponserb.cs">
4
+ Copyright (c) 2023 Aspose.Cells Cloud
5
+ </copyright>
6
+ <summary>
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+ </summary>
19
25
  --------------------------------------------------------------------------------------------------------------------
20
-
21
26
  =end
22
27
 
28
+
23
29
  require 'date'
24
30
 
25
31
  module AsposeCellsCloud
26
32
 
27
- class ValueType
33
+ class BarcodeResponse
34
+ #Gets or sets barcode data.
35
+ attr_accessor :barcode_value
36
+ #Gets or sets type of the barcode.
37
+ attr_accessor :barcode_type
38
+ #Gets or sets region with barcode.
39
+ attr_accessor :region
40
+ #Gets or sets checksum of barcode.
41
+ attr_accessor :checksum
28
42
 
29
43
  # Attribute mapping from ruby-style variable name to JSON key.
30
44
  def self.attribute_map
31
45
  {
46
+ :'barcode_value' => :'BarcodeValue',
47
+ :'barcode_type' => :'BarcodeType',
48
+ :'region' => :'Region',
49
+ :'checksum' => :'Checksum'
32
50
  }
33
51
  end
34
52
 
35
53
  # Attribute type mapping.
36
54
  def self.swagger_types
37
55
  {
56
+ :'barcode_value' => :'String',
57
+ :'barcode_type' => :'String',
58
+ :'region' => :'Array<Point>',
59
+ :'checksum' => :'String'
38
60
  }
39
61
  end
40
62
 
@@ -46,18 +68,48 @@ module AsposeCellsCloud
46
68
  # convert string to symbol for hash key
47
69
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
70
 
71
+ if attributes.has_key?(:'BarcodeValue')
72
+ self.barcode_value = attributes[:'BarcodeValue']
73
+ end
74
+ if attributes.has_key?(:'BarcodeType')
75
+ self.barcode_type = attributes[:'BarcodeType']
76
+ end
77
+ if attributes.has_key?(:'Region')
78
+ self.region = attributes[:'Region']
79
+ end
80
+ if attributes.has_key?(:'Checksum')
81
+ self.checksum = attributes[:'Checksum']
82
+ end
83
+
49
84
  end
50
85
 
51
86
  # Show invalid properties with the reasons. Usually used together with valid?
52
87
  # @return Array for valid properies with the reasons
53
88
  def list_invalid_properties
54
89
  invalid_properties = Array.new
90
+ if @barcode_value.nil?
91
+ invalid_properties.push("invalid value for 'barcode_value', barcode_value cannot be nil.")
92
+ end
93
+ if @barcode_type.nil?
94
+ invalid_properties.push("invalid value for 'barcode_type', barcode_type cannot be nil.")
95
+ end
96
+ if @region.nil?
97
+ invalid_properties.push("invalid value for 'region', region cannot be nil.")
98
+ end
99
+ if @checksum.nil?
100
+ invalid_properties.push("invalid value for 'checksum', checksum cannot be nil.")
101
+ end
102
+
55
103
  return invalid_properties
56
104
  end
57
105
 
58
106
  # Check to see if the all the properties in the model are valid
59
107
  # @return true if the model is valid
60
108
  def valid?
109
+ return false if @barcode_value.nil?
110
+ return false if @barcode_type.nil?
111
+ return false if @region.nil?
112
+ return false if @checksum.nil?
61
113
  return true
62
114
  end
63
115
 
@@ -65,7 +117,12 @@ module AsposeCellsCloud
65
117
  # @param [Object] Object to be compared
66
118
  def ==(o)
67
119
  return true if self.equal?(o)
68
- self.class == o.class
120
+ self.class == o.class &&
121
+ barcode_value == o.barcode_value &&
122
+ barcode_type == o.barcode_type &&
123
+ region == o.region &&
124
+ checksum == o.checksum
125
+ std_dev == o.std_dev
69
126
  end
70
127
 
71
128
  # @see the `==` method
@@ -77,7 +134,7 @@ module AsposeCellsCloud
77
134
  # Calculates hash code according to all attributes.
78
135
  # @return [Fixnum] Hash code
79
136
  def hash
80
- [].hash
137
+ [ barcode_value , barcode_type , region , checksum ].hash
81
138
  end
82
139
 
83
140
  # Builds the object from hash
@@ -1,6 +1,6 @@
1
1
  =begin
2
2
  --------------------------------------------------------------------------------------------------------------------
3
- <copyright company="Aspose" file="TotalRequestrb.cs">
3
+ <copyright company="Aspose" file="BarcodeResponseListrb.cs">
4
4
  Copyright (c) 2023 Aspose.Cells Cloud
5
5
  </copyright>
6
6
  <summary>
@@ -30,7 +30,7 @@ require 'date'
30
30
 
31
31
  module AsposeCellsCloud
32
32
 
33
- class TotalRequest
33
+ class BarcodeResponseList
34
34
 
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
@@ -1,60 +1,58 @@
1
1
  =begin
2
2
  --------------------------------------------------------------------------------------------------------------------
3
- Copyright (c) 2022 Aspose.Cells Cloud
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- SOFTWARE.
3
+ <copyright company="Aspose" file="ImportJsonRequestrb.cs">
4
+ Copyright (c) 2023 Aspose.Cells Cloud
5
+ </copyright>
6
+ <summary>
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+ </summary>
19
25
  --------------------------------------------------------------------------------------------------------------------
20
-
21
26
  =end
22
27
 
28
+
23
29
  require 'date'
24
30
 
25
31
  module AsposeCellsCloud
26
- # Error
27
- class CellsError
28
- # Code
29
- attr_accessor :code
30
-
31
- # Message
32
- attr_accessor :message
33
-
34
- # Description
35
- attr_accessor :description
36
-
37
- # Inner Error
38
- attr_accessor :inner_error
39
32
 
33
+ class ImportJsonRequest
34
+ #XML file source
35
+ attr_accessor :json_file_source
36
+ #Import position description.
37
+ attr_accessor :import_position
38
+ #Base64String default is null
39
+ attr_accessor :json_content
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'code' => :'Code',
45
- :'message' => :'Message',
46
- :'description' => :'Description',
47
- :'inner_error' => :'InnerError'
44
+ :'json_file_source' => :'JsonFileSource',
45
+ :'import_position' => :'ImportPosition',
46
+ :'json_content' => :'JsonContent'
48
47
  }
49
48
  end
50
49
 
51
50
  # Attribute type mapping.
52
51
  def self.swagger_types
53
52
  {
54
- :'code' => :'String',
55
- :'message' => :'String',
56
- :'description' => :'String',
57
- :'inner_error' => :'ErrorDetails'
53
+ :'json_file_source' => :'FileSource',
54
+ :'import_position' => :'ImportPosition',
55
+ :'json_content' => :'String'
58
56
  }
59
57
  end
60
58
 
@@ -66,20 +64,14 @@ module AsposeCellsCloud
66
64
  # convert string to symbol for hash key
67
65
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
68
66
 
69
- if attributes.has_key?(:'Code')
70
- self.code = attributes[:'Code']
67
+ if attributes.has_key?(:'JsonFileSource')
68
+ self.json_file_source = attributes[:'JsonFileSource']
71
69
  end
72
-
73
- if attributes.has_key?(:'Message')
74
- self.message = attributes[:'Message']
70
+ if attributes.has_key?(:'ImportPosition')
71
+ self.import_position = attributes[:'ImportPosition']
75
72
  end
76
-
77
- if attributes.has_key?(:'Description')
78
- self.description = attributes[:'Description']
79
- end
80
-
81
- if attributes.has_key?(:'InnerError')
82
- self.inner_error = attributes[:'InnerError']
73
+ if attributes.has_key?(:'JsonContent')
74
+ self.json_content = attributes[:'JsonContent']
83
75
  end
84
76
 
85
77
  end
@@ -88,12 +80,25 @@ module AsposeCellsCloud
88
80
  # @return Array for valid properies with the reasons
89
81
  def list_invalid_properties
90
82
  invalid_properties = Array.new
83
+ if @json_file_source.nil?
84
+ invalid_properties.push("invalid value for 'json_file_source', json_file_source cannot be nil.")
85
+ end
86
+ if @import_position.nil?
87
+ invalid_properties.push("invalid value for 'import_position', import_position cannot be nil.")
88
+ end
89
+ if @json_content.nil?
90
+ invalid_properties.push("invalid value for 'json_content', json_content cannot be nil.")
91
+ end
92
+
91
93
  return invalid_properties
92
94
  end
93
95
 
94
96
  # Check to see if the all the properties in the model are valid
95
97
  # @return true if the model is valid
96
98
  def valid?
99
+ return false if @json_file_source.nil?
100
+ return false if @import_position.nil?
101
+ return false if @json_content.nil?
97
102
  return true
98
103
  end
99
104
 
@@ -102,10 +107,10 @@ module AsposeCellsCloud
102
107
  def ==(o)
103
108
  return true if self.equal?(o)
104
109
  self.class == o.class &&
105
- code == o.code &&
106
- message == o.message &&
107
- description == o.description &&
108
- inner_error == o.inner_error
110
+ json_file_source == o.json_file_source &&
111
+ import_position == o.import_position &&
112
+ json_content == o.json_content
113
+ std_dev == o.std_dev
109
114
  end
110
115
 
111
116
  # @see the `==` method
@@ -117,7 +122,7 @@ module AsposeCellsCloud
117
122
  # Calculates hash code according to all attributes.
118
123
  # @return [Fixnum] Hash code
119
124
  def hash
120
- [code, message, description, inner_error].hash
125
+ [ json_file_source , import_position , json_content ].hash
121
126
  end
122
127
 
123
128
  # Builds the object from hash
@@ -35,12 +35,15 @@ module AsposeCellsCloud
35
35
  attr_accessor :xml_file_source
36
36
  #Import position description.
37
37
  attr_accessor :import_position
38
+ #Base64String default is null
39
+ attr_accessor :xml_content
38
40
 
39
41
  # Attribute mapping from ruby-style variable name to JSON key.
40
42
  def self.attribute_map
41
43
  {
42
44
  :'xml_file_source' => :'XMLFileSource',
43
- :'import_position' => :'ImportPosition'
45
+ :'import_position' => :'ImportPosition',
46
+ :'xml_content' => :'XMLContent'
44
47
  }
45
48
  end
46
49
 
@@ -48,7 +51,8 @@ module AsposeCellsCloud
48
51
  def self.swagger_types
49
52
  {
50
53
  :'xml_file_source' => :'FileSource',
51
- :'import_position' => :'ImportPosition'
54
+ :'import_position' => :'ImportPosition',
55
+ :'xml_content' => :'String'
52
56
  }
53
57
  end
54
58
 
@@ -66,6 +70,9 @@ module AsposeCellsCloud
66
70
  if attributes.has_key?(:'ImportPosition')
67
71
  self.import_position = attributes[:'ImportPosition']
68
72
  end
73
+ if attributes.has_key?(:'XMLContent')
74
+ self.xml_content = attributes[:'XMLContent']
75
+ end
69
76
 
70
77
  end
71
78
 
@@ -79,6 +86,9 @@ module AsposeCellsCloud
79
86
  if @import_position.nil?
80
87
  invalid_properties.push("invalid value for 'import_position', import_position cannot be nil.")
81
88
  end
89
+ if @xml_content.nil?
90
+ invalid_properties.push("invalid value for 'xml_content', xml_content cannot be nil.")
91
+ end
82
92
 
83
93
  return invalid_properties
84
94
  end
@@ -88,6 +98,7 @@ module AsposeCellsCloud
88
98
  def valid?
89
99
  return false if @xml_file_source.nil?
90
100
  return false if @import_position.nil?
101
+ return false if @xml_content.nil?
91
102
  return true
92
103
  end
93
104
 
@@ -97,7 +108,8 @@ module AsposeCellsCloud
97
108
  return true if self.equal?(o)
98
109
  self.class == o.class &&
99
110
  xml_file_source == o.xml_file_source &&
100
- import_position == o.import_position
111
+ import_position == o.import_position &&
112
+ xml_content == o.xml_content
101
113
  std_dev == o.std_dev
102
114
  end
103
115
 
@@ -110,7 +122,7 @@ module AsposeCellsCloud
110
122
  # Calculates hash code according to all attributes.
111
123
  # @return [Fixnum] Hash code
112
124
  def hash
113
- [ xml_file_source , import_position ].hash
125
+ [ xml_file_source , import_position , xml_content ].hash
114
126
  end
115
127
 
116
128
  # Builds the object from hash