groupdocs_signature_cloud 21.11 → 22.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_signature_cloud/api/file_api.rb +6 -6
- data/lib/groupdocs_signature_cloud/api/folder_api.rb +6 -6
- data/lib/groupdocs_signature_cloud/api/info_api.rb +2 -2
- data/lib/groupdocs_signature_cloud/api/license_api.rb +169 -0
- data/lib/groupdocs_signature_cloud/api/preview_api.rb +2 -2
- data/lib/groupdocs_signature_cloud/api/sign_api.rb +6 -6
- data/lib/groupdocs_signature_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_signature_cloud/api_client.rb +1 -1
- data/lib/groupdocs_signature_cloud/api_error.rb +1 -1
- data/lib/groupdocs_signature_cloud/configuration.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/barcode_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/barcode_type.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/barcodes_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/base_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/border_line.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/checkbox_form_field_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/color.rb +20 -5
- data/lib/groupdocs_signature_cloud/models/combobox_form_field_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/consumption_result.rb +257 -0
- data/lib/groupdocs_signature_cloud/models/delete_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/delete_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/delete_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/digital_form_field_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/digital_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/digital_signature_appearance.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/error.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/file_info.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/form_field_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/format.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/formats_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/image_appearance.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/image_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/info_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/info_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/linear_gradient_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/options_base.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/padding.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/page_info.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/pages_setup.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature_appearance.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/pdf_text_annotation_appearance.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/pdf_text_sticker_appearance.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/preview_page.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/preview_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/preview_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/qr_code_type.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/qr_codes_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/radial_gradient_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/radio_button_form_field_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/save_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_barcode_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_digital_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_qr_code_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/search_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_barcode_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_digital_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_image_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_qr_code_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_stamp_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/sign_text_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/signature_appearance.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/signature_font.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/solid_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/stamp_line.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/text_form_field_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/text_signature.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/texture_brush.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/time_stamp.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/update_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/update_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/update_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_barcode_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_digital_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_qr_code_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_result.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_settings.rb +1 -1
- data/lib/groupdocs_signature_cloud/models/verify_text_options.rb +1 -1
- data/lib/groupdocs_signature_cloud/version.rb +2 -2
- data/lib/groupdocs_signature_cloud.rb +3 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e416e30dc865a5ccdc6ef6191d6c171b7dc80de7
|
4
|
+
data.tar.gz: 67ce14e9a7d4d1b549d00a10869f75bf157f82e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac814bd08a08460d5d8499c915903b7853d33a3c14b204148f662975acc9738e22f07f07093791d861dda355578d97eebfe072d07e92a41f8dfa7bed3dc703a6
|
7
|
+
data.tar.gz: 995ff8bae48a52f8be1eb2c161e3f875b49db9b856e1bac9111a1dc24d231bcf143d0b33fe8bf542b7e54aa6e9eda59c4788cd744fdce27650d245123c58df0e
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="file.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -454,7 +454,7 @@ end
|
|
454
454
|
#
|
455
455
|
# --------------------------------------------------------------------------------------------------------------------
|
456
456
|
# <copyright company="Aspose Pty Ltd" file="copy_file_request.rb">
|
457
|
-
# Copyright (c) 2003-
|
457
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
458
458
|
# </copyright>
|
459
459
|
# <summary>
|
460
460
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -515,7 +515,7 @@ end
|
|
515
515
|
#
|
516
516
|
# --------------------------------------------------------------------------------------------------------------------
|
517
517
|
# <copyright company="Aspose Pty Ltd" file="delete_file_request.rb">
|
518
|
-
# Copyright (c) 2003-
|
518
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
519
519
|
# </copyright>
|
520
520
|
# <summary>
|
521
521
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -568,7 +568,7 @@ end
|
|
568
568
|
#
|
569
569
|
# --------------------------------------------------------------------------------------------------------------------
|
570
570
|
# <copyright company="Aspose Pty Ltd" file="download_file_request.rb">
|
571
|
-
# Copyright (c) 2003-
|
571
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
572
572
|
# </copyright>
|
573
573
|
# <summary>
|
574
574
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -621,7 +621,7 @@ end
|
|
621
621
|
#
|
622
622
|
# --------------------------------------------------------------------------------------------------------------------
|
623
623
|
# <copyright company="Aspose Pty Ltd" file="move_file_request.rb">
|
624
|
-
# Copyright (c) 2003-
|
624
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
625
625
|
# </copyright>
|
626
626
|
# <summary>
|
627
627
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -682,7 +682,7 @@ end
|
|
682
682
|
#
|
683
683
|
# --------------------------------------------------------------------------------------------------------------------
|
684
684
|
# <copyright company="Aspose Pty Ltd" file="upload_file_request.rb">
|
685
|
-
# Copyright (c) 2003-
|
685
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
686
686
|
# </copyright>
|
687
687
|
# <summary>
|
688
688
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="folder.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -435,7 +435,7 @@ end
|
|
435
435
|
#
|
436
436
|
# --------------------------------------------------------------------------------------------------------------------
|
437
437
|
# <copyright company="Aspose Pty Ltd" file="copy_folder_request.rb">
|
438
|
-
# Copyright (c) 2003-
|
438
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
439
439
|
# </copyright>
|
440
440
|
# <summary>
|
441
441
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -492,7 +492,7 @@ end
|
|
492
492
|
#
|
493
493
|
# --------------------------------------------------------------------------------------------------------------------
|
494
494
|
# <copyright company="Aspose Pty Ltd" file="create_folder_request.rb">
|
495
|
-
# Copyright (c) 2003-
|
495
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
496
496
|
# </copyright>
|
497
497
|
# <summary>
|
498
498
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -541,7 +541,7 @@ end
|
|
541
541
|
#
|
542
542
|
# --------------------------------------------------------------------------------------------------------------------
|
543
543
|
# <copyright company="Aspose Pty Ltd" file="delete_folder_request.rb">
|
544
|
-
# Copyright (c) 2003-
|
544
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
545
545
|
# </copyright>
|
546
546
|
# <summary>
|
547
547
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -594,7 +594,7 @@ end
|
|
594
594
|
#
|
595
595
|
# --------------------------------------------------------------------------------------------------------------------
|
596
596
|
# <copyright company="Aspose Pty Ltd" file="get_files_list_request.rb">
|
597
|
-
# Copyright (c) 2003-
|
597
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
598
598
|
# </copyright>
|
599
599
|
# <summary>
|
600
600
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -643,7 +643,7 @@ end
|
|
643
643
|
#
|
644
644
|
# --------------------------------------------------------------------------------------------------------------------
|
645
645
|
# <copyright company="Aspose Pty Ltd" file="move_folder_request.rb">
|
646
|
-
# Copyright (c) 2003-
|
646
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
647
647
|
# </copyright>
|
648
648
|
# <summary>
|
649
649
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="info.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -320,7 +320,7 @@ end
|
|
320
320
|
#
|
321
321
|
# --------------------------------------------------------------------------------------------------------------------
|
322
322
|
# <copyright company="Aspose Pty Ltd" file="get_info_request.rb">
|
323
|
-
# Copyright (c) 2003-
|
323
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
324
324
|
# </copyright>
|
325
325
|
# <summary>
|
326
326
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -0,0 +1,169 @@
|
|
1
|
+
# -----------------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose Pty Ltd" file="license.rb">
|
3
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
4
|
+
# </copyright>
|
5
|
+
# <summary>
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
11
|
+
# furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in all
|
14
|
+
# copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
# SOFTWARE.
|
23
|
+
# </summary>
|
24
|
+
# -----------------------------------------------------------------------------------
|
25
|
+
|
26
|
+
require 'uri'
|
27
|
+
require 'date'
|
28
|
+
|
29
|
+
module GroupDocsSignatureCloud
|
30
|
+
#
|
31
|
+
# GroupDocs.Signature Cloud API
|
32
|
+
#
|
33
|
+
class LicenseApi
|
34
|
+
attr_accessor :config
|
35
|
+
|
36
|
+
#make LicenseApi.new private
|
37
|
+
private_class_method :new
|
38
|
+
|
39
|
+
# Initializes new instance of LicenseApi
|
40
|
+
#
|
41
|
+
# @param [config] Configuration
|
42
|
+
# @return [LicenseApi] New instance of LicenseApi
|
43
|
+
def initialize(config)
|
44
|
+
@config = config
|
45
|
+
@api_client = ApiClient.new(config)
|
46
|
+
@access_token = nil
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes new instance of LicenseApi
|
50
|
+
#
|
51
|
+
# @param [app_sid] Application identifier (App SID)
|
52
|
+
# @param [app_key] Application private key (App Key)
|
53
|
+
# @return [LicenseApi] New instance of LicenseApi
|
54
|
+
def self.from_keys(app_sid, app_key)
|
55
|
+
config = Configuration.new(app_sid, app_key)
|
56
|
+
return new(config)
|
57
|
+
end
|
58
|
+
|
59
|
+
# Initializes new instance of LicenseApi
|
60
|
+
#
|
61
|
+
# @param [config] Configuration
|
62
|
+
# @return [LicenseApi] New instance of LicenseApi
|
63
|
+
def self.from_config(config)
|
64
|
+
return new(config)
|
65
|
+
end
|
66
|
+
|
67
|
+
# Get license consumption
|
68
|
+
#
|
69
|
+
# @return [ConsumptionResult]
|
70
|
+
def get_consumption_credit()
|
71
|
+
data, _status_code, _headers = get_consumption_credit_with_http_info()
|
72
|
+
data
|
73
|
+
end
|
74
|
+
|
75
|
+
# Get license consumption
|
76
|
+
#
|
77
|
+
|
78
|
+
# @return [Array<(ConsumptionResult, Fixnum, Hash)>]
|
79
|
+
# ConsumptionResult data, response status code and response headers
|
80
|
+
def get_consumption_credit_with_http_info()
|
81
|
+
|
82
|
+
|
83
|
+
@api_client.config.logger.debug 'Calling API: LicenseApi.get_consumption_credit ...' if @api_client.config.debugging
|
84
|
+
# resource path
|
85
|
+
local_var_path = '/signature/consumption'
|
86
|
+
|
87
|
+
# query parameters
|
88
|
+
query_params = {}
|
89
|
+
|
90
|
+
# header parameters
|
91
|
+
header_params = {}
|
92
|
+
# HTTP header 'Accept' (if needed)
|
93
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
94
|
+
# HTTP header 'Content-Type'
|
95
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
96
|
+
|
97
|
+
# form parameters
|
98
|
+
form_params = {}
|
99
|
+
|
100
|
+
# http body (model)
|
101
|
+
post_body = nil
|
102
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
103
|
+
header_params: header_params,
|
104
|
+
query_params: query_params,
|
105
|
+
form_params: form_params,
|
106
|
+
body: post_body,
|
107
|
+
access_token: get_access_token,
|
108
|
+
return_type: 'ConsumptionResult')
|
109
|
+
if @api_client.config.debugging
|
110
|
+
@api_client.config.logger.debug "API called:
|
111
|
+
LicenseApi#get_consumption_credit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
112
|
+
end
|
113
|
+
[data, status_code, headers]
|
114
|
+
end
|
115
|
+
|
116
|
+
#
|
117
|
+
# Helper method to convert first letter to downcase
|
118
|
+
#
|
119
|
+
private def downcase_first_letter(str)
|
120
|
+
value = str[0].downcase + str[1..-1]
|
121
|
+
value
|
122
|
+
end
|
123
|
+
|
124
|
+
#
|
125
|
+
# Retrieves access token
|
126
|
+
#
|
127
|
+
private def get_access_token
|
128
|
+
if @access_token.nil? then
|
129
|
+
request_access_token
|
130
|
+
end
|
131
|
+
|
132
|
+
@access_token
|
133
|
+
end
|
134
|
+
|
135
|
+
#
|
136
|
+
# Gets a access token from server
|
137
|
+
#
|
138
|
+
private def request_access_token
|
139
|
+
auth_config = Configuration.new(@config.app_sid, @config.app_key)
|
140
|
+
auth_config.api_base_url = @config.api_base_url
|
141
|
+
auth_config.debugging = @config.debugging
|
142
|
+
auth_config.logger = @config.logger
|
143
|
+
auth_config.temp_folder_path = @config.temp_folder_path
|
144
|
+
auth_config.client_side_validation = @config.client_side_validation
|
145
|
+
auth_config.api_version = ''
|
146
|
+
|
147
|
+
auth_api_client = ApiClient.new(auth_config)
|
148
|
+
|
149
|
+
request_url = "/connect/token"
|
150
|
+
post_data = "grant_type=client_credentials&client_id=#{@config.app_sid}&client_secret=#{@config.app_key}"
|
151
|
+
|
152
|
+
data, _status_code, _header = auth_api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object')
|
153
|
+
|
154
|
+
@access_token = data[:access_token]
|
155
|
+
|
156
|
+
expires_in_seconds = data[:expires_in].to_i - 5 * 60
|
157
|
+
expires_in_days = Rational(expires_in_seconds, 60 * 60 * 24)
|
158
|
+
@access_token_expires_at = DateTime.now + expires_in_days
|
159
|
+
end
|
160
|
+
|
161
|
+
# requires all files inside a directory from current dir
|
162
|
+
# @param _dir can be relative path like '/lib' or "../lib"
|
163
|
+
private def require_all(_dir)
|
164
|
+
Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), _dir)) + "/*.rb"].each do |file|
|
165
|
+
require file
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="preview.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -173,7 +173,7 @@ end
|
|
173
173
|
#
|
174
174
|
# --------------------------------------------------------------------------------------------------------------------
|
175
175
|
# <copyright company="Aspose Pty Ltd" file="preview_document_request.rb">
|
176
|
-
# Copyright (c) 2003-
|
176
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
177
177
|
# </copyright>
|
178
178
|
# <summary>
|
179
179
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="sign.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -381,7 +381,7 @@ end
|
|
381
381
|
#
|
382
382
|
# --------------------------------------------------------------------------------------------------------------------
|
383
383
|
# <copyright company="Aspose Pty Ltd" file="create_signatures_request.rb">
|
384
|
-
# Copyright (c) 2003-
|
384
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
385
385
|
# </copyright>
|
386
386
|
# <summary>
|
387
387
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -426,7 +426,7 @@ end
|
|
426
426
|
#
|
427
427
|
# --------------------------------------------------------------------------------------------------------------------
|
428
428
|
# <copyright company="Aspose Pty Ltd" file="delete_signatures_request.rb">
|
429
|
-
# Copyright (c) 2003-
|
429
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
430
430
|
# </copyright>
|
431
431
|
# <summary>
|
432
432
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -471,7 +471,7 @@ end
|
|
471
471
|
#
|
472
472
|
# --------------------------------------------------------------------------------------------------------------------
|
473
473
|
# <copyright company="Aspose Pty Ltd" file="search_signatures_request.rb">
|
474
|
-
# Copyright (c) 2003-
|
474
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
475
475
|
# </copyright>
|
476
476
|
# <summary>
|
477
477
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -516,7 +516,7 @@ end
|
|
516
516
|
#
|
517
517
|
# --------------------------------------------------------------------------------------------------------------------
|
518
518
|
# <copyright company="Aspose Pty Ltd" file="update_signatures_request.rb">
|
519
|
-
# Copyright (c) 2003-
|
519
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
520
520
|
# </copyright>
|
521
521
|
# <summary>
|
522
522
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -561,7 +561,7 @@ end
|
|
561
561
|
#
|
562
562
|
# --------------------------------------------------------------------------------------------------------------------
|
563
563
|
# <copyright company="Aspose Pty Ltd" file="verify_signatures_request.rb">
|
564
|
-
# Copyright (c) 2003-
|
564
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
565
565
|
# </copyright>
|
566
566
|
# <summary>
|
567
567
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="storage.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -353,7 +353,7 @@ end
|
|
353
353
|
#
|
354
354
|
# --------------------------------------------------------------------------------------------------------------------
|
355
355
|
# <copyright company="Aspose Pty Ltd" file="get_disc_usage_request.rb">
|
356
|
-
# Copyright (c) 2003-
|
356
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
357
357
|
# </copyright>
|
358
358
|
# <summary>
|
359
359
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -398,7 +398,7 @@ end
|
|
398
398
|
#
|
399
399
|
# --------------------------------------------------------------------------------------------------------------------
|
400
400
|
# <copyright company="Aspose Pty Ltd" file="get_file_versions_request.rb">
|
401
|
-
# Copyright (c) 2003-
|
401
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
402
402
|
# </copyright>
|
403
403
|
# <summary>
|
404
404
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -447,7 +447,7 @@ end
|
|
447
447
|
#
|
448
448
|
# --------------------------------------------------------------------------------------------------------------------
|
449
449
|
# <copyright company="Aspose Pty Ltd" file="object_exists_request.rb">
|
450
|
-
# Copyright (c) 2003-
|
450
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
451
451
|
# </copyright>
|
452
452
|
# <summary>
|
453
453
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -500,7 +500,7 @@ end
|
|
500
500
|
#
|
501
501
|
# --------------------------------------------------------------------------------------------------------------------
|
502
502
|
# <copyright company="Aspose Pty Ltd" file="storage_exists_request.rb">
|
503
|
-
# Copyright (c) 2003-
|
503
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
504
504
|
# </copyright>
|
505
505
|
# <summary>
|
506
506
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="api_client.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="api_error.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ------------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="configuration.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="barcode_signature.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="barcode_type.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="barcodes_result.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="base_settings.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="border_line.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="brush.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="checkbox_form_field_signature.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="color.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -34,17 +34,22 @@ module GroupDocsSignatureCloud
|
|
34
34
|
# HTML string color representation
|
35
35
|
attr_accessor :web
|
36
36
|
|
37
|
+
# Alpha component of color structure
|
38
|
+
attr_accessor :alpha
|
39
|
+
|
37
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
41
|
def self.attribute_map
|
39
42
|
{
|
40
|
-
:'web' => :'Web'
|
43
|
+
:'web' => :'Web',
|
44
|
+
:'alpha' => :'Alpha'
|
41
45
|
}
|
42
46
|
end
|
43
47
|
|
44
48
|
# Attribute type mapping.
|
45
49
|
def self.swagger_types
|
46
50
|
{
|
47
|
-
:'web' => :'String'
|
51
|
+
:'web' => :'String',
|
52
|
+
:'alpha' => :'Integer'
|
48
53
|
}
|
49
54
|
end
|
50
55
|
|
@@ -60,18 +65,27 @@ module GroupDocsSignatureCloud
|
|
60
65
|
self.web = attributes[:'Web']
|
61
66
|
end
|
62
67
|
|
68
|
+
if attributes.key?(:'Alpha')
|
69
|
+
self.alpha = attributes[:'Alpha']
|
70
|
+
end
|
71
|
+
|
63
72
|
end
|
64
73
|
|
65
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
66
75
|
# @return Array for valid properies with the reasons
|
67
76
|
def list_invalid_properties
|
68
77
|
invalid_properties = []
|
78
|
+
if @alpha.nil?
|
79
|
+
invalid_properties.push("invalid value for 'alpha', alpha cannot be nil.")
|
80
|
+
end
|
81
|
+
|
69
82
|
return invalid_properties
|
70
83
|
end
|
71
84
|
|
72
85
|
# Check to see if the all the properties in the model are valid
|
73
86
|
# @return true if the model is valid
|
74
87
|
def valid?
|
88
|
+
return false if @alpha.nil?
|
75
89
|
return true
|
76
90
|
end
|
77
91
|
|
@@ -80,7 +94,8 @@ module GroupDocsSignatureCloud
|
|
80
94
|
def ==(other)
|
81
95
|
return true if self.equal?(other)
|
82
96
|
self.class == other.class &&
|
83
|
-
web == other.web
|
97
|
+
web == other.web &&
|
98
|
+
alpha == other.alpha
|
84
99
|
end
|
85
100
|
|
86
101
|
# @see the `==` method
|
@@ -92,7 +107,7 @@ module GroupDocsSignatureCloud
|
|
92
107
|
# Calculates hash code according to all attributes.
|
93
108
|
# @return [Fixnum] Hash code
|
94
109
|
def hash
|
95
|
-
[web].hash
|
110
|
+
[web, alpha].hash
|
96
111
|
end
|
97
112
|
|
98
113
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="combobox_form_field_signature.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2022 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|