late-sdk 0.0.103 → 0.0.104

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 (131) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -52
  3. data/lib/late-sdk/version.rb +1 -1
  4. data/lib/late-sdk.rb +0 -41
  5. data/openapi.yaml +1 -731
  6. data/zernio-sdk-0.0.104.gem +0 -0
  7. metadata +2 -166
  8. data/docs/CaptionResponse.md +0 -18
  9. data/docs/CheckInstagramHashtags200Response.md +0 -22
  10. data/docs/CheckInstagramHashtags200ResponseResultsInner.md +0 -24
  11. data/docs/CheckInstagramHashtags200ResponseSummary.md +0 -22
  12. data/docs/CheckInstagramHashtagsRequest.md +0 -18
  13. data/docs/DownloadBlueskyMedia200Response.md +0 -26
  14. data/docs/DownloadFacebookVideo200Response.md +0 -24
  15. data/docs/DownloadFormat.md +0 -26
  16. data/docs/DownloadInstagramMedia200Response.md +0 -22
  17. data/docs/DownloadResponse.md +0 -26
  18. data/docs/DownloadTikTokVideo200Response.md +0 -24
  19. data/docs/DownloadTikTokVideo200ResponseFormatsInner.md +0 -22
  20. data/docs/DownloadYouTubeVideo200Response.md +0 -24
  21. data/docs/DownloadYouTubeVideo200ResponseFormatsInner.md +0 -28
  22. data/docs/GetYouTubeTranscript200Response.md +0 -26
  23. data/docs/GetYouTubeTranscript200ResponseSegmentsInner.md +0 -22
  24. data/docs/HashtagCheckResponse.md +0 -18
  25. data/docs/HashtagInfo.md +0 -22
  26. data/docs/ToolsApi.md +0 -663
  27. data/docs/TranscriptResponse.md +0 -22
  28. data/docs/TranscriptSegment.md +0 -22
  29. data/docs/ValidateApi.md +0 -287
  30. data/docs/ValidateMedia200Response.md +0 -32
  31. data/docs/ValidateMedia200ResponsePlatformLimitsValue.md +0 -22
  32. data/docs/ValidateMediaRequest.md +0 -18
  33. data/docs/ValidatePost200Response.md +0 -49
  34. data/docs/ValidatePost200ResponseOneOf.md +0 -22
  35. data/docs/ValidatePost200ResponseOneOf1.md +0 -22
  36. data/docs/ValidatePost200ResponseOneOf1ErrorsInner.md +0 -20
  37. data/docs/ValidatePost200ResponseOneOfWarningsInner.md +0 -20
  38. data/docs/ValidatePostLength200Response.md +0 -20
  39. data/docs/ValidatePostLength200ResponsePlatformsValue.md +0 -22
  40. data/docs/ValidatePostLengthRequest.md +0 -18
  41. data/docs/ValidatePostRequest.md +0 -22
  42. data/docs/ValidatePostRequestMediaItemsInner.md +0 -20
  43. data/docs/ValidatePostRequestPlatformsInner.md +0 -24
  44. data/docs/ValidatePostRequestPlatformsInnerCustomMediaInner.md +0 -20
  45. data/docs/ValidateSubreddit200Response.md +0 -49
  46. data/docs/ValidateSubreddit200ResponseOneOf.md +0 -20
  47. data/docs/ValidateSubreddit200ResponseOneOf1.md +0 -20
  48. data/docs/ValidateSubreddit200ResponseOneOfSubreddit.md +0 -32
  49. data/lib/late-sdk/api/tools_api.rb +0 -649
  50. data/lib/late-sdk/api/validate_api.rb +0 -290
  51. data/lib/late-sdk/models/caption_response.rb +0 -147
  52. data/lib/late-sdk/models/check_instagram_hashtags200_response.rb +0 -167
  53. data/lib/late-sdk/models/check_instagram_hashtags200_response_results_inner.rb +0 -208
  54. data/lib/late-sdk/models/check_instagram_hashtags200_response_summary.rb +0 -165
  55. data/lib/late-sdk/models/check_instagram_hashtags_request.rb +0 -175
  56. data/lib/late-sdk/models/download_bluesky_media200_response.rb +0 -183
  57. data/lib/late-sdk/models/download_facebook_video200_response.rb +0 -174
  58. data/lib/late-sdk/models/download_format.rb +0 -183
  59. data/lib/late-sdk/models/download_instagram_media200_response.rb +0 -165
  60. data/lib/late-sdk/models/download_response.rb +0 -185
  61. data/lib/late-sdk/models/download_tik_tok_video200_response.rb +0 -176
  62. data/lib/late-sdk/models/download_tik_tok_video200_response_formats_inner.rb +0 -165
  63. data/lib/late-sdk/models/download_you_tube_video200_response.rb +0 -176
  64. data/lib/late-sdk/models/download_you_tube_video200_response_formats_inner.rb +0 -192
  65. data/lib/late-sdk/models/get_you_tube_transcript200_response.rb +0 -185
  66. data/lib/late-sdk/models/get_you_tube_transcript200_response_segments_inner.rb +0 -165
  67. data/lib/late-sdk/models/hashtag_check_response.rb +0 -149
  68. data/lib/late-sdk/models/hashtag_info.rb +0 -199
  69. data/lib/late-sdk/models/transcript_response.rb +0 -167
  70. data/lib/late-sdk/models/transcript_segment.rb +0 -165
  71. data/lib/late-sdk/models/validate_media200_response.rb +0 -249
  72. data/lib/late-sdk/models/validate_media200_response_platform_limits_value.rb +0 -166
  73. data/lib/late-sdk/models/validate_media_request.rb +0 -165
  74. data/lib/late-sdk/models/validate_post200_response.rb +0 -104
  75. data/lib/late-sdk/models/validate_post200_response_one_of.rb +0 -168
  76. data/lib/late-sdk/models/validate_post200_response_one_of1.rb +0 -170
  77. data/lib/late-sdk/models/validate_post200_response_one_of1_errors_inner.rb +0 -156
  78. data/lib/late-sdk/models/validate_post200_response_one_of_warnings_inner.rb +0 -156
  79. data/lib/late-sdk/models/validate_post_length200_response.rb +0 -158
  80. data/lib/late-sdk/models/validate_post_length200_response_platforms_value.rb +0 -168
  81. data/lib/late-sdk/models/validate_post_length_request.rb +0 -165
  82. data/lib/late-sdk/models/validate_post_request.rb +0 -189
  83. data/lib/late-sdk/models/validate_post_request_media_items_inner.rb +0 -190
  84. data/lib/late-sdk/models/validate_post_request_platforms_inner.rb +0 -217
  85. data/lib/late-sdk/models/validate_post_request_platforms_inner_custom_media_inner.rb +0 -190
  86. data/lib/late-sdk/models/validate_subreddit200_response.rb +0 -104
  87. data/lib/late-sdk/models/validate_subreddit200_response_one_of.rb +0 -157
  88. data/lib/late-sdk/models/validate_subreddit200_response_one_of1.rb +0 -157
  89. data/lib/late-sdk/models/validate_subreddit200_response_one_of_subreddit.rb +0 -244
  90. data/spec/api/tools_api_spec.rb +0 -152
  91. data/spec/api/validate_api_spec.rb +0 -83
  92. data/spec/models/caption_response_spec.rb +0 -36
  93. data/spec/models/check_instagram_hashtags200_response_results_inner_spec.rb +0 -58
  94. data/spec/models/check_instagram_hashtags200_response_spec.rb +0 -48
  95. data/spec/models/check_instagram_hashtags200_response_summary_spec.rb +0 -48
  96. data/spec/models/check_instagram_hashtags_request_spec.rb +0 -36
  97. data/spec/models/download_bluesky_media200_response_spec.rb +0 -60
  98. data/spec/models/download_facebook_video200_response_spec.rb +0 -54
  99. data/spec/models/download_format_spec.rb +0 -60
  100. data/spec/models/download_instagram_media200_response_spec.rb +0 -48
  101. data/spec/models/download_response_spec.rb +0 -60
  102. data/spec/models/download_tik_tok_video200_response_formats_inner_spec.rb +0 -48
  103. data/spec/models/download_tik_tok_video200_response_spec.rb +0 -54
  104. data/spec/models/download_you_tube_video200_response_formats_inner_spec.rb +0 -66
  105. data/spec/models/download_you_tube_video200_response_spec.rb +0 -54
  106. data/spec/models/get_you_tube_transcript200_response_segments_inner_spec.rb +0 -48
  107. data/spec/models/get_you_tube_transcript200_response_spec.rb +0 -60
  108. data/spec/models/hashtag_check_response_spec.rb +0 -36
  109. data/spec/models/hashtag_info_spec.rb +0 -52
  110. data/spec/models/transcript_response_spec.rb +0 -48
  111. data/spec/models/transcript_segment_spec.rb +0 -48
  112. data/spec/models/validate_media200_response_platform_limits_value_spec.rb +0 -48
  113. data/spec/models/validate_media200_response_spec.rb +0 -82
  114. data/spec/models/validate_media_request_spec.rb +0 -36
  115. data/spec/models/validate_post200_response_one_of1_errors_inner_spec.rb +0 -42
  116. data/spec/models/validate_post200_response_one_of1_spec.rb +0 -48
  117. data/spec/models/validate_post200_response_one_of_spec.rb +0 -48
  118. data/spec/models/validate_post200_response_one_of_warnings_inner_spec.rb +0 -42
  119. data/spec/models/validate_post200_response_spec.rb +0 -32
  120. data/spec/models/validate_post_length200_response_platforms_value_spec.rb +0 -48
  121. data/spec/models/validate_post_length200_response_spec.rb +0 -42
  122. data/spec/models/validate_post_length_request_spec.rb +0 -36
  123. data/spec/models/validate_post_request_media_items_inner_spec.rb +0 -46
  124. data/spec/models/validate_post_request_platforms_inner_custom_media_inner_spec.rb +0 -46
  125. data/spec/models/validate_post_request_platforms_inner_spec.rb +0 -58
  126. data/spec/models/validate_post_request_spec.rb +0 -48
  127. data/spec/models/validate_subreddit200_response_one_of1_spec.rb +0 -42
  128. data/spec/models/validate_subreddit200_response_one_of_spec.rb +0 -42
  129. data/spec/models/validate_subreddit200_response_one_of_subreddit_spec.rb +0 -82
  130. data/spec/models/validate_subreddit200_response_spec.rb +0 -32
  131. data/zernio-sdk-0.0.103.gem +0 -0
@@ -1,168 +0,0 @@
1
- =begin
2
- #Zernio API
3
-
4
- #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
-
6
- The version of the OpenAPI document: 1.0.1
7
- Contact: support@zernio.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.19.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Late
17
- # Valid post
18
- class ValidatePost200ResponseOneOf < ApiModelBase
19
- attr_accessor :valid
20
-
21
- attr_accessor :message
22
-
23
- attr_accessor :warnings
24
-
25
- # Attribute mapping from ruby-style variable name to JSON key.
26
- def self.attribute_map
27
- {
28
- :'valid' => :'valid',
29
- :'message' => :'message',
30
- :'warnings' => :'warnings'
31
- }
32
- end
33
-
34
- # Returns attribute mapping this model knows about
35
- def self.acceptable_attribute_map
36
- attribute_map
37
- end
38
-
39
- # Returns all the JSON keys this model knows about
40
- def self.acceptable_attributes
41
- acceptable_attribute_map.values
42
- end
43
-
44
- # Attribute type mapping.
45
- def self.openapi_types
46
- {
47
- :'valid' => :'Boolean',
48
- :'message' => :'String',
49
- :'warnings' => :'Array<ValidatePost200ResponseOneOfWarningsInner>'
50
- }
51
- end
52
-
53
- # List of attributes with nullable: true
54
- def self.openapi_nullable
55
- Set.new([
56
- ])
57
- end
58
-
59
- # Initializes the object
60
- # @param [Hash] attributes Model attributes in the form of hash
61
- def initialize(attributes = {})
62
- if (!attributes.is_a?(Hash))
63
- fail ArgumentError, "The input argument (attributes) must be a hash in `Late::ValidatePost200ResponseOneOf` initialize method"
64
- end
65
-
66
- # check to see if the attribute exists and convert string to symbol for hash key
67
- acceptable_attribute_map = self.class.acceptable_attribute_map
68
- attributes = attributes.each_with_object({}) { |(k, v), h|
69
- if (!acceptable_attribute_map.key?(k.to_sym))
70
- fail ArgumentError, "`#{k}` is not a valid attribute in `Late::ValidatePost200ResponseOneOf`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
71
- end
72
- h[k.to_sym] = v
73
- }
74
-
75
- if attributes.key?(:'valid')
76
- self.valid = attributes[:'valid']
77
- end
78
-
79
- if attributes.key?(:'message')
80
- self.message = attributes[:'message']
81
- end
82
-
83
- if attributes.key?(:'warnings')
84
- if (value = attributes[:'warnings']).is_a?(Array)
85
- self.warnings = value
86
- end
87
- end
88
- end
89
-
90
- # Show invalid properties with the reasons. Usually used together with valid?
91
- # @return Array for valid properties with the reasons
92
- def list_invalid_properties
93
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
94
- invalid_properties = Array.new
95
- invalid_properties
96
- end
97
-
98
- # Check to see if the all the properties in the model are valid
99
- # @return true if the model is valid
100
- def valid?
101
- warn '[DEPRECATED] the `valid?` method is obsolete'
102
- true
103
- end
104
-
105
- # Checks equality by comparing each attribute.
106
- # @param [Object] Object to be compared
107
- def ==(o)
108
- return true if self.equal?(o)
109
- self.class == o.class &&
110
- valid == o.valid &&
111
- message == o.message &&
112
- warnings == o.warnings
113
- end
114
-
115
- # @see the `==` method
116
- # @param [Object] Object to be compared
117
- def eql?(o)
118
- self == o
119
- end
120
-
121
- # Calculates hash code according to all attributes.
122
- # @return [Integer] Hash code
123
- def hash
124
- [valid, message, warnings].hash
125
- end
126
-
127
- # Builds the object from hash
128
- # @param [Hash] attributes Model attributes in the form of hash
129
- # @return [Object] Returns the model itself
130
- def self.build_from_hash(attributes)
131
- return nil unless attributes.is_a?(Hash)
132
- attributes = attributes.transform_keys(&:to_sym)
133
- transformed_hash = {}
134
- openapi_types.each_pair do |key, type|
135
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
136
- transformed_hash["#{key}"] = nil
137
- elsif type =~ /\AArray<(.*)>/i
138
- # check to ensure the input is an array given that the attribute
139
- # is documented as an array but the input is not
140
- if attributes[attribute_map[key]].is_a?(Array)
141
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
142
- end
143
- elsif !attributes[attribute_map[key]].nil?
144
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
145
- end
146
- end
147
- new(transformed_hash)
148
- end
149
-
150
- # Returns the object in the form of hash
151
- # @return [Hash] Returns the object in the form of hash
152
- def to_hash
153
- hash = {}
154
- self.class.attribute_map.each_pair do |attr, param|
155
- value = self.send(attr)
156
- if value.nil?
157
- is_nullable = self.class.openapi_nullable.include?(attr)
158
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
159
- end
160
-
161
- hash[param] = _to_hash(value)
162
- end
163
- hash
164
- end
165
-
166
- end
167
-
168
- end
@@ -1,170 +0,0 @@
1
- =begin
2
- #Zernio API
3
-
4
- #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
-
6
- The version of the OpenAPI document: 1.0.1
7
- Contact: support@zernio.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.19.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Late
17
- # Invalid post
18
- class ValidatePost200ResponseOneOf1 < ApiModelBase
19
- attr_accessor :valid
20
-
21
- attr_accessor :errors
22
-
23
- attr_accessor :warnings
24
-
25
- # Attribute mapping from ruby-style variable name to JSON key.
26
- def self.attribute_map
27
- {
28
- :'valid' => :'valid',
29
- :'errors' => :'errors',
30
- :'warnings' => :'warnings'
31
- }
32
- end
33
-
34
- # Returns attribute mapping this model knows about
35
- def self.acceptable_attribute_map
36
- attribute_map
37
- end
38
-
39
- # Returns all the JSON keys this model knows about
40
- def self.acceptable_attributes
41
- acceptable_attribute_map.values
42
- end
43
-
44
- # Attribute type mapping.
45
- def self.openapi_types
46
- {
47
- :'valid' => :'Boolean',
48
- :'errors' => :'Array<ValidatePost200ResponseOneOf1ErrorsInner>',
49
- :'warnings' => :'Array<ValidatePost200ResponseOneOfWarningsInner>'
50
- }
51
- end
52
-
53
- # List of attributes with nullable: true
54
- def self.openapi_nullable
55
- Set.new([
56
- ])
57
- end
58
-
59
- # Initializes the object
60
- # @param [Hash] attributes Model attributes in the form of hash
61
- def initialize(attributes = {})
62
- if (!attributes.is_a?(Hash))
63
- fail ArgumentError, "The input argument (attributes) must be a hash in `Late::ValidatePost200ResponseOneOf1` initialize method"
64
- end
65
-
66
- # check to see if the attribute exists and convert string to symbol for hash key
67
- acceptable_attribute_map = self.class.acceptable_attribute_map
68
- attributes = attributes.each_with_object({}) { |(k, v), h|
69
- if (!acceptable_attribute_map.key?(k.to_sym))
70
- fail ArgumentError, "`#{k}` is not a valid attribute in `Late::ValidatePost200ResponseOneOf1`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
71
- end
72
- h[k.to_sym] = v
73
- }
74
-
75
- if attributes.key?(:'valid')
76
- self.valid = attributes[:'valid']
77
- end
78
-
79
- if attributes.key?(:'errors')
80
- if (value = attributes[:'errors']).is_a?(Array)
81
- self.errors = value
82
- end
83
- end
84
-
85
- if attributes.key?(:'warnings')
86
- if (value = attributes[:'warnings']).is_a?(Array)
87
- self.warnings = value
88
- end
89
- end
90
- end
91
-
92
- # Show invalid properties with the reasons. Usually used together with valid?
93
- # @return Array for valid properties with the reasons
94
- def list_invalid_properties
95
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
96
- invalid_properties = Array.new
97
- invalid_properties
98
- end
99
-
100
- # Check to see if the all the properties in the model are valid
101
- # @return true if the model is valid
102
- def valid?
103
- warn '[DEPRECATED] the `valid?` method is obsolete'
104
- true
105
- end
106
-
107
- # Checks equality by comparing each attribute.
108
- # @param [Object] Object to be compared
109
- def ==(o)
110
- return true if self.equal?(o)
111
- self.class == o.class &&
112
- valid == o.valid &&
113
- errors == o.errors &&
114
- warnings == o.warnings
115
- end
116
-
117
- # @see the `==` method
118
- # @param [Object] Object to be compared
119
- def eql?(o)
120
- self == o
121
- end
122
-
123
- # Calculates hash code according to all attributes.
124
- # @return [Integer] Hash code
125
- def hash
126
- [valid, errors, warnings].hash
127
- end
128
-
129
- # Builds the object from hash
130
- # @param [Hash] attributes Model attributes in the form of hash
131
- # @return [Object] Returns the model itself
132
- def self.build_from_hash(attributes)
133
- return nil unless attributes.is_a?(Hash)
134
- attributes = attributes.transform_keys(&:to_sym)
135
- transformed_hash = {}
136
- openapi_types.each_pair do |key, type|
137
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
138
- transformed_hash["#{key}"] = nil
139
- elsif type =~ /\AArray<(.*)>/i
140
- # check to ensure the input is an array given that the attribute
141
- # is documented as an array but the input is not
142
- if attributes[attribute_map[key]].is_a?(Array)
143
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
144
- end
145
- elsif !attributes[attribute_map[key]].nil?
146
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
147
- end
148
- end
149
- new(transformed_hash)
150
- end
151
-
152
- # Returns the object in the form of hash
153
- # @return [Hash] Returns the object in the form of hash
154
- def to_hash
155
- hash = {}
156
- self.class.attribute_map.each_pair do |attr, param|
157
- value = self.send(attr)
158
- if value.nil?
159
- is_nullable = self.class.openapi_nullable.include?(attr)
160
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
161
- end
162
-
163
- hash[param] = _to_hash(value)
164
- end
165
- hash
166
- end
167
-
168
- end
169
-
170
- end
@@ -1,156 +0,0 @@
1
- =begin
2
- #Zernio API
3
-
4
- #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
-
6
- The version of the OpenAPI document: 1.0.1
7
- Contact: support@zernio.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.19.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Late
17
- class ValidatePost200ResponseOneOf1ErrorsInner < ApiModelBase
18
- attr_accessor :platform
19
-
20
- attr_accessor :error
21
-
22
- # Attribute mapping from ruby-style variable name to JSON key.
23
- def self.attribute_map
24
- {
25
- :'platform' => :'platform',
26
- :'error' => :'error'
27
- }
28
- end
29
-
30
- # Returns attribute mapping this model knows about
31
- def self.acceptable_attribute_map
32
- attribute_map
33
- end
34
-
35
- # Returns all the JSON keys this model knows about
36
- def self.acceptable_attributes
37
- acceptable_attribute_map.values
38
- end
39
-
40
- # Attribute type mapping.
41
- def self.openapi_types
42
- {
43
- :'platform' => :'String',
44
- :'error' => :'String'
45
- }
46
- end
47
-
48
- # List of attributes with nullable: true
49
- def self.openapi_nullable
50
- Set.new([
51
- ])
52
- end
53
-
54
- # Initializes the object
55
- # @param [Hash] attributes Model attributes in the form of hash
56
- def initialize(attributes = {})
57
- if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `Late::ValidatePost200ResponseOneOf1ErrorsInner` initialize method"
59
- end
60
-
61
- # check to see if the attribute exists and convert string to symbol for hash key
62
- acceptable_attribute_map = self.class.acceptable_attribute_map
63
- attributes = attributes.each_with_object({}) { |(k, v), h|
64
- if (!acceptable_attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `Late::ValidatePost200ResponseOneOf1ErrorsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
- end
67
- h[k.to_sym] = v
68
- }
69
-
70
- if attributes.key?(:'platform')
71
- self.platform = attributes[:'platform']
72
- end
73
-
74
- if attributes.key?(:'error')
75
- self.error = attributes[:'error']
76
- end
77
- end
78
-
79
- # Show invalid properties with the reasons. Usually used together with valid?
80
- # @return Array for valid properties with the reasons
81
- def list_invalid_properties
82
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
83
- invalid_properties = Array.new
84
- invalid_properties
85
- end
86
-
87
- # Check to see if the all the properties in the model are valid
88
- # @return true if the model is valid
89
- def valid?
90
- warn '[DEPRECATED] the `valid?` method is obsolete'
91
- true
92
- end
93
-
94
- # Checks equality by comparing each attribute.
95
- # @param [Object] Object to be compared
96
- def ==(o)
97
- return true if self.equal?(o)
98
- self.class == o.class &&
99
- platform == o.platform &&
100
- error == o.error
101
- end
102
-
103
- # @see the `==` method
104
- # @param [Object] Object to be compared
105
- def eql?(o)
106
- self == o
107
- end
108
-
109
- # Calculates hash code according to all attributes.
110
- # @return [Integer] Hash code
111
- def hash
112
- [platform, error].hash
113
- end
114
-
115
- # Builds the object from hash
116
- # @param [Hash] attributes Model attributes in the form of hash
117
- # @return [Object] Returns the model itself
118
- def self.build_from_hash(attributes)
119
- return nil unless attributes.is_a?(Hash)
120
- attributes = attributes.transform_keys(&:to_sym)
121
- transformed_hash = {}
122
- openapi_types.each_pair do |key, type|
123
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
124
- transformed_hash["#{key}"] = nil
125
- elsif type =~ /\AArray<(.*)>/i
126
- # check to ensure the input is an array given that the attribute
127
- # is documented as an array but the input is not
128
- if attributes[attribute_map[key]].is_a?(Array)
129
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
130
- end
131
- elsif !attributes[attribute_map[key]].nil?
132
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
133
- end
134
- end
135
- new(transformed_hash)
136
- end
137
-
138
- # Returns the object in the form of hash
139
- # @return [Hash] Returns the object in the form of hash
140
- def to_hash
141
- hash = {}
142
- self.class.attribute_map.each_pair do |attr, param|
143
- value = self.send(attr)
144
- if value.nil?
145
- is_nullable = self.class.openapi_nullable.include?(attr)
146
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
147
- end
148
-
149
- hash[param] = _to_hash(value)
150
- end
151
- hash
152
- end
153
-
154
- end
155
-
156
- end
@@ -1,156 +0,0 @@
1
- =begin
2
- #Zernio API
3
-
4
- #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
-
6
- The version of the OpenAPI document: 1.0.1
7
- Contact: support@zernio.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.19.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Late
17
- class ValidatePost200ResponseOneOfWarningsInner < ApiModelBase
18
- attr_accessor :platform
19
-
20
- attr_accessor :warning
21
-
22
- # Attribute mapping from ruby-style variable name to JSON key.
23
- def self.attribute_map
24
- {
25
- :'platform' => :'platform',
26
- :'warning' => :'warning'
27
- }
28
- end
29
-
30
- # Returns attribute mapping this model knows about
31
- def self.acceptable_attribute_map
32
- attribute_map
33
- end
34
-
35
- # Returns all the JSON keys this model knows about
36
- def self.acceptable_attributes
37
- acceptable_attribute_map.values
38
- end
39
-
40
- # Attribute type mapping.
41
- def self.openapi_types
42
- {
43
- :'platform' => :'String',
44
- :'warning' => :'String'
45
- }
46
- end
47
-
48
- # List of attributes with nullable: true
49
- def self.openapi_nullable
50
- Set.new([
51
- ])
52
- end
53
-
54
- # Initializes the object
55
- # @param [Hash] attributes Model attributes in the form of hash
56
- def initialize(attributes = {})
57
- if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `Late::ValidatePost200ResponseOneOfWarningsInner` initialize method"
59
- end
60
-
61
- # check to see if the attribute exists and convert string to symbol for hash key
62
- acceptable_attribute_map = self.class.acceptable_attribute_map
63
- attributes = attributes.each_with_object({}) { |(k, v), h|
64
- if (!acceptable_attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `Late::ValidatePost200ResponseOneOfWarningsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
- end
67
- h[k.to_sym] = v
68
- }
69
-
70
- if attributes.key?(:'platform')
71
- self.platform = attributes[:'platform']
72
- end
73
-
74
- if attributes.key?(:'warning')
75
- self.warning = attributes[:'warning']
76
- end
77
- end
78
-
79
- # Show invalid properties with the reasons. Usually used together with valid?
80
- # @return Array for valid properties with the reasons
81
- def list_invalid_properties
82
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
83
- invalid_properties = Array.new
84
- invalid_properties
85
- end
86
-
87
- # Check to see if the all the properties in the model are valid
88
- # @return true if the model is valid
89
- def valid?
90
- warn '[DEPRECATED] the `valid?` method is obsolete'
91
- true
92
- end
93
-
94
- # Checks equality by comparing each attribute.
95
- # @param [Object] Object to be compared
96
- def ==(o)
97
- return true if self.equal?(o)
98
- self.class == o.class &&
99
- platform == o.platform &&
100
- warning == o.warning
101
- end
102
-
103
- # @see the `==` method
104
- # @param [Object] Object to be compared
105
- def eql?(o)
106
- self == o
107
- end
108
-
109
- # Calculates hash code according to all attributes.
110
- # @return [Integer] Hash code
111
- def hash
112
- [platform, warning].hash
113
- end
114
-
115
- # Builds the object from hash
116
- # @param [Hash] attributes Model attributes in the form of hash
117
- # @return [Object] Returns the model itself
118
- def self.build_from_hash(attributes)
119
- return nil unless attributes.is_a?(Hash)
120
- attributes = attributes.transform_keys(&:to_sym)
121
- transformed_hash = {}
122
- openapi_types.each_pair do |key, type|
123
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
124
- transformed_hash["#{key}"] = nil
125
- elsif type =~ /\AArray<(.*)>/i
126
- # check to ensure the input is an array given that the attribute
127
- # is documented as an array but the input is not
128
- if attributes[attribute_map[key]].is_a?(Array)
129
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
130
- end
131
- elsif !attributes[attribute_map[key]].nil?
132
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
133
- end
134
- end
135
- new(transformed_hash)
136
- end
137
-
138
- # Returns the object in the form of hash
139
- # @return [Hash] Returns the object in the form of hash
140
- def to_hash
141
- hash = {}
142
- self.class.attribute_map.each_pair do |attr, param|
143
- value = self.send(attr)
144
- if value.nil?
145
- is_nullable = self.class.openapi_nullable.include?(attr)
146
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
147
- end
148
-
149
- hash[param] = _to_hash(value)
150
- end
151
- hash
152
- end
153
-
154
- end
155
-
156
- end