crx_packmgr_api_client 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -5
- data/crx_packmgr_api_client-1.1.1.gem +0 -0
- data/docs/DefaultApi.md +63 -0
- data/docs/ServiceExecResponse.md +9 -0
- data/lib/crx_packmgr_api_client/api/default_api.rb +74 -0
- data/lib/crx_packmgr_api_client/models/service_exec_response.rb +208 -0
- data/lib/crx_packmgr_api_client/version.rb +1 -1
- data/lib/crx_packmgr_api_client.rb +1 -0
- data/spec/models/service_exec_response_spec.rb +59 -0
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0303ae54994663e735e275be035c63e75761e986
|
4
|
+
data.tar.gz: c0e11e53b7ac353053ad13c090260ab602122dcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d445eb42406d3c8e6b647fe5e100542eb90b0616a810a6e6e21fa61d805e7b091f4bb59317a8f27f47f98edf4606bcb42edc94a6441190e8f5d87a1475efef0
|
7
|
+
data.tar.gz: cffb0ccf5e3efccf42c19ffcda10660ccd7395ff8198722cd0426ef1307e9aff4cde19790edf35676928116fbd1d577923fe0fe5bfcc8a89b50e768bda951e60
|
data/README.md
CHANGED
@@ -7,8 +7,8 @@ API for interacting with the CRX Package Manager in AEM.
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 6.2.0
|
10
|
-
- Package version: 1.
|
11
|
-
- Build date: 2017-01-
|
10
|
+
- Package version: 1.2.0
|
11
|
+
- Build date: 2017-01-18T17:14:31.151-06:00
|
12
12
|
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
|
13
13
|
|
14
14
|
## Installation
|
@@ -24,15 +24,15 @@ gem build crx_packmgr_api_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./crx_packmgr_api_client-1.
|
27
|
+
gem install ./crx_packmgr_api_client-1.2.0.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./crx_packmgr_api_client-1.
|
29
|
+
(for development, run `gem install --dev ./crx_packmgr_api_client-1.2.0.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'crx_packmgr_api_client', '~> 1.
|
35
|
+
gem 'crx_packmgr_api_client', '~> 1.2.0'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -90,6 +90,7 @@ Class | Method | HTTP request | Description
|
|
90
90
|
*CrxPackageManager::DefaultApi* | [**installstatus**](docs/DefaultApi.md#installstatus) | **GET** /installstatus.jsp | Package Installation Status
|
91
91
|
*CrxPackageManager::DefaultApi* | [**list**](docs/DefaultApi.md#list) | **GET** /list.jsp | List packages
|
92
92
|
*CrxPackageManager::DefaultApi* | [**screenshot**](docs/DefaultApi.md#screenshot) | **GET** /screenshot.jsp | Get screenshot
|
93
|
+
*CrxPackageManager::DefaultApi* | [**service_exec**](docs/DefaultApi.md#service_exec) | **POST** /service/exec.json/etc/packages/{group}/{name}-{version}.zip | Generic operation service.
|
93
94
|
*CrxPackageManager::DefaultApi* | [**service_get**](docs/DefaultApi.md#service_get) | **GET** /service.jsp | Generic operation service.
|
94
95
|
*CrxPackageManager::DefaultApi* | [**service_post**](docs/DefaultApi.md#service_post) | **POST** /service.jsp | Generic operation service.
|
95
96
|
*CrxPackageManager::DefaultApi* | [**thumbnail**](docs/DefaultApi.md#thumbnail) | **GET** /thumbnail.jsp | Get package thumbnail
|
@@ -106,6 +107,7 @@ Class | Method | HTTP request | Description
|
|
106
107
|
- [CrxPackageManager::InstallStatusStatus](docs/InstallStatusStatus.md)
|
107
108
|
- [CrxPackageManager::Package](docs/Package.md)
|
108
109
|
- [CrxPackageManager::PackageList](docs/PackageList.md)
|
110
|
+
- [CrxPackageManager::ServiceExecResponse](docs/ServiceExecResponse.md)
|
109
111
|
- [CrxPackageManager::ServiceResponse](docs/ServiceResponse.md)
|
110
112
|
- [CrxPackageManager::ServiceResponseRequest](docs/ServiceResponseRequest.md)
|
111
113
|
- [CrxPackageManager::ServiceResponseRequestParam](docs/ServiceResponseRequestParam.md)
|
Binary file
|
data/docs/DefaultApi.md
CHANGED
@@ -10,6 +10,7 @@ Method | HTTP request | Description
|
|
10
10
|
[**installstatus**](DefaultApi.md#installstatus) | **GET** /installstatus.jsp | Package Installation Status
|
11
11
|
[**list**](DefaultApi.md#list) | **GET** /list.jsp | List packages
|
12
12
|
[**screenshot**](DefaultApi.md#screenshot) | **GET** /screenshot.jsp | Get screenshot
|
13
|
+
[**service_exec**](DefaultApi.md#service_exec) | **POST** /service/exec.json/etc/packages/{group}/{name}-{version}.zip | Generic operation service.
|
13
14
|
[**service_get**](DefaultApi.md#service_get) | **GET** /service.jsp | Generic operation service.
|
14
15
|
[**service_post**](DefaultApi.md#service_post) | **POST** /service.jsp | Generic operation service.
|
15
16
|
[**thumbnail**](DefaultApi.md#thumbnail) | **GET** /thumbnail.jsp | Get package thumbnail
|
@@ -337,6 +338,68 @@ Name | Type | Description | Notes
|
|
337
338
|
|
338
339
|
|
339
340
|
|
341
|
+
# **service_exec**
|
342
|
+
> ServiceExecResponse service_exec(cmd, name, group, version)
|
343
|
+
|
344
|
+
Generic operation service.
|
345
|
+
|
346
|
+
Provides a different API for executing package manipulation commands. Operates on a specific version of the package.
|
347
|
+
|
348
|
+
### Example
|
349
|
+
```ruby
|
350
|
+
# load the gem
|
351
|
+
require 'crx_packmgr_api_client'
|
352
|
+
# setup authorization
|
353
|
+
CrxPackageManager.configure do |config|
|
354
|
+
# Configure HTTP basic authorization: basic
|
355
|
+
config.username = 'YOUR USERNAME'
|
356
|
+
config.password = 'YOUR PASSWORD'
|
357
|
+
end
|
358
|
+
|
359
|
+
api_instance = CrxPackageManager::DefaultApi.new
|
360
|
+
|
361
|
+
cmd = "cmd_example" # String | The command to execute.
|
362
|
+
|
363
|
+
name = "name_example" # String | The name of the package on which to execute the command.
|
364
|
+
|
365
|
+
group = "group_example" # String | The group of the package on which to execute the command.
|
366
|
+
|
367
|
+
version = "version_example" # String | The version of the package on which to execute the command.
|
368
|
+
|
369
|
+
|
370
|
+
begin
|
371
|
+
#Generic operation service.
|
372
|
+
result = api_instance.service_exec(cmd, name, group, version)
|
373
|
+
p result
|
374
|
+
rescue CrxPackageManager::ApiError => e
|
375
|
+
puts "Exception when calling DefaultApi->service_exec: #{e}"
|
376
|
+
end
|
377
|
+
```
|
378
|
+
|
379
|
+
### Parameters
|
380
|
+
|
381
|
+
Name | Type | Description | Notes
|
382
|
+
------------- | ------------- | ------------- | -------------
|
383
|
+
**cmd** | **String**| The command to execute. |
|
384
|
+
**name** | **String**| The name of the package on which to execute the command. |
|
385
|
+
**group** | **String**| The group of the package on which to execute the command. |
|
386
|
+
**version** | **String**| The version of the package on which to execute the command. |
|
387
|
+
|
388
|
+
### Return type
|
389
|
+
|
390
|
+
[**ServiceExecResponse**](ServiceExecResponse.md)
|
391
|
+
|
392
|
+
### Authorization
|
393
|
+
|
394
|
+
[basic](../README.md#basic)
|
395
|
+
|
396
|
+
### HTTP request headers
|
397
|
+
|
398
|
+
- **Content-Type**: Not defined
|
399
|
+
- **Accept**: application/json
|
400
|
+
|
401
|
+
|
402
|
+
|
340
403
|
# **service_get**
|
341
404
|
> String service_get(cmd, opts)
|
342
405
|
|
@@ -379,6 +379,80 @@ module CrxPackageManager
|
|
379
379
|
return data, status_code, headers
|
380
380
|
end
|
381
381
|
|
382
|
+
# Generic operation service.
|
383
|
+
# Provides a different API for executing package manipulation commands. Operates on a specific version of the package.
|
384
|
+
# @param cmd The command to execute.
|
385
|
+
# @param name The name of the package on which to execute the command.
|
386
|
+
# @param group The group of the package on which to execute the command.
|
387
|
+
# @param version The version of the package on which to execute the command.
|
388
|
+
# @param [Hash] opts the optional parameters
|
389
|
+
# @return [ServiceExecResponse]
|
390
|
+
def service_exec(cmd, name, group, version, opts = {})
|
391
|
+
data, _status_code, _headers = service_exec_with_http_info(cmd, name, group, version, opts)
|
392
|
+
return data
|
393
|
+
end
|
394
|
+
|
395
|
+
# Generic operation service.
|
396
|
+
# Provides a different API for executing package manipulation commands. Operates on a specific version of the package.
|
397
|
+
# @param cmd The command to execute.
|
398
|
+
# @param name The name of the package on which to execute the command.
|
399
|
+
# @param group The group of the package on which to execute the command.
|
400
|
+
# @param version The version of the package on which to execute the command.
|
401
|
+
# @param [Hash] opts the optional parameters
|
402
|
+
# @return [Array<(ServiceExecResponse, Fixnum, Hash)>] ServiceExecResponse data, response status code and response headers
|
403
|
+
def service_exec_with_http_info(cmd, name, group, version, opts = {})
|
404
|
+
if @api_client.config.debugging
|
405
|
+
@api_client.config.logger.debug "Calling API: DefaultApi.service_exec ..."
|
406
|
+
end
|
407
|
+
# verify the required parameter 'cmd' is set
|
408
|
+
fail ArgumentError, "Missing the required parameter 'cmd' when calling DefaultApi.service_exec" if cmd.nil?
|
409
|
+
# verify enum value
|
410
|
+
unless ['build', 'install', 'delete', 'uninstall', 'dryrun', 'replicate'].include?(cmd)
|
411
|
+
fail ArgumentError, "invalid value for 'cmd', must be one of build, install, delete, uninstall, dryrun, replicate"
|
412
|
+
end
|
413
|
+
# verify the required parameter 'name' is set
|
414
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling DefaultApi.service_exec" if name.nil?
|
415
|
+
# verify the required parameter 'group' is set
|
416
|
+
fail ArgumentError, "Missing the required parameter 'group' when calling DefaultApi.service_exec" if group.nil?
|
417
|
+
# verify the required parameter 'version' is set
|
418
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling DefaultApi.service_exec" if version.nil?
|
419
|
+
# resource path
|
420
|
+
local_var_path = "/service/exec.json/etc/packages/{group}/{name}-{version}.zip".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'group' + '}', group.to_s).sub('{' + 'version' + '}', version.to_s)
|
421
|
+
|
422
|
+
# query parameters
|
423
|
+
query_params = {}
|
424
|
+
query_params[:'cmd'] = cmd
|
425
|
+
|
426
|
+
# header parameters
|
427
|
+
header_params = {}
|
428
|
+
|
429
|
+
# HTTP header 'Accept' (if needed)
|
430
|
+
local_header_accept = ['application/json']
|
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)
|
436
|
+
|
437
|
+
# form parameters
|
438
|
+
form_params = {}
|
439
|
+
|
440
|
+
# http body (model)
|
441
|
+
post_body = nil
|
442
|
+
auth_names = ['basic']
|
443
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
444
|
+
:header_params => header_params,
|
445
|
+
:query_params => query_params,
|
446
|
+
:form_params => form_params,
|
447
|
+
:body => post_body,
|
448
|
+
:auth_names => auth_names,
|
449
|
+
:return_type => 'ServiceExecResponse')
|
450
|
+
if @api_client.config.debugging
|
451
|
+
@api_client.config.logger.debug "API called: DefaultApi#service_exec\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
452
|
+
end
|
453
|
+
return data, status_code, headers
|
454
|
+
end
|
455
|
+
|
382
456
|
# Generic operation service.
|
383
457
|
# Provides endpoint for executing package manipulation commands. Responses are in the format of the ServiceResponse in the defintions section.
|
384
458
|
# @param cmd The command to execute.
|
@@ -0,0 +1,208 @@
|
|
1
|
+
=begin
|
2
|
+
#CRX Package Manager API
|
3
|
+
|
4
|
+
#API for interacting with the CRX Package Manager in AEM.
|
5
|
+
|
6
|
+
OpenAPI spec version: 6.2.0
|
7
|
+
Contact: bryan.stopp@gmail.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'date'
|
25
|
+
|
26
|
+
module CrxPackageManager
|
27
|
+
|
28
|
+
class ServiceExecResponse
|
29
|
+
attr_accessor :success
|
30
|
+
|
31
|
+
attr_accessor :msg
|
32
|
+
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'success' => :'success',
|
38
|
+
:'msg' => :'msg'
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.swagger_types
|
44
|
+
{
|
45
|
+
:'success' => :'BOOLEAN',
|
46
|
+
:'msg' => :'String'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
57
|
+
|
58
|
+
if attributes.has_key?(:'success')
|
59
|
+
self.success = attributes[:'success']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'msg')
|
63
|
+
self.msg = attributes[:'msg']
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
69
|
+
# @return Array for valid properies with the reasons
|
70
|
+
def list_invalid_properties
|
71
|
+
invalid_properties = Array.new
|
72
|
+
return invalid_properties
|
73
|
+
end
|
74
|
+
|
75
|
+
# Check to see if the all the properties in the model are valid
|
76
|
+
# @return true if the model is valid
|
77
|
+
def valid?
|
78
|
+
return true
|
79
|
+
end
|
80
|
+
|
81
|
+
# Checks equality by comparing each attribute.
|
82
|
+
# @param [Object] Object to be compared
|
83
|
+
def ==(o)
|
84
|
+
return true if self.equal?(o)
|
85
|
+
self.class == o.class &&
|
86
|
+
success == o.success &&
|
87
|
+
msg == o.msg
|
88
|
+
end
|
89
|
+
|
90
|
+
# @see the `==` method
|
91
|
+
# @param [Object] Object to be compared
|
92
|
+
def eql?(o)
|
93
|
+
self == o
|
94
|
+
end
|
95
|
+
|
96
|
+
# Calculates hash code according to all attributes.
|
97
|
+
# @return [Fixnum] Hash code
|
98
|
+
def hash
|
99
|
+
[success, msg].hash
|
100
|
+
end
|
101
|
+
|
102
|
+
# Builds the object from hash
|
103
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
104
|
+
# @return [Object] Returns the model itself
|
105
|
+
def build_from_hash(attributes)
|
106
|
+
return nil unless attributes.is_a?(Hash)
|
107
|
+
self.class.swagger_types.each_pair do |key, type|
|
108
|
+
if type =~ /^Array<(.*)>/i
|
109
|
+
# check to ensure the input is an array given that the the attribute
|
110
|
+
# is documented as an array but the input is not
|
111
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
112
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
113
|
+
end
|
114
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
115
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
116
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
117
|
+
end
|
118
|
+
|
119
|
+
self
|
120
|
+
end
|
121
|
+
|
122
|
+
# Deserializes the data based on type
|
123
|
+
# @param string type Data type
|
124
|
+
# @param string value Value to be deserialized
|
125
|
+
# @return [Object] Deserialized data
|
126
|
+
def _deserialize(type, value)
|
127
|
+
case type.to_sym
|
128
|
+
when :DateTime
|
129
|
+
DateTime.parse(value)
|
130
|
+
when :Date
|
131
|
+
Date.parse(value)
|
132
|
+
when :String
|
133
|
+
value.to_s
|
134
|
+
when :Integer
|
135
|
+
value.to_i
|
136
|
+
when :Float
|
137
|
+
value.to_f
|
138
|
+
when :BOOLEAN
|
139
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
140
|
+
true
|
141
|
+
else
|
142
|
+
false
|
143
|
+
end
|
144
|
+
when :Object
|
145
|
+
# generic object (usually a Hash), return directly
|
146
|
+
value
|
147
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
148
|
+
inner_type = Regexp.last_match[:inner_type]
|
149
|
+
value.map { |v| _deserialize(inner_type, v) }
|
150
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
151
|
+
k_type = Regexp.last_match[:k_type]
|
152
|
+
v_type = Regexp.last_match[:v_type]
|
153
|
+
{}.tap do |hash|
|
154
|
+
value.each do |k, v|
|
155
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
else # model
|
159
|
+
temp_model = CrxPackageManager.const_get(type).new
|
160
|
+
temp_model.build_from_hash(value)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns the string representation of the object
|
165
|
+
# @return [String] String presentation of the object
|
166
|
+
def to_s
|
167
|
+
to_hash.to_s
|
168
|
+
end
|
169
|
+
|
170
|
+
# to_body is an alias to to_hash (backward compatibility)
|
171
|
+
# @return [Hash] Returns the object in the form of hash
|
172
|
+
def to_body
|
173
|
+
to_hash
|
174
|
+
end
|
175
|
+
|
176
|
+
# Returns the object in the form of hash
|
177
|
+
# @return [Hash] Returns the object in the form of hash
|
178
|
+
def to_hash
|
179
|
+
hash = {}
|
180
|
+
self.class.attribute_map.each_pair do |attr, param|
|
181
|
+
value = self.send(attr)
|
182
|
+
next if value.nil?
|
183
|
+
hash[param] = _to_hash(value)
|
184
|
+
end
|
185
|
+
hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Outputs non-array value in the form of hash
|
189
|
+
# For object, use to_hash. Otherwise, just return the value
|
190
|
+
# @param [Object] value Any valid value
|
191
|
+
# @return [Hash] Returns the value in the form of hash
|
192
|
+
def _to_hash(value)
|
193
|
+
if value.is_a?(Array)
|
194
|
+
value.compact.map{ |v| _to_hash(v) }
|
195
|
+
elsif value.is_a?(Hash)
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
198
|
+
end
|
199
|
+
elsif value.respond_to? :to_hash
|
200
|
+
value.to_hash
|
201
|
+
else
|
202
|
+
value
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
end
|
207
|
+
|
208
|
+
end
|
@@ -37,6 +37,7 @@ require 'crx_packmgr_api_client/models/install_status'
|
|
37
37
|
require 'crx_packmgr_api_client/models/install_status_status'
|
38
38
|
require 'crx_packmgr_api_client/models/package'
|
39
39
|
require 'crx_packmgr_api_client/models/package_list'
|
40
|
+
require 'crx_packmgr_api_client/models/service_exec_response'
|
40
41
|
require 'crx_packmgr_api_client/models/service_response'
|
41
42
|
require 'crx_packmgr_api_client/models/service_response_request'
|
42
43
|
require 'crx_packmgr_api_client/models/service_response_request_param'
|
@@ -0,0 +1,59 @@
|
|
1
|
+
=begin
|
2
|
+
#CRX Package Manager API
|
3
|
+
|
4
|
+
#API for interacting with the CRX Package Manager in AEM.
|
5
|
+
|
6
|
+
OpenAPI spec version: 6.2.0
|
7
|
+
Contact: bryan.stopp@gmail.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
require 'date'
|
27
|
+
|
28
|
+
# Unit tests for CrxPackageManager::ServiceExecResponse
|
29
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
30
|
+
# Please update as you see appropriate
|
31
|
+
describe 'ServiceExecResponse' do
|
32
|
+
before do
|
33
|
+
# run before each test
|
34
|
+
@instance = CrxPackageManager::ServiceExecResponse.new
|
35
|
+
end
|
36
|
+
|
37
|
+
after do
|
38
|
+
# run after each test
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test an instance of ServiceExecResponse' do
|
42
|
+
it 'should create an instact of ServiceExecResponse' do
|
43
|
+
expect(@instance).to be_instance_of(CrxPackageManager::ServiceExecResponse)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
describe 'test attribute "success"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "msg"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crx_packmgr_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swagger-Codegen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -244,6 +244,7 @@ files:
|
|
244
244
|
- crx_packmgr_api_client-0.2.0.gem
|
245
245
|
- crx_packmgr_api_client-1.0.0.gem
|
246
246
|
- crx_packmgr_api_client-1.1.0.gem
|
247
|
+
- crx_packmgr_api_client-1.1.1.gem
|
247
248
|
- crx_packmgr_api_client.gemspec
|
248
249
|
- docs/DefaultApi.md
|
249
250
|
- docs/Filter.md
|
@@ -255,6 +256,7 @@ files:
|
|
255
256
|
- docs/InstallStatusStatus.md
|
256
257
|
- docs/Package.md
|
257
258
|
- docs/PackageList.md
|
259
|
+
- docs/ServiceExecResponse.md
|
258
260
|
- docs/ServiceResponse.md
|
259
261
|
- docs/ServiceResponseRequest.md
|
260
262
|
- docs/ServiceResponseRequestParam.md
|
@@ -275,6 +277,7 @@ files:
|
|
275
277
|
- lib/crx_packmgr_api_client/models/install_status_status.rb
|
276
278
|
- lib/crx_packmgr_api_client/models/package.rb
|
277
279
|
- lib/crx_packmgr_api_client/models/package_list.rb
|
280
|
+
- lib/crx_packmgr_api_client/models/service_exec_response.rb
|
278
281
|
- lib/crx_packmgr_api_client/models/service_response.rb
|
279
282
|
- lib/crx_packmgr_api_client/models/service_response_request.rb
|
280
283
|
- lib/crx_packmgr_api_client/models/service_response_request_param.rb
|
@@ -307,6 +310,7 @@ files:
|
|
307
310
|
- spec/models/install_status_status_spec.rb
|
308
311
|
- spec/models/package_list_spec.rb
|
309
312
|
- spec/models/package_spec.rb
|
313
|
+
- spec/models/service_exec_response_spec.rb
|
310
314
|
- spec/models/service_response_request_param_spec.rb
|
311
315
|
- spec/models/service_response_request_spec.rb
|
312
316
|
- spec/models/service_response_response_spec.rb
|
@@ -334,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
334
338
|
version: '0'
|
335
339
|
requirements: []
|
336
340
|
rubyforge_project:
|
337
|
-
rubygems_version: 2.
|
341
|
+
rubygems_version: 2.6.8
|
338
342
|
signing_key:
|
339
343
|
specification_version: 4
|
340
344
|
summary: CRX Package Manager API Ruby Gem
|
@@ -365,6 +369,7 @@ test_files:
|
|
365
369
|
- spec/models/install_status_status_spec.rb
|
366
370
|
- spec/models/package_list_spec.rb
|
367
371
|
- spec/models/package_spec.rb
|
372
|
+
- spec/models/service_exec_response_spec.rb
|
368
373
|
- spec/models/service_response_request_param_spec.rb
|
369
374
|
- spec/models/service_response_request_spec.rb
|
370
375
|
- spec/models/service_response_response_spec.rb
|