aspose_cells_cloud 26.9 → 26.10.5
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.
- checksums.yaml +4 -4
- data/README.md +39 -31
- data/lib/aspose_cells_cloud/api/cells_api.rb +92 -7
- data/lib/aspose_cells_cloud/models/shared_drive_info.rb +222 -0
- data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color__deprecated_request.rb +155 -0
- data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +1 -1
- data/lib/aspose_cells_cloud/requests/search_all_text_items_in_remote_spreadsheet__legacy_put_request.rb +138 -0
- data/lib/aspose_cells_cloud/requests/search_all_text_items_in_remote_spreadsheet_request.rb +1 -1
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_range__legacy_put_request.rb +156 -0
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_range_request.rb +1 -1
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_spreadsheet__legacy_put_request.rb +150 -0
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_spreadsheet_request.rb +1 -1
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_worksheet__legacy_put_request.rb +145 -0
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_worksheet_request.rb +1 -1
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_range__legacy_put_request.rb +176 -0
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_range_request.rb +1 -1
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_spreadsheet__legacy_put_request.rb +154 -0
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_spreadsheet_request.rb +1 -1
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_worksheet__legacy_put_request.rb +165 -0
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_worksheet_request.rb +1 -1
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +9 -0
- metadata +12 -11
- data/spec/client_spec.rb +0 -114
- data/spec/configuration_spec.rb +0 -61
- data/spec/form_file_spec.rb +0 -47
- data/spec/model_spec.rb +0 -73
- data/spec/request_spec.rb +0 -87
- data/spec/rich_response_spec.rb +0 -46
- data/spec/sdk_error_spec.rb +0 -27
- data/spec/spec_helper.rb +0 -21
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="AggregateCellsByColor_Deprecated_request.rb.cs">
|
|
4
|
+
Copyright (c) 2026 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>
|
|
25
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
26
|
+
=end
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
require "uri"
|
|
30
|
+
|
|
31
|
+
module AsposeCellsCloud
|
|
32
|
+
class AggregateCellsByColor_DeprecatedRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :spreadsheet
|
|
35
|
+
attr_accessor :worksheet
|
|
36
|
+
attr_accessor :range
|
|
37
|
+
attr_accessor :operation
|
|
38
|
+
attr_accessor :color_position
|
|
39
|
+
attr_accessor :region
|
|
40
|
+
attr_accessor :password
|
|
41
|
+
|
|
42
|
+
def initialize(attributes = {})
|
|
43
|
+
return unless attributes.is_a?(Hash)
|
|
44
|
+
|
|
45
|
+
# convert string to symbol for hash key
|
|
46
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
47
|
+
|
|
48
|
+
if attributes.has_key?(:'Spreadsheet')
|
|
49
|
+
self.spreadsheet = attributes[:'Spreadsheet']
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
if attributes.has_key?(:'worksheet')
|
|
53
|
+
self.worksheet = attributes[:'worksheet']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
if attributes.has_key?(:'range')
|
|
57
|
+
self.range = attributes[:'range']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
if attributes.has_key?(:'operation')
|
|
61
|
+
self.operation = attributes[:'operation']
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
if attributes.has_key?(:'colorPosition')
|
|
65
|
+
self.color_position = attributes[:'colorPosition']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'region')
|
|
69
|
+
self.region = attributes[:'region']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.has_key?(:'password')
|
|
73
|
+
self.password = attributes[:'password']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
end
|
|
77
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
78
|
+
def self.attribute_map
|
|
79
|
+
{
|
|
80
|
+
:'spreadsheet' => :'Spreadsheet',
|
|
81
|
+
:'worksheet' => :'worksheet',
|
|
82
|
+
:'range' => :'range',
|
|
83
|
+
:'operation' => :'operation',
|
|
84
|
+
:'color_position' => :'colorPosition',
|
|
85
|
+
:'region' => :'region',
|
|
86
|
+
:'password' => :'password'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Attribute type mapping.
|
|
91
|
+
def self.swagger_types
|
|
92
|
+
{
|
|
93
|
+
:'spreadsheet' => :'String',
|
|
94
|
+
:'worksheet' => :'String',
|
|
95
|
+
:'range' => :'String',
|
|
96
|
+
:'operation' => :'String',
|
|
97
|
+
:'color_position' => :'String',
|
|
98
|
+
:'region' => :'String',
|
|
99
|
+
:'password' => :'String'
|
|
100
|
+
}
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def create_http_request(api_client,opts = {})
|
|
104
|
+
if api_client.config.debugging
|
|
105
|
+
api_client.config.logger.debug "Calling API: CellsApi.aggregate_cells_by_color__deprecated ..."
|
|
106
|
+
end
|
|
107
|
+
api_client.request_token_if_needed
|
|
108
|
+
# verify the required parameter 'spreadsheet' is set
|
|
109
|
+
if api_client.config.client_side_validation && spreadsheet.nil?
|
|
110
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.aggregate_cells_by_color__deprecated "
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = "v4.0/cells/calculate/aggergate/color"
|
|
115
|
+
# query parameters
|
|
116
|
+
query_params = {}
|
|
117
|
+
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
|
118
|
+
query_params[:'range'] = self.range if !self.range.nil?
|
|
119
|
+
query_params[:'operation'] = self.operation if !self.operation.nil?
|
|
120
|
+
query_params[:'colorPosition'] = self.color_position if !self.color_position.nil?
|
|
121
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
122
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
123
|
+
|
|
124
|
+
# header parameters
|
|
125
|
+
header_params = {}
|
|
126
|
+
# HTTP header 'Accept' (if needed)
|
|
127
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
128
|
+
# HTTP header 'Content-Type'
|
|
129
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
130
|
+
|
|
131
|
+
# form parameters
|
|
132
|
+
form_params = {}
|
|
133
|
+
post_body = nil
|
|
134
|
+
|
|
135
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
136
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
137
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
#auth_names = []
|
|
141
|
+
auth_names = ['JWT']
|
|
142
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
143
|
+
:header_params => header_params,
|
|
144
|
+
:query_params => query_params,
|
|
145
|
+
:form_params => form_params,
|
|
146
|
+
:body => post_body,
|
|
147
|
+
:auth_names => auth_names,
|
|
148
|
+
:return_type => 'AggregateResultByColorResponse')
|
|
149
|
+
if api_client.config.debugging
|
|
150
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.aggregate_cells_by_color__deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
151
|
+
end
|
|
152
|
+
return data, status_code, headers
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
@@ -111,7 +111,7 @@ module AsposeCellsCloud
|
|
|
111
111
|
end
|
|
112
112
|
|
|
113
113
|
# resource path
|
|
114
|
-
local_var_path = "v4.0/cells/calculate/
|
|
114
|
+
local_var_path = "v4.0/cells/calculate/aggregate/color"
|
|
115
115
|
# query parameters
|
|
116
116
|
query_params = {}
|
|
117
117
|
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="SearchAllTextItemsInRemoteSpreadsheet_LegacyPut_request.rb.cs">
|
|
4
|
+
Copyright (c) 2026 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>
|
|
25
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
26
|
+
=end
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
require "uri"
|
|
30
|
+
|
|
31
|
+
module AsposeCellsCloud
|
|
32
|
+
class SearchAllTextItemsInRemoteSpreadsheet_LegacyPutRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :name
|
|
35
|
+
attr_accessor :folder
|
|
36
|
+
attr_accessor :storage_name
|
|
37
|
+
attr_accessor :region
|
|
38
|
+
attr_accessor :password
|
|
39
|
+
|
|
40
|
+
def initialize(attributes = {})
|
|
41
|
+
return unless attributes.is_a?(Hash)
|
|
42
|
+
|
|
43
|
+
# convert string to symbol for hash key
|
|
44
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
45
|
+
|
|
46
|
+
if attributes.has_key?(:'name')
|
|
47
|
+
self.name = attributes[:'name']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
if attributes.has_key?(:'folder')
|
|
51
|
+
self.folder = attributes[:'folder']
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
if attributes.has_key?(:'storageName')
|
|
55
|
+
self.storage_name = attributes[:'storageName']
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
if attributes.has_key?(:'region')
|
|
59
|
+
self.region = attributes[:'region']
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
if attributes.has_key?(:'password')
|
|
63
|
+
self.password = attributes[:'password']
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
end
|
|
67
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
68
|
+
def self.attribute_map
|
|
69
|
+
{
|
|
70
|
+
:'name' => :'name',
|
|
71
|
+
:'folder' => :'folder',
|
|
72
|
+
:'storage_name' => :'storageName',
|
|
73
|
+
:'region' => :'region',
|
|
74
|
+
:'password' => :'password'
|
|
75
|
+
}
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Attribute type mapping.
|
|
79
|
+
def self.swagger_types
|
|
80
|
+
{
|
|
81
|
+
:'name' => :'String',
|
|
82
|
+
:'folder' => :'String',
|
|
83
|
+
:'storage_name' => :'String',
|
|
84
|
+
:'region' => :'String',
|
|
85
|
+
:'password' => :'String'
|
|
86
|
+
}
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def create_http_request(api_client,opts = {})
|
|
90
|
+
if api_client.config.debugging
|
|
91
|
+
api_client.config.logger.debug "Calling API: CellsApi.search_all_text_items_in_remote_spreadsheet__legacy_put ..."
|
|
92
|
+
end
|
|
93
|
+
api_client.request_token_if_needed
|
|
94
|
+
# verify the required parameter 'name' is set
|
|
95
|
+
if api_client.config.client_side_validation && name.nil?
|
|
96
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.search_all_text_items_in_remote_spreadsheet__legacy_put "
|
|
97
|
+
end
|
|
98
|
+
# verify the required parameter 'folder' is set
|
|
99
|
+
if api_client.config.client_side_validation && folder.nil?
|
|
100
|
+
fail ArgumentError, "Missing the required parameter 'folder' when calling CellsApi.search_all_text_items_in_remote_spreadsheet__legacy_put "
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# resource path
|
|
104
|
+
local_var_path = "v4.0/cells/{name}/search/content/all-textitems".sub('{' + 'name' + '}', name.to_s)
|
|
105
|
+
# query parameters
|
|
106
|
+
query_params = {}
|
|
107
|
+
query_params[:'folder'] = self.folder if !self.folder.nil?
|
|
108
|
+
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
|
109
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
110
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
111
|
+
|
|
112
|
+
# header parameters
|
|
113
|
+
header_params = {}
|
|
114
|
+
# HTTP header 'Accept' (if needed)
|
|
115
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
116
|
+
# HTTP header 'Content-Type'
|
|
117
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
118
|
+
|
|
119
|
+
# form parameters
|
|
120
|
+
form_params = {}
|
|
121
|
+
post_body = nil
|
|
122
|
+
|
|
123
|
+
#auth_names = []
|
|
124
|
+
auth_names = ['JWT']
|
|
125
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
126
|
+
:header_params => header_params,
|
|
127
|
+
:query_params => query_params,
|
|
128
|
+
:form_params => form_params,
|
|
129
|
+
:body => post_body,
|
|
130
|
+
:auth_names => auth_names,
|
|
131
|
+
:return_type => 'SearchResponse')
|
|
132
|
+
if api_client.config.debugging
|
|
133
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.search_all_text_items_in_remote_spreadsheet__legacy_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
134
|
+
end
|
|
135
|
+
return data, status_code, headers
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
end
|
|
@@ -122,7 +122,7 @@ module AsposeCellsCloud
|
|
|
122
122
|
|
|
123
123
|
#auth_names = []
|
|
124
124
|
auth_names = ['JWT']
|
|
125
|
-
data, status_code, headers = api_client.call_api(:
|
|
125
|
+
data, status_code, headers = api_client.call_api(:GET, local_var_path,
|
|
126
126
|
:header_params => header_params,
|
|
127
127
|
:query_params => query_params,
|
|
128
128
|
:form_params => form_params,
|
data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_range__legacy_put_request.rb
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="SearchBrokenLinksInRemoteRange_LegacyPut_request.rb.cs">
|
|
4
|
+
Copyright (c) 2026 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>
|
|
25
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
26
|
+
=end
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
require "uri"
|
|
30
|
+
|
|
31
|
+
module AsposeCellsCloud
|
|
32
|
+
class SearchBrokenLinksInRemoteRange_LegacyPutRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :name
|
|
35
|
+
attr_accessor :worksheet
|
|
36
|
+
attr_accessor :cell_area
|
|
37
|
+
attr_accessor :folder
|
|
38
|
+
attr_accessor :storage_name
|
|
39
|
+
attr_accessor :region
|
|
40
|
+
attr_accessor :password
|
|
41
|
+
|
|
42
|
+
def initialize(attributes = {})
|
|
43
|
+
return unless attributes.is_a?(Hash)
|
|
44
|
+
|
|
45
|
+
# convert string to symbol for hash key
|
|
46
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
47
|
+
|
|
48
|
+
if attributes.has_key?(:'name')
|
|
49
|
+
self.name = attributes[:'name']
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
if attributes.has_key?(:'worksheet')
|
|
53
|
+
self.worksheet = attributes[:'worksheet']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
if attributes.has_key?(:'cellArea')
|
|
57
|
+
self.cell_area = attributes[:'cellArea']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
if attributes.has_key?(:'folder')
|
|
61
|
+
self.folder = attributes[:'folder']
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
if attributes.has_key?(:'storageName')
|
|
65
|
+
self.storage_name = attributes[:'storageName']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'region')
|
|
69
|
+
self.region = attributes[:'region']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.has_key?(:'password')
|
|
73
|
+
self.password = attributes[:'password']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
end
|
|
77
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
78
|
+
def self.attribute_map
|
|
79
|
+
{
|
|
80
|
+
:'name' => :'name',
|
|
81
|
+
:'worksheet' => :'worksheet',
|
|
82
|
+
:'cell_area' => :'cellArea',
|
|
83
|
+
:'folder' => :'folder',
|
|
84
|
+
:'storage_name' => :'storageName',
|
|
85
|
+
:'region' => :'region',
|
|
86
|
+
:'password' => :'password'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Attribute type mapping.
|
|
91
|
+
def self.swagger_types
|
|
92
|
+
{
|
|
93
|
+
:'name' => :'String',
|
|
94
|
+
:'worksheet' => :'String',
|
|
95
|
+
:'cell_area' => :'String',
|
|
96
|
+
:'folder' => :'String',
|
|
97
|
+
:'storage_name' => :'String',
|
|
98
|
+
:'region' => :'String',
|
|
99
|
+
:'password' => :'String'
|
|
100
|
+
}
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def create_http_request(api_client,opts = {})
|
|
104
|
+
if api_client.config.debugging
|
|
105
|
+
api_client.config.logger.debug "Calling API: CellsApi.search_broken_links_in_remote_range__legacy_put ..."
|
|
106
|
+
end
|
|
107
|
+
api_client.request_token_if_needed
|
|
108
|
+
# verify the required parameter 'name' is set
|
|
109
|
+
if api_client.config.client_side_validation && name.nil?
|
|
110
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.search_broken_links_in_remote_range__legacy_put "
|
|
111
|
+
end
|
|
112
|
+
# verify the required parameter 'worksheet' is set
|
|
113
|
+
if api_client.config.client_side_validation && worksheet.nil?
|
|
114
|
+
fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.search_broken_links_in_remote_range__legacy_put "
|
|
115
|
+
end
|
|
116
|
+
# verify the required parameter 'cell_area' is set
|
|
117
|
+
if api_client.config.client_side_validation && cell_area.nil?
|
|
118
|
+
fail ArgumentError, "Missing the required parameter 'cell_area' when calling CellsApi.search_broken_links_in_remote_range__legacy_put "
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# resource path
|
|
122
|
+
local_var_path = "v4.0/cells/{name}/worksheets/{worksheet}/ranges/{cellArea}/search/broken-links".sub('{' + 'name' + '}', name.to_s).sub('{' + 'worksheet' + '}', worksheet.to_s).sub('{' + 'cellArea' + '}', cell_area.to_s)
|
|
123
|
+
# query parameters
|
|
124
|
+
query_params = {}
|
|
125
|
+
query_params[:'folder'] = self.folder if !self.folder.nil?
|
|
126
|
+
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
|
127
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
128
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
129
|
+
|
|
130
|
+
# header parameters
|
|
131
|
+
header_params = {}
|
|
132
|
+
# HTTP header 'Accept' (if needed)
|
|
133
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
134
|
+
# HTTP header 'Content-Type'
|
|
135
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
136
|
+
|
|
137
|
+
# form parameters
|
|
138
|
+
form_params = {}
|
|
139
|
+
post_body = nil
|
|
140
|
+
|
|
141
|
+
#auth_names = []
|
|
142
|
+
auth_names = ['JWT']
|
|
143
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
144
|
+
:header_params => header_params,
|
|
145
|
+
:query_params => query_params,
|
|
146
|
+
:form_params => form_params,
|
|
147
|
+
:body => post_body,
|
|
148
|
+
:auth_names => auth_names,
|
|
149
|
+
:return_type => 'BrokenLinksResponse')
|
|
150
|
+
if api_client.config.debugging
|
|
151
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.search_broken_links_in_remote_range__legacy_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
152
|
+
end
|
|
153
|
+
return data, status_code, headers
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -140,7 +140,7 @@ module AsposeCellsCloud
|
|
|
140
140
|
|
|
141
141
|
#auth_names = []
|
|
142
142
|
auth_names = ['JWT']
|
|
143
|
-
data, status_code, headers = api_client.call_api(:
|
|
143
|
+
data, status_code, headers = api_client.call_api(:GET, local_var_path,
|
|
144
144
|
:header_params => header_params,
|
|
145
145
|
:query_params => query_params,
|
|
146
146
|
:form_params => form_params,
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="SearchBrokenLinksInRemoteSpreadsheet_LegacyPut_request.rb.cs">
|
|
4
|
+
Copyright (c) 2026 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>
|
|
25
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
26
|
+
=end
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
require "uri"
|
|
30
|
+
|
|
31
|
+
module AsposeCellsCloud
|
|
32
|
+
class SearchBrokenLinksInRemoteSpreadsheet_LegacyPutRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :name
|
|
35
|
+
attr_accessor :worksheet
|
|
36
|
+
attr_accessor :cell_area
|
|
37
|
+
attr_accessor :folder
|
|
38
|
+
attr_accessor :storage_name
|
|
39
|
+
attr_accessor :region
|
|
40
|
+
attr_accessor :password
|
|
41
|
+
|
|
42
|
+
def initialize(attributes = {})
|
|
43
|
+
return unless attributes.is_a?(Hash)
|
|
44
|
+
|
|
45
|
+
# convert string to symbol for hash key
|
|
46
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
47
|
+
|
|
48
|
+
if attributes.has_key?(:'name')
|
|
49
|
+
self.name = attributes[:'name']
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
if attributes.has_key?(:'worksheet')
|
|
53
|
+
self.worksheet = attributes[:'worksheet']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
if attributes.has_key?(:'cellArea')
|
|
57
|
+
self.cell_area = attributes[:'cellArea']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
if attributes.has_key?(:'folder')
|
|
61
|
+
self.folder = attributes[:'folder']
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
if attributes.has_key?(:'storageName')
|
|
65
|
+
self.storage_name = attributes[:'storageName']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'region')
|
|
69
|
+
self.region = attributes[:'region']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.has_key?(:'password')
|
|
73
|
+
self.password = attributes[:'password']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
end
|
|
77
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
78
|
+
def self.attribute_map
|
|
79
|
+
{
|
|
80
|
+
:'name' => :'name',
|
|
81
|
+
:'worksheet' => :'worksheet',
|
|
82
|
+
:'cell_area' => :'cellArea',
|
|
83
|
+
:'folder' => :'folder',
|
|
84
|
+
:'storage_name' => :'storageName',
|
|
85
|
+
:'region' => :'region',
|
|
86
|
+
:'password' => :'password'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Attribute type mapping.
|
|
91
|
+
def self.swagger_types
|
|
92
|
+
{
|
|
93
|
+
:'name' => :'String',
|
|
94
|
+
:'worksheet' => :'String',
|
|
95
|
+
:'cell_area' => :'String',
|
|
96
|
+
:'folder' => :'String',
|
|
97
|
+
:'storage_name' => :'String',
|
|
98
|
+
:'region' => :'String',
|
|
99
|
+
:'password' => :'String'
|
|
100
|
+
}
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def create_http_request(api_client,opts = {})
|
|
104
|
+
if api_client.config.debugging
|
|
105
|
+
api_client.config.logger.debug "Calling API: CellsApi.search_broken_links_in_remote_spreadsheet__legacy_put ..."
|
|
106
|
+
end
|
|
107
|
+
api_client.request_token_if_needed
|
|
108
|
+
# verify the required parameter 'name' is set
|
|
109
|
+
if api_client.config.client_side_validation && name.nil?
|
|
110
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.search_broken_links_in_remote_spreadsheet__legacy_put "
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = "v4.0/cells/{name}/search/broken-links".sub('{' + 'name' + '}', name.to_s)
|
|
115
|
+
# query parameters
|
|
116
|
+
query_params = {}
|
|
117
|
+
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
|
118
|
+
query_params[:'cellArea'] = self.cell_area if !self.cell_area.nil?
|
|
119
|
+
query_params[:'folder'] = self.folder if !self.folder.nil?
|
|
120
|
+
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
|
121
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
122
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
123
|
+
|
|
124
|
+
# header parameters
|
|
125
|
+
header_params = {}
|
|
126
|
+
# HTTP header 'Accept' (if needed)
|
|
127
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
128
|
+
# HTTP header 'Content-Type'
|
|
129
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
130
|
+
|
|
131
|
+
# form parameters
|
|
132
|
+
form_params = {}
|
|
133
|
+
post_body = nil
|
|
134
|
+
|
|
135
|
+
#auth_names = []
|
|
136
|
+
auth_names = ['JWT']
|
|
137
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
138
|
+
:header_params => header_params,
|
|
139
|
+
:query_params => query_params,
|
|
140
|
+
:form_params => form_params,
|
|
141
|
+
:body => post_body,
|
|
142
|
+
:auth_names => auth_names,
|
|
143
|
+
:return_type => 'BrokenLinksResponse')
|
|
144
|
+
if api_client.config.debugging
|
|
145
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.search_broken_links_in_remote_spreadsheet__legacy_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
146
|
+
end
|
|
147
|
+
return data, status_code, headers
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
@@ -134,7 +134,7 @@ module AsposeCellsCloud
|
|
|
134
134
|
|
|
135
135
|
#auth_names = []
|
|
136
136
|
auth_names = ['JWT']
|
|
137
|
-
data, status_code, headers = api_client.call_api(:
|
|
137
|
+
data, status_code, headers = api_client.call_api(:GET, local_var_path,
|
|
138
138
|
:header_params => header_params,
|
|
139
139
|
:query_params => query_params,
|
|
140
140
|
:form_params => form_params,
|