crx_packmgr_api_client 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +7 -0
- data/Gemfile.lock +105 -0
- data/README.md +6 -7
- data/Rakefile +8 -0
- data/coverage/.last_run.json +5 -0
- data/coverage/.resultset.json +4814 -0
- data/coverage/.resultset.json.lock +0 -0
- data/coverage/assets/0.10.2/application.css +799 -0
- data/coverage/assets/0.10.2/application.js +1707 -0
- data/coverage/assets/0.10.2/colorbox/border.png +0 -0
- data/coverage/assets/0.10.2/colorbox/controls.png +0 -0
- data/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
- data/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.10.2/favicon_green.png +0 -0
- data/coverage/assets/0.10.2/favicon_red.png +0 -0
- data/coverage/assets/0.10.2/favicon_yellow.png +0 -0
- data/coverage/assets/0.10.2/loading.gif +0 -0
- data/coverage/assets/0.10.2/magnify.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/index.html +29254 -0
- data/crx_packmgr_api_client.gemspec +18 -15
- data/docs/DefaultApi.md +15 -15
- data/git_push.sh +31 -16
- data/lib/crx_packmgr_api_client.rb +2 -2
- data/lib/crx_packmgr_api_client/api/default_api.rb +68 -126
- data/lib/crx_packmgr_api_client/api_client.rb +61 -40
- data/lib/crx_packmgr_api_client/api_error.rb +9 -7
- data/lib/crx_packmgr_api_client/configuration.rb +9 -3
- data/lib/crx_packmgr_api_client/models/filter.rb +11 -16
- data/lib/crx_packmgr_api_client/models/filter_rule.rb +14 -18
- data/lib/crx_packmgr_api_client/models/group.rb +11 -16
- data/lib/crx_packmgr_api_client/models/group_list.rb +11 -16
- data/lib/crx_packmgr_api_client/models/init_data.rb +11 -16
- data/lib/crx_packmgr_api_client/models/install_status.rb +11 -16
- data/lib/crx_packmgr_api_client/models/install_status_status.rb +11 -16
- data/lib/crx_packmgr_api_client/models/package.rb +11 -16
- data/lib/crx_packmgr_api_client/models/package_list.rb +11 -16
- data/lib/crx_packmgr_api_client/models/service_exec_response.rb +11 -16
- data/lib/crx_packmgr_api_client/models/service_response.rb +11 -16
- data/lib/crx_packmgr_api_client/models/service_response_request.rb +11 -16
- data/lib/crx_packmgr_api_client/models/service_response_request_param.rb +11 -16
- data/lib/crx_packmgr_api_client/models/service_response_response.rb +11 -16
- data/lib/crx_packmgr_api_client/models/update_status.rb +11 -16
- data/lib/crx_packmgr_api_client/version.rb +3 -3
- data/spec/api/download_api_spec.rb +1 -1
- data/spec/api/screenshot_api_spec.rb +1 -1
- data/spec/api/thumbnail_api_spec.rb +1 -1
- metadata +104 -98
- data/crx_packmgr_api_client-0.2.0.gem +0 -0
- data/crx_packmgr_api_client-1.0.0.gem +0 -0
- data/crx_packmgr_api_client-1.1.0.gem +0 -0
- data/crx_packmgr_api_client-1.1.1.gem +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
#
|
3
3
|
=begin
|
4
|
-
|
4
|
+
CRX Package Manager API
|
5
5
|
|
6
|
-
|
6
|
+
API for interacting with the CRX Package Manager in AEM.
|
7
7
|
|
8
8
|
OpenAPI spec version: 6.2.0
|
9
9
|
Contact: bryan.stopp@gmail.com
|
@@ -38,22 +38,25 @@ Gem::Specification.new do |s|
|
|
38
38
|
s.license = "Apache-2.0"
|
39
39
|
s.required_ruby_version = ">= 1.9"
|
40
40
|
|
41
|
-
s.add_runtime_dependency 'typhoeus', '~> 1.
|
42
|
-
s.add_runtime_dependency 'json', '~>
|
41
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.3'
|
42
|
+
s.add_runtime_dependency 'json', '~> 2.0'
|
43
|
+
s.add_runtime_dependency 'xml-simple', '~>1.1'
|
43
44
|
|
44
|
-
s.add_development_dependency 'rspec', '~> 3.
|
45
|
-
s.add_development_dependency 'vcr', '~>
|
46
|
-
s.add_development_dependency 'webmock', '~>
|
47
|
-
s.add_development_dependency 'autotest', '~>
|
48
|
-
s.add_development_dependency 'autotest-rails-pure', '~> 4.1'
|
49
|
-
s.add_development_dependency 'autotest-growl', '~> 0.2'
|
50
|
-
s.add_development_dependency 'autotest-fsevent', '~> 0.2'
|
45
|
+
s.add_development_dependency 'rspec', '~> 3.8'
|
46
|
+
s.add_development_dependency 'vcr', '~> 5.0'
|
47
|
+
s.add_development_dependency 'webmock', '~> 3.6'
|
48
|
+
s.add_development_dependency 'autotest', '~> 5.0'
|
49
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1'
|
50
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2'
|
51
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2'
|
51
52
|
|
52
|
-
s.add_development_dependency 'rubocop'
|
53
|
-
s.add_development_dependency 'simplecov'
|
54
|
-
s.add_development_dependency 'codeclimate-test-reporter'
|
53
|
+
s.add_development_dependency 'rubocop', '~>0', '>=0.49.0'
|
54
|
+
s.add_development_dependency 'simplecov', '~>0'
|
55
|
+
s.add_development_dependency 'codeclimate-test-reporter', '~>1.0'
|
55
56
|
|
56
|
-
s.
|
57
|
+
s.add_development_dependency 'gem-release', '~>2.0'
|
58
|
+
|
59
|
+
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? && !f.end_with?('.gem') }
|
57
60
|
s.test_files = `find spec/*`.split("\n")
|
58
61
|
s.executables = []
|
59
62
|
s.require_paths = ["lib"]
|
data/docs/DefaultApi.md
CHANGED
@@ -37,7 +37,7 @@ end
|
|
37
37
|
api_instance = CrxPackageManager::DefaultApi.new
|
38
38
|
|
39
39
|
opts = {
|
40
|
-
path:
|
40
|
+
path: 'path_example' # String | The path to the package to download.
|
41
41
|
}
|
42
42
|
|
43
43
|
begin
|
@@ -91,7 +91,7 @@ end
|
|
91
91
|
api_instance = CrxPackageManager::DefaultApi.new
|
92
92
|
|
93
93
|
opts = {
|
94
|
-
compress_version:
|
94
|
+
compress_version: 'compress_version_example', # String | Compress versions; count all versions of the same packages as a single entry.
|
95
95
|
include_all: true, # BOOLEAN | Return a total count of all packages. Defaults to false.
|
96
96
|
include_root: true, # BOOLEAN | Include the root package. Defaults to false.
|
97
97
|
include_my_packages: true, # BOOLEAN | Include the 'my_packages' group. Only applicable if the group has no packages. Defaults to false.
|
@@ -247,9 +247,9 @@ end
|
|
247
247
|
api_instance = CrxPackageManager::DefaultApi.new
|
248
248
|
|
249
249
|
opts = {
|
250
|
-
q:
|
250
|
+
q: 'q_example', # String | Term to search within package names.
|
251
251
|
include_versions: true, # BOOLEAN | Include versions of package in results.
|
252
|
-
path:
|
252
|
+
path: 'path_example' # String | The path to a specific package definition.
|
253
253
|
}
|
254
254
|
|
255
255
|
begin
|
@@ -305,7 +305,7 @@ end
|
|
305
305
|
api_instance = CrxPackageManager::DefaultApi.new
|
306
306
|
|
307
307
|
opts = {
|
308
|
-
path:
|
308
|
+
path: 'path_example' # String | The path to the screenshot.
|
309
309
|
}
|
310
310
|
|
311
311
|
begin
|
@@ -358,13 +358,13 @@ end
|
|
358
358
|
|
359
359
|
api_instance = CrxPackageManager::DefaultApi.new
|
360
360
|
|
361
|
-
cmd =
|
361
|
+
cmd = 'cmd_example' # String | The command to execute.
|
362
362
|
|
363
|
-
name =
|
363
|
+
name = 'name_example' # String | The name of the package on which to execute the command.
|
364
364
|
|
365
|
-
group =
|
365
|
+
group = 'group_example' # String | The group of the package on which to execute the command.
|
366
366
|
|
367
|
-
version =
|
367
|
+
version = 'version_example' # String | The version of the package on which to execute the command.
|
368
368
|
|
369
369
|
|
370
370
|
begin
|
@@ -420,11 +420,11 @@ end
|
|
420
420
|
|
421
421
|
api_instance = CrxPackageManager::DefaultApi.new
|
422
422
|
|
423
|
-
cmd =
|
423
|
+
cmd = 'cmd_example' # String | The command to execute.
|
424
424
|
|
425
425
|
opts = {
|
426
|
-
name:
|
427
|
-
group:
|
426
|
+
name: 'name_example', # String | The name of the package on which to execute the command.
|
427
|
+
group: 'group_example', # String | The group of the package on which to execute the command.
|
428
428
|
strict: true # BOOLEAN | Fail on an error.
|
429
429
|
}
|
430
430
|
|
@@ -481,10 +481,10 @@ end
|
|
481
481
|
|
482
482
|
api_instance = CrxPackageManager::DefaultApi.new
|
483
483
|
|
484
|
-
file = File.new(
|
484
|
+
file = File.new('/path/to/file.txt') # File | Package file to upload
|
485
485
|
|
486
486
|
opts = {
|
487
|
-
name:
|
487
|
+
name: 'name_example', # String | The hint for the package's name if the definiton doesn't have one.
|
488
488
|
strict: true, # BOOLEAN | Fail on an error.
|
489
489
|
force: true, # BOOLEAN | Force the package upload.
|
490
490
|
install: true # BOOLEAN | Install the package upon upload
|
@@ -545,7 +545,7 @@ end
|
|
545
545
|
api_instance = CrxPackageManager::DefaultApi.new
|
546
546
|
|
547
547
|
opts = {
|
548
|
-
path:
|
548
|
+
path: 'path_example' # String | The path to the package.
|
549
549
|
}
|
550
550
|
|
551
551
|
begin
|
data/git_push.sh
CHANGED
@@ -1,38 +1,53 @@
|
|
1
1
|
#!/bin/sh
|
2
|
-
#
|
3
|
-
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
-
#
|
5
2
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
3
|
#
|
7
4
|
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
5
|
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
cd "$(dirname "$0")"
|
7
|
+
|
8
|
+
git_user_id=$1
|
9
|
+
git_repo_id=$2
|
10
|
+
release_note=$3
|
11
|
+
|
12
|
+
if [ "$git_user_id" = "" ]; then
|
13
|
+
git_user_id="bstopp"
|
14
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
15
|
+
fi
|
12
16
|
|
17
|
+
if [ "$git_repo_id" = "" ]; then
|
18
|
+
git_repo_id="crx-packmgr-api-client-gem"
|
19
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
20
|
+
fi
|
13
21
|
|
14
22
|
if [ "$release_note" = "" ]; then
|
15
|
-
|
16
|
-
|
23
|
+
echo "[ERROR] No release note provided. Exiting."
|
24
|
+
exit
|
17
25
|
fi
|
18
26
|
|
19
27
|
# Initialize the local directory as a Git repository
|
20
28
|
git init
|
21
29
|
|
22
|
-
# Adds the files in the local repository and stages them for commit.
|
23
|
-
git add .
|
24
|
-
|
25
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
26
|
-
git commit -m "$release_note"
|
27
|
-
|
28
30
|
# Sets the new remote
|
29
31
|
git_remote=`git remote`
|
30
32
|
if [ "$git_remote" = "" ]; then # git remote not defined
|
31
|
-
|
33
|
+
|
34
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
35
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
|
36
|
+
git remote add origin git@github.com:${git_user_id}/${git_repo_id}.git
|
37
|
+
else
|
38
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
39
|
+
fi
|
40
|
+
|
32
41
|
fi
|
33
42
|
|
34
43
|
git pull origin master
|
35
44
|
|
45
|
+
# Adds the files in the local repository and stages them for commit.
|
46
|
+
git add .
|
47
|
+
|
48
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
49
|
+
git commit -m "$release_note"
|
50
|
+
|
36
51
|
# Pushes (Forces) the changes in the local repository up to the remote repository
|
37
52
|
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
38
|
-
git push origin master 2>&1
|
53
|
+
git push origin master 2>&1 | grep -v 'To git:'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
|
2
|
+
CRX Package Manager API
|
3
3
|
|
4
|
-
|
4
|
+
API for interacting with the CRX Package Manager in AEM.
|
5
5
|
|
6
6
|
OpenAPI spec version: 6.2.0
|
7
7
|
Contact: bryan.stopp@gmail.com
|
@@ -21,7 +21,7 @@ limitations under the License.
|
|
21
21
|
|
22
22
|
=end
|
23
23
|
|
24
|
-
require
|
24
|
+
require 'uri'
|
25
25
|
|
26
26
|
module CrxPackageManager
|
27
27
|
class DefaultApi
|
@@ -30,7 +30,6 @@ module CrxPackageManager
|
|
30
30
|
def initialize(api_client = ApiClient.default)
|
31
31
|
@api_client = api_client
|
32
32
|
end
|
33
|
-
|
34
33
|
# Download a package
|
35
34
|
# Downloads the package at the specified path. Returns a Tempfile object.
|
36
35
|
# @param [Hash] opts the optional parameters
|
@@ -38,7 +37,7 @@ module CrxPackageManager
|
|
38
37
|
# @return [File]
|
39
38
|
def download(opts = {})
|
40
39
|
data, _status_code, _headers = download_with_http_info(opts)
|
41
|
-
|
40
|
+
data
|
42
41
|
end
|
43
42
|
|
44
43
|
# Download a package
|
@@ -48,10 +47,10 @@ module CrxPackageManager
|
|
48
47
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
49
48
|
def download_with_http_info(opts = {})
|
50
49
|
if @api_client.config.debugging
|
51
|
-
@api_client.config.logger.debug
|
50
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.download ...'
|
52
51
|
end
|
53
52
|
# resource path
|
54
|
-
local_var_path =
|
53
|
+
local_var_path = '/download.jsp'
|
55
54
|
|
56
55
|
# query parameters
|
57
56
|
query_params = {}
|
@@ -59,14 +58,8 @@ module CrxPackageManager
|
|
59
58
|
|
60
59
|
# header parameters
|
61
60
|
header_params = {}
|
62
|
-
|
63
61
|
# HTTP header 'Accept' (if needed)
|
64
|
-
|
65
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
66
|
-
|
67
|
-
# HTTP header 'Content-Type'
|
68
|
-
local_header_content_type = []
|
69
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream', 'application/zip'])
|
70
63
|
|
71
64
|
# form parameters
|
72
65
|
form_params = {}
|
@@ -86,7 +79,6 @@ module CrxPackageManager
|
|
86
79
|
end
|
87
80
|
return data, status_code, headers
|
88
81
|
end
|
89
|
-
|
90
82
|
# List package groups
|
91
83
|
# Returns a list of all package groups available.
|
92
84
|
# @param [Hash] opts the optional parameters
|
@@ -98,7 +90,7 @@ module CrxPackageManager
|
|
98
90
|
# @return [GroupList]
|
99
91
|
def groups(opts = {})
|
100
92
|
data, _status_code, _headers = groups_with_http_info(opts)
|
101
|
-
|
93
|
+
data
|
102
94
|
end
|
103
95
|
|
104
96
|
# List package groups
|
@@ -112,10 +104,10 @@ module CrxPackageManager
|
|
112
104
|
# @return [Array<(GroupList, Fixnum, Hash)>] GroupList data, response status code and response headers
|
113
105
|
def groups_with_http_info(opts = {})
|
114
106
|
if @api_client.config.debugging
|
115
|
-
@api_client.config.logger.debug
|
107
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.groups ...'
|
116
108
|
end
|
117
109
|
# resource path
|
118
|
-
local_var_path =
|
110
|
+
local_var_path = '/groups.jsp'
|
119
111
|
|
120
112
|
# query parameters
|
121
113
|
query_params = {}
|
@@ -127,14 +119,8 @@ module CrxPackageManager
|
|
127
119
|
|
128
120
|
# header parameters
|
129
121
|
header_params = {}
|
130
|
-
|
131
122
|
# HTTP header 'Accept' (if needed)
|
132
|
-
|
133
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
134
|
-
|
135
|
-
# HTTP header 'Content-Type'
|
136
|
-
local_header_content_type = []
|
137
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
138
124
|
|
139
125
|
# form parameters
|
140
126
|
form_params = {}
|
@@ -154,14 +140,13 @@ module CrxPackageManager
|
|
154
140
|
end
|
155
141
|
return data, status_code, headers
|
156
142
|
end
|
157
|
-
|
158
143
|
# Metadata
|
159
144
|
# Display metadata about this package manager.
|
160
145
|
# @param [Hash] opts the optional parameters
|
161
146
|
# @return [InitData]
|
162
147
|
def init(opts = {})
|
163
148
|
data, _status_code, _headers = init_with_http_info(opts)
|
164
|
-
|
149
|
+
data
|
165
150
|
end
|
166
151
|
|
167
152
|
# Metadata
|
@@ -170,24 +155,18 @@ module CrxPackageManager
|
|
170
155
|
# @return [Array<(InitData, Fixnum, Hash)>] InitData data, response status code and response headers
|
171
156
|
def init_with_http_info(opts = {})
|
172
157
|
if @api_client.config.debugging
|
173
|
-
@api_client.config.logger.debug
|
158
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.init ...'
|
174
159
|
end
|
175
160
|
# resource path
|
176
|
-
local_var_path =
|
161
|
+
local_var_path = '/init.jsp'
|
177
162
|
|
178
163
|
# query parameters
|
179
164
|
query_params = {}
|
180
165
|
|
181
166
|
# header parameters
|
182
167
|
header_params = {}
|
183
|
-
|
184
168
|
# HTTP header 'Accept' (if needed)
|
185
|
-
|
186
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
187
|
-
|
188
|
-
# HTTP header 'Content-Type'
|
189
|
-
local_header_content_type = []
|
190
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
169
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
191
170
|
|
192
171
|
# form parameters
|
193
172
|
form_params = {}
|
@@ -207,14 +186,13 @@ module CrxPackageManager
|
|
207
186
|
end
|
208
187
|
return data, status_code, headers
|
209
188
|
end
|
210
|
-
|
211
189
|
# Package Installation Status
|
212
190
|
# Returns a status of the installation of OSGi packages.
|
213
191
|
# @param [Hash] opts the optional parameters
|
214
192
|
# @return [InstallStatus]
|
215
193
|
def installstatus(opts = {})
|
216
194
|
data, _status_code, _headers = installstatus_with_http_info(opts)
|
217
|
-
|
195
|
+
data
|
218
196
|
end
|
219
197
|
|
220
198
|
# Package Installation Status
|
@@ -223,24 +201,18 @@ module CrxPackageManager
|
|
223
201
|
# @return [Array<(InstallStatus, Fixnum, Hash)>] InstallStatus data, response status code and response headers
|
224
202
|
def installstatus_with_http_info(opts = {})
|
225
203
|
if @api_client.config.debugging
|
226
|
-
@api_client.config.logger.debug
|
204
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.installstatus ...'
|
227
205
|
end
|
228
206
|
# resource path
|
229
|
-
local_var_path =
|
207
|
+
local_var_path = '/installstatus.jsp'
|
230
208
|
|
231
209
|
# query parameters
|
232
210
|
query_params = {}
|
233
211
|
|
234
212
|
# header parameters
|
235
213
|
header_params = {}
|
236
|
-
|
237
214
|
# HTTP header 'Accept' (if needed)
|
238
|
-
|
239
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
240
|
-
|
241
|
-
# HTTP header 'Content-Type'
|
242
|
-
local_header_content_type = []
|
243
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
215
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
244
216
|
|
245
217
|
# form parameters
|
246
218
|
form_params = {}
|
@@ -260,7 +232,6 @@ module CrxPackageManager
|
|
260
232
|
end
|
261
233
|
return data, status_code, headers
|
262
234
|
end
|
263
|
-
|
264
235
|
# List packages
|
265
236
|
# Returns a list of all available packages defined.
|
266
237
|
# @param [Hash] opts the optional parameters
|
@@ -270,7 +241,7 @@ module CrxPackageManager
|
|
270
241
|
# @return [PackageList]
|
271
242
|
def list(opts = {})
|
272
243
|
data, _status_code, _headers = list_with_http_info(opts)
|
273
|
-
|
244
|
+
data
|
274
245
|
end
|
275
246
|
|
276
247
|
# List packages
|
@@ -282,10 +253,10 @@ module CrxPackageManager
|
|
282
253
|
# @return [Array<(PackageList, Fixnum, Hash)>] PackageList data, response status code and response headers
|
283
254
|
def list_with_http_info(opts = {})
|
284
255
|
if @api_client.config.debugging
|
285
|
-
@api_client.config.logger.debug
|
256
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list ...'
|
286
257
|
end
|
287
258
|
# resource path
|
288
|
-
local_var_path =
|
259
|
+
local_var_path = '/list.jsp'
|
289
260
|
|
290
261
|
# query parameters
|
291
262
|
query_params = {}
|
@@ -295,14 +266,8 @@ module CrxPackageManager
|
|
295
266
|
|
296
267
|
# header parameters
|
297
268
|
header_params = {}
|
298
|
-
|
299
269
|
# HTTP header 'Accept' (if needed)
|
300
|
-
|
301
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
302
|
-
|
303
|
-
# HTTP header 'Content-Type'
|
304
|
-
local_header_content_type = []
|
305
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
270
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
306
271
|
|
307
272
|
# form parameters
|
308
273
|
form_params = {}
|
@@ -322,7 +287,6 @@ module CrxPackageManager
|
|
322
287
|
end
|
323
288
|
return data, status_code, headers
|
324
289
|
end
|
325
|
-
|
326
290
|
# Get screenshot
|
327
291
|
# Returns the screenshot at the specified path.
|
328
292
|
# @param [Hash] opts the optional parameters
|
@@ -330,7 +294,7 @@ module CrxPackageManager
|
|
330
294
|
# @return [File]
|
331
295
|
def screenshot(opts = {})
|
332
296
|
data, _status_code, _headers = screenshot_with_http_info(opts)
|
333
|
-
|
297
|
+
data
|
334
298
|
end
|
335
299
|
|
336
300
|
# Get screenshot
|
@@ -340,10 +304,10 @@ module CrxPackageManager
|
|
340
304
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
341
305
|
def screenshot_with_http_info(opts = {})
|
342
306
|
if @api_client.config.debugging
|
343
|
-
@api_client.config.logger.debug
|
307
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.screenshot ...'
|
344
308
|
end
|
345
309
|
# resource path
|
346
|
-
local_var_path =
|
310
|
+
local_var_path = '/screenshot.jsp'
|
347
311
|
|
348
312
|
# query parameters
|
349
313
|
query_params = {}
|
@@ -351,14 +315,8 @@ module CrxPackageManager
|
|
351
315
|
|
352
316
|
# header parameters
|
353
317
|
header_params = {}
|
354
|
-
|
355
318
|
# HTTP header 'Accept' (if needed)
|
356
|
-
|
357
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
358
|
-
|
359
|
-
# HTTP header 'Content-Type'
|
360
|
-
local_header_content_type = []
|
361
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
319
|
+
header_params['Accept'] = @api_client.select_header_accept(['image/jpg', 'image/jpeg', 'image/png'])
|
362
320
|
|
363
321
|
# form parameters
|
364
322
|
form_params = {}
|
@@ -378,7 +336,6 @@ module CrxPackageManager
|
|
378
336
|
end
|
379
337
|
return data, status_code, headers
|
380
338
|
end
|
381
|
-
|
382
339
|
# Generic operation service.
|
383
340
|
# Provides a different API for executing package manipulation commands. Operates on a specific version of the package.
|
384
341
|
# @param cmd The command to execute.
|
@@ -389,7 +346,7 @@ module CrxPackageManager
|
|
389
346
|
# @return [ServiceExecResponse]
|
390
347
|
def service_exec(cmd, name, group, version, opts = {})
|
391
348
|
data, _status_code, _headers = service_exec_with_http_info(cmd, name, group, version, opts)
|
392
|
-
|
349
|
+
data
|
393
350
|
end
|
394
351
|
|
395
352
|
# Generic operation service.
|
@@ -402,22 +359,30 @@ module CrxPackageManager
|
|
402
359
|
# @return [Array<(ServiceExecResponse, Fixnum, Hash)>] ServiceExecResponse data, response status code and response headers
|
403
360
|
def service_exec_with_http_info(cmd, name, group, version, opts = {})
|
404
361
|
if @api_client.config.debugging
|
405
|
-
@api_client.config.logger.debug
|
362
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.service_exec ...'
|
406
363
|
end
|
407
364
|
# verify the required parameter 'cmd' is set
|
408
|
-
|
365
|
+
if @api_client.config.client_side_validation && cmd.nil?
|
366
|
+
fail ArgumentError, "Missing the required parameter 'cmd' when calling DefaultApi.service_exec"
|
367
|
+
end
|
409
368
|
# verify enum value
|
410
|
-
|
369
|
+
if @api_client.config.client_side_validation && !['build', 'install', 'delete', 'uninstall', 'dryrun', 'replicate'].include?(cmd)
|
411
370
|
fail ArgumentError, "invalid value for 'cmd', must be one of build, install, delete, uninstall, dryrun, replicate"
|
412
371
|
end
|
413
372
|
# verify the required parameter 'name' is set
|
414
|
-
|
373
|
+
if @api_client.config.client_side_validation && name.nil?
|
374
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling DefaultApi.service_exec"
|
375
|
+
end
|
415
376
|
# verify the required parameter 'group' is set
|
416
|
-
|
377
|
+
if @api_client.config.client_side_validation && group.nil?
|
378
|
+
fail ArgumentError, "Missing the required parameter 'group' when calling DefaultApi.service_exec"
|
379
|
+
end
|
417
380
|
# verify the required parameter 'version' is set
|
418
|
-
|
381
|
+
if @api_client.config.client_side_validation && version.nil?
|
382
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling DefaultApi.service_exec"
|
383
|
+
end
|
419
384
|
# resource path
|
420
|
-
local_var_path =
|
385
|
+
local_var_path = '/service/exec.json/etc/packages/{group}/{name}-{version}.zip'.sub('{' + 'name' + '}', name.to_s).sub('{' + 'group' + '}', group.to_s).sub('{' + 'version' + '}', version.to_s)
|
421
386
|
|
422
387
|
# query parameters
|
423
388
|
query_params = {}
|
@@ -425,14 +390,8 @@ module CrxPackageManager
|
|
425
390
|
|
426
391
|
# header parameters
|
427
392
|
header_params = {}
|
428
|
-
|
429
393
|
# HTTP header 'Accept' (if needed)
|
430
|
-
|
431
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
432
|
-
|
433
|
-
# HTTP header 'Content-Type'
|
434
|
-
local_header_content_type = []
|
435
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
394
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
436
395
|
|
437
396
|
# form parameters
|
438
397
|
form_params = {}
|
@@ -452,7 +411,6 @@ module CrxPackageManager
|
|
452
411
|
end
|
453
412
|
return data, status_code, headers
|
454
413
|
end
|
455
|
-
|
456
414
|
# Generic operation service.
|
457
415
|
# Provides endpoint for executing package manipulation commands. Responses are in the format of the ServiceResponse in the defintions section.
|
458
416
|
# @param cmd The command to execute.
|
@@ -463,7 +421,7 @@ module CrxPackageManager
|
|
463
421
|
# @return [String]
|
464
422
|
def service_get(cmd, opts = {})
|
465
423
|
data, _status_code, _headers = service_get_with_http_info(cmd, opts)
|
466
|
-
|
424
|
+
data
|
467
425
|
end
|
468
426
|
|
469
427
|
# Generic operation service.
|
@@ -476,16 +434,18 @@ module CrxPackageManager
|
|
476
434
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
477
435
|
def service_get_with_http_info(cmd, opts = {})
|
478
436
|
if @api_client.config.debugging
|
479
|
-
@api_client.config.logger.debug
|
437
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.service_get ...'
|
480
438
|
end
|
481
439
|
# verify the required parameter 'cmd' is set
|
482
|
-
|
440
|
+
if @api_client.config.client_side_validation && cmd.nil?
|
441
|
+
fail ArgumentError, "Missing the required parameter 'cmd' when calling DefaultApi.service_get"
|
442
|
+
end
|
483
443
|
# verify enum value
|
484
|
-
|
444
|
+
if @api_client.config.client_side_validation && !['help', 'ls', 'rm', 'build', 'inst', 'uninst', 'get'].include?(cmd)
|
485
445
|
fail ArgumentError, "invalid value for 'cmd', must be one of help, ls, rm, build, inst, uninst, get"
|
486
446
|
end
|
487
447
|
# resource path
|
488
|
-
local_var_path =
|
448
|
+
local_var_path = '/service.jsp'
|
489
449
|
|
490
450
|
# query parameters
|
491
451
|
query_params = {}
|
@@ -496,14 +456,8 @@ module CrxPackageManager
|
|
496
456
|
|
497
457
|
# header parameters
|
498
458
|
header_params = {}
|
499
|
-
|
500
459
|
# HTTP header 'Accept' (if needed)
|
501
|
-
|
502
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
503
|
-
|
504
|
-
# HTTP header 'Content-Type'
|
505
|
-
local_header_content_type = []
|
506
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
460
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream', 'application/zip', 'text/plain'])
|
507
461
|
|
508
462
|
# form parameters
|
509
463
|
form_params = {}
|
@@ -523,7 +477,6 @@ module CrxPackageManager
|
|
523
477
|
end
|
524
478
|
return data, status_code, headers
|
525
479
|
end
|
526
|
-
|
527
480
|
# Generic operation service.
|
528
481
|
# Provides endpoint for executing package manipulation commands. Responses are in the format of the ServiceResponse in the defintions section.
|
529
482
|
# @param file Package file to upload
|
@@ -535,7 +488,7 @@ module CrxPackageManager
|
|
535
488
|
# @return [String]
|
536
489
|
def service_post(file, opts = {})
|
537
490
|
data, _status_code, _headers = service_post_with_http_info(file, opts)
|
538
|
-
|
491
|
+
data
|
539
492
|
end
|
540
493
|
|
541
494
|
# Generic operation service.
|
@@ -549,34 +502,30 @@ module CrxPackageManager
|
|
549
502
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
550
503
|
def service_post_with_http_info(file, opts = {})
|
551
504
|
if @api_client.config.debugging
|
552
|
-
@api_client.config.logger.debug
|
505
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.service_post ...'
|
553
506
|
end
|
554
507
|
# verify the required parameter 'file' is set
|
555
|
-
|
508
|
+
if @api_client.config.client_side_validation && file.nil?
|
509
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling DefaultApi.service_post"
|
510
|
+
end
|
556
511
|
# resource path
|
557
|
-
local_var_path =
|
512
|
+
local_var_path = '/service.jsp'
|
558
513
|
|
559
514
|
# query parameters
|
560
515
|
query_params = {}
|
561
516
|
|
562
517
|
# header parameters
|
563
518
|
header_params = {}
|
564
|
-
|
565
|
-
# HTTP header 'Accept' (if needed)
|
566
|
-
local_header_accept = []
|
567
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
568
|
-
|
569
519
|
# HTTP header 'Content-Type'
|
570
|
-
|
571
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
520
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
572
521
|
|
573
522
|
# form parameters
|
574
523
|
form_params = {}
|
575
|
-
form_params[
|
576
|
-
form_params[
|
577
|
-
form_params[
|
578
|
-
form_params[
|
579
|
-
form_params[
|
524
|
+
form_params['file'] = file
|
525
|
+
form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
|
526
|
+
form_params['strict'] = opts[:'strict'] if !opts[:'strict'].nil?
|
527
|
+
form_params['force'] = opts[:'force'] if !opts[:'force'].nil?
|
528
|
+
form_params['install'] = opts[:'install'] if !opts[:'install'].nil?
|
580
529
|
|
581
530
|
# http body (model)
|
582
531
|
post_body = nil
|
@@ -593,7 +542,6 @@ module CrxPackageManager
|
|
593
542
|
end
|
594
543
|
return data, status_code, headers
|
595
544
|
end
|
596
|
-
|
597
545
|
# Get package thumbnail
|
598
546
|
# Returns the package's thumbnail image.
|
599
547
|
# @param [Hash] opts the optional parameters
|
@@ -601,7 +549,7 @@ module CrxPackageManager
|
|
601
549
|
# @return [File]
|
602
550
|
def thumbnail(opts = {})
|
603
551
|
data, _status_code, _headers = thumbnail_with_http_info(opts)
|
604
|
-
|
552
|
+
data
|
605
553
|
end
|
606
554
|
|
607
555
|
# Get package thumbnail
|
@@ -611,10 +559,10 @@ module CrxPackageManager
|
|
611
559
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
612
560
|
def thumbnail_with_http_info(opts = {})
|
613
561
|
if @api_client.config.debugging
|
614
|
-
@api_client.config.logger.debug
|
562
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.thumbnail ...'
|
615
563
|
end
|
616
564
|
# resource path
|
617
|
-
local_var_path =
|
565
|
+
local_var_path = '/thumbnail.jsp'
|
618
566
|
|
619
567
|
# query parameters
|
620
568
|
query_params = {}
|
@@ -622,14 +570,8 @@ module CrxPackageManager
|
|
622
570
|
|
623
571
|
# header parameters
|
624
572
|
header_params = {}
|
625
|
-
|
626
573
|
# HTTP header 'Accept' (if needed)
|
627
|
-
|
628
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
629
|
-
|
630
|
-
# HTTP header 'Content-Type'
|
631
|
-
local_header_content_type = []
|
632
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
574
|
+
header_params['Accept'] = @api_client.select_header_accept(['image/jpg', 'image/jpeg', 'image/png'])
|
633
575
|
|
634
576
|
# form parameters
|
635
577
|
form_params = {}
|