groupdocs_conversion_cloud 23.9 → 23.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5421a24e4263b3a624a8bdc6f0390fd12ab086b
4
- data.tar.gz: 91512f3de6516f2a62813ca4e92e743b3f29bc60
3
+ metadata.gz: d350b3b5646aa0046522b4dd7c103cf35e6ed6a3
4
+ data.tar.gz: b84d04e4e6e163d1fa9265617f43ddbc4f596b9c
5
5
  SHA512:
6
- metadata.gz: 23df5833f7173801ed0a433ae2970b035e91211ae06662eec204796038521902e382644b3f96011c95932cd936c6014fb85c34af9e374db63e51c9a55c6bb3e9
7
- data.tar.gz: e534c59c2150764dd2d7dfc64beb1d2a72a41eadb61c1a53e15fb7a1e77fb774a8f86b93ff7a65720122c1d9dc066c5a32b39ca64f8b4e2e7ebb512959943eda
6
+ metadata.gz: ea0cfeb486ce78cabfc78ffdc1132852d31c43c4451216b22d5c2dfaff146810155c739b0b8db9f7ae2791a09468ef29dd3df7816f087e51905eec9f73b4bf31
7
+ data.tar.gz: b888847bd449e7c3e7d93601a2c7e76ffd3efbefef207bed6def41df747345a42b99dce0daa80a57cf524761a6b0052fb70a97a94a440db135ad3d2b865ee49f
@@ -113,6 +113,55 @@ module GroupDocsConversionCloud
113
113
  [data, status_code, headers]
114
114
  end
115
115
 
116
+ # Get license information
117
+ #
118
+ # @return [LicenseInfo]
119
+ def get_license_info()
120
+ data, _status_code, _headers = get_license_info_with_http_info()
121
+ data
122
+ end
123
+
124
+ # Get license information
125
+ #
126
+
127
+ # @return [Array<(LicenseInfo, Fixnum, Hash)>]
128
+ # LicenseInfo data, response status code and response headers
129
+ def get_license_info_with_http_info()
130
+
131
+
132
+ @api_client.config.logger.debug 'Calling API: LicenseApi.get_license_info ...' if @api_client.config.debugging
133
+ # resource path
134
+ local_var_path = '/conversion/license'
135
+
136
+ # query parameters
137
+ query_params = {}
138
+
139
+ # header parameters
140
+ header_params = {}
141
+ # HTTP header 'Accept' (if needed)
142
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
143
+ # HTTP header 'Content-Type'
144
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
145
+
146
+ # form parameters
147
+ form_params = {}
148
+
149
+ # http body (model)
150
+ post_body = nil
151
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
152
+ header_params: header_params,
153
+ query_params: query_params,
154
+ form_params: form_params,
155
+ body: post_body,
156
+ access_token: get_access_token,
157
+ return_type: 'LicenseInfo')
158
+ if @api_client.config.debugging
159
+ @api_client.config.logger.debug "API called:
160
+ LicenseApi#get_license_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
161
+ end
162
+ [data, status_code, headers]
163
+ end
164
+
116
165
  #
117
166
  # Helper method to convert first letter to downcase
118
167
  #
@@ -0,0 +1,219 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose Pty Ltd" file="license_info.rb">
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
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>
25
+ # --------------------------------------------------------------------------------------------------------------------
26
+ #
27
+
28
+ require 'date'
29
+
30
+ module GroupDocsConversionCloud
31
+ # Current license information
32
+ class LicenseInfo
33
+
34
+ # True, if license was applied and valid, otherwise False
35
+ attr_accessor :is_licensed
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'is_licensed' => :'IsLicensed'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.swagger_types
46
+ {
47
+ :'is_licensed' => :'BOOLEAN'
48
+ }
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ return unless attributes.is_a?(Hash)
55
+
56
+ # convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
+
59
+ if attributes.key?(:'IsLicensed')
60
+ self.is_licensed = attributes[:'IsLicensed']
61
+ end
62
+
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properies with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = []
69
+ if @is_licensed.nil?
70
+ invalid_properties.push("invalid value for 'is_licensed', is_licensed cannot be nil.")
71
+ end
72
+
73
+ return invalid_properties
74
+ end
75
+
76
+ # Check to see if the all the properties in the model are valid
77
+ # @return true if the model is valid
78
+ def valid?
79
+ return false if @is_licensed.nil?
80
+ return true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(other)
86
+ return true if self.equal?(other)
87
+ self.class == other.class &&
88
+ is_licensed == other.is_licensed
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(other)
94
+ self == other
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Fixnum] Hash code
99
+ def hash
100
+ [is_licensed].hash
101
+ end
102
+
103
+ # Downcases first letter.
104
+ # @return downcased string
105
+ def uncap(str)
106
+ str[0, 1].downcase + str[1..-1]
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def build_from_hash(attributes)
113
+ return nil unless attributes.is_a?(Hash)
114
+ self.class.swagger_types.each_pair do |key, type|
115
+ pname = uncap(self.class.attribute_map[key]).intern
116
+ value = attributes[pname]
117
+ if type =~ /\AArray<(.*)>/i
118
+ # check to ensure the input is an array given that the the attribute
119
+ # is documented as an array but the input is not
120
+ if value.is_a?(Array)
121
+ self.send("#{key}=", value.map { |v| _deserialize($1, v) })
122
+ end
123
+ elsif !value.nil?
124
+ self.send("#{key}=", _deserialize(type, value))
125
+ end
126
+ # or else data not found in attributes(hash), not an issue as the data can be optional
127
+ end
128
+
129
+ self
130
+ end
131
+
132
+ # Deserializes the data based on type
133
+ # @param string type Data type
134
+ # @param string value Value to be deserialized
135
+ # @return [Object] Deserialized data
136
+ def _deserialize(type, value)
137
+ case type.to_sym
138
+ when :DateTime
139
+ Date.parse value
140
+ when :Date
141
+ Date.parse value
142
+ when :String
143
+ value.to_s
144
+ when :Integer
145
+ value.to_i
146
+ when :Float
147
+ value.to_f
148
+ when :BOOLEAN
149
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ true
151
+ else
152
+ false
153
+ end
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ else
169
+ # model
170
+ temp_model = GroupDocsConversionCloud.const_get(type).new
171
+ temp_model.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ next if value.nil?
194
+ hash[param] = _to_hash(value)
195
+ end
196
+ hash
197
+ end
198
+
199
+ # Outputs non-array value in the form of hash
200
+ # For object, use to_hash. Otherwise, just return the value
201
+ # @param [Object] value Any valid value
202
+ # @return [Hash] Returns the value in the form of hash
203
+ def _to_hash(value)
204
+ if value.is_a?(Array)
205
+ value.compact.map { |v| _to_hash(v) }
206
+ elsif value.is_a?(Hash)
207
+ {}.tap do |hash|
208
+ value.each { |k, v| hash[k] = _to_hash(v) }
209
+ end
210
+ elsif value.respond_to? :to_hash
211
+ value.to_hash
212
+ else
213
+ value
214
+ end
215
+ end
216
+
217
+ end
218
+
219
+ end
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsConversionCloud
28
- VERSION = "23.9".freeze
28
+ VERSION = "23.10".freeze
29
29
  end
@@ -43,6 +43,7 @@ require_relative 'groupdocs_conversion_cloud/models/field_label'
43
43
  require_relative 'groupdocs_conversion_cloud/models/file_versions'
44
44
  require_relative 'groupdocs_conversion_cloud/models/files_list'
45
45
  require_relative 'groupdocs_conversion_cloud/models/files_upload_result'
46
+ require_relative 'groupdocs_conversion_cloud/models/license_info'
46
47
  require_relative 'groupdocs_conversion_cloud/models/load_options'
47
48
  require_relative 'groupdocs_conversion_cloud/models/object_exist'
48
49
  require_relative 'groupdocs_conversion_cloud/models/storage_exist'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs_conversion_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '23.9'
4
+ version: '23.10'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-13 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -150,6 +150,7 @@ files:
150
150
  - lib/groupdocs_conversion_cloud/models/jpm_load_options.rb
151
151
  - lib/groupdocs_conversion_cloud/models/jpx_convert_options.rb
152
152
  - lib/groupdocs_conversion_cloud/models/jpx_load_options.rb
153
+ - lib/groupdocs_conversion_cloud/models/license_info.rb
153
154
  - lib/groupdocs_conversion_cloud/models/load_options.rb
154
155
  - lib/groupdocs_conversion_cloud/models/mht_load_options.rb
155
156
  - lib/groupdocs_conversion_cloud/models/mobi_load_options.rb