aspose_slides_cloud 24.7.0 → 24.8.0

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.
@@ -0,0 +1,121 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
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
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ class OperationError < BaseObject
27
+ attr_accessor :code
28
+
29
+ attr_accessor :description
30
+
31
+ attr_accessor :http_status_code
32
+
33
+ attr_accessor :message
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'code' => :'Code',
39
+ :'description' => :'Description',
40
+ :'http_status_code' => :'HttpStatusCode',
41
+ :'message' => :'Message',
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.swagger_types
47
+ {
48
+ :'code' => :'String',
49
+ :'description' => :'String',
50
+ :'http_status_code' => :'Integer',
51
+ :'message' => :'String',
52
+ }
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ return unless attributes.is_a?(Hash)
59
+
60
+ # convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
+
63
+ if attributes.has_key?(:'Code')
64
+ self.code = attributes[:'Code']
65
+ end
66
+
67
+ if attributes.has_key?(:'Description')
68
+ self.description = attributes[:'Description']
69
+ end
70
+
71
+ if attributes.has_key?(:'HttpStatusCode')
72
+ self.http_status_code = attributes[:'HttpStatusCode']
73
+ end
74
+
75
+ if attributes.has_key?(:'Message')
76
+ self.message = attributes[:'Message']
77
+ end
78
+ end
79
+
80
+ # Show invalid properties with the reasons. Usually used together with valid?
81
+ # @return Array for valid properties with the reasons
82
+ def list_invalid_properties
83
+ invalid_properties = Array.new
84
+ if @http_status_code.nil?
85
+ invalid_properties.push('invalid value for "http_status_code", http_status_code cannot be nil.')
86
+ end
87
+
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ return false if @http_status_code.nil?
95
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ code == o.code &&
104
+ description == o.description &&
105
+ http_status_code == o.http_status_code &&
106
+ message == o.message
107
+ end
108
+
109
+ # @see the `==` method
110
+ # @param [Object] Object to be compared
111
+ def eql?(o)
112
+ self == o
113
+ end
114
+
115
+ # Calculates hash code according to all attributes.
116
+ # @return [Fixnum] Hash code
117
+ def hash
118
+ [code, description, http_status_code, message].hash
119
+ end
120
+ end
121
+ end
@@ -107,10 +107,6 @@ module AsposeSlidesCloud
107
107
  invalid_properties.push('invalid value for "color_style", color_style cannot be nil.')
108
108
  end
109
109
 
110
- if @is_reversed.nil?
111
- invalid_properties.push('invalid value for "is_reversed", is_reversed cannot be nil.')
112
- end
113
-
114
110
  invalid_properties
115
111
  end
116
112
 
@@ -127,7 +123,6 @@ module AsposeSlidesCloud
127
123
  return false if @color_style.nil?
128
124
  color_style_validator = EnumAttributeValidator.new('String', ['Dark1Outline', 'Dark2Outline', 'DarkFill', 'ColorfulAccentColors', 'ColorfulAccentColors2to3', 'ColorfulAccentColors3to4', 'ColorfulAccentColors4to5', 'ColorfulAccentColors5to6', 'ColoredOutlineAccent1', 'ColoredFillAccent1', 'GradientRangeAccent1', 'GradientLoopAccent1', 'TransparentGradientRangeAccent1', 'ColoredOutlineAccent2', 'ColoredFillAccent2', 'GradientRangeAccent2', 'GradientLoopAccent2', 'TransparentGradientRangeAccent2', 'ColoredOutlineAccent3', 'ColoredFillAccent3', 'GradientRangeAccent3', 'GradientLoopAccent3', 'TransparentGradientRangeAccent3', 'ColoredOutlineAccent4', 'ColoredFillAccent4', 'GradientRangeAccent4', 'GradientLoopAccent4', 'TransparentGradientRangeAccent4', 'ColoredOutlineAccent5', 'ColoredFillAccent5', 'GradientRangeAccent5', 'GradientLoopAccent5', 'TransparentGradientRangeAccent5', 'ColoredOutlineAccent6', 'ColoredFillAccent6', 'GradientRangeAccent6', 'GradientLoopAccent6', 'TransparentGradientRangeAccent6'])
129
125
  return false unless color_style_validator.valid?(@color_style)
130
- return false if @is_reversed.nil?
131
126
  true
132
127
  end
133
128
 
@@ -106,10 +106,6 @@ module AsposeSlidesCloud
106
106
  # @return Array for valid properties with the reasons
107
107
  def list_invalid_properties
108
108
  invalid_properties = Array.new
109
- if @is_assistant.nil?
110
- invalid_properties.push('invalid value for "is_assistant", is_assistant cannot be nil.')
111
- end
112
-
113
109
  if @org_chart_layout.nil?
114
110
  invalid_properties.push('invalid value for "org_chart_layout", org_chart_layout cannot be nil.')
115
111
  end
@@ -120,7 +116,6 @@ module AsposeSlidesCloud
120
116
  # Check to see if the all the properties in the model are valid
121
117
  # @return true if the model is valid
122
118
  def valid?
123
- return false if @is_assistant.nil?
124
119
  return false if @org_chart_layout.nil?
125
120
  org_chart_layout_validator = EnumAttributeValidator.new('String', ['Initial', 'Standart', 'BothHanging', 'LeftHanging', 'RightHanging'])
126
121
  return false unless org_chart_layout_validator.valid?(@org_chart_layout)
@@ -384,6 +384,7 @@ module AsposeSlidesCloud
384
384
  :'OneValueChartDataPoint' => { :'Type' => 'OneValue', },
385
385
  :'OneValueSeries' => { :'DataPointType' => 'OneValue', },
386
386
  :'Operation' => { },
387
+ :'OperationError' => { },
387
388
  :'OperationProgress' => { },
388
389
  :'OrderedMergeRequest' => { },
389
390
  :'OuterShadowEffect' => { },
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeSlidesCloud
24
- VERSION = '24.7.0'
24
+ VERSION = '24.8.0'
25
25
  end
@@ -179,6 +179,7 @@ require 'aspose_slides_cloud/models/ole_object_frame'
179
179
  require 'aspose_slides_cloud/models/one_value_chart_data_point'
180
180
  require 'aspose_slides_cloud/models/one_value_series'
181
181
  require 'aspose_slides_cloud/models/operation'
182
+ require 'aspose_slides_cloud/models/operation_error'
182
183
  require 'aspose_slides_cloud/models/operation_progress'
183
184
  require 'aspose_slides_cloud/models/ordered_merge_request'
184
185
  require 'aspose_slides_cloud/models/outer_shadow_effect'