swagger_aem 0.9.2 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 974edb9490cff4040be3a8be0172da17c958159d
4
- data.tar.gz: 22c0b7ea83319cfc63bac408ffcfb7a91a57d68c
3
+ metadata.gz: d0632f035f3b733ab02de632f2d775a9a1dbf092
4
+ data.tar.gz: 22859d480e050421145444e4282c8fea4152a21a
5
5
  SHA512:
6
- metadata.gz: ad4cbdc2ed8534f446c94b32498b814d624886ef49c152f88518e53b3b50f29c074bd54bc29319ce4dd5c3bb0a851980278d9ecfddf82b111a2ce1de8d0d0f5c
7
- data.tar.gz: afb35d0648fa627228f7abea79ba34322c53d98a7d1dce1e9d77728c2ab7d9d4b98d7ad248aa8e91c7c307e83cab897bbb141ba98054f0620c7d7c4cdabb4db0
6
+ metadata.gz: d1d5763fa8784efbec2a972b92c80af040b2c24d8887c85f4f9f9cfd51f42ecfddc604dc8084f9ba042122bff0ebd93f5cc47328022ecbe18dc1a475aef59438
7
+ data.tar.gz: a7ef92b79189d62280efeff2bc90791c95a4e7b1d5b9b5b145b335af5360ba85949c31d5ca50e94dda8cde062a7d2d7361d0ba006deb6e43068dbb67bc3ce4b0
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ group :development, :test do
4
+ gem 'rake', '~> 12.0.0'
5
+ end
data/README.md CHANGED
@@ -6,9 +6,9 @@ Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
6
6
 
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
- - API version: 1.1
10
- - Package version: 0.9.2
11
- - Build package: class io.swagger.codegen.languages.RubyClientCodegen
9
+ - API version: 1.1.2
10
+ - Package version: 0.9.4
11
+ - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://shinesolutions.com](http://shinesolutions.com)
13
13
 
14
14
  ## Installation
@@ -24,15 +24,15 @@ gem build swagger_aem.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./swagger_aem-0.9.2.gem
27
+ gem install ./swagger_aem-0.9.4.gem
28
28
  ```
29
- (for development, run `gem install --dev ./swagger_aem-0.9.2.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./swagger_aem-0.9.4.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 'swagger_aem', '~> 0.9.2'
35
+ gem 'swagger_aem', '~> 0.9.4'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -85,7 +85,8 @@ Class | Method | HTTP request | Description
85
85
  ------------ | ------------- | ------------- | -------------
86
86
  *SwaggerAemClient::ConsoleApi* | [**post_bundle**](docs/ConsoleApi.md#post_bundle) | **POST** /system/console/bundles/{name} |
87
87
  *SwaggerAemClient::ConsoleApi* | [**post_jmx_repository**](docs/ConsoleApi.md#post_jmx_repository) | **POST** /system/console/jmx/com.adobe.granite:type=Repository/op/{action} |
88
- *SwaggerAemClient::CqApi* | [**post_cq_actions**](docs/CqApi.md#post_cq_actions) | **POST** .cqactions.html |
88
+ *SwaggerAemClient::CqApi* | [**get_login_page**](docs/CqApi.md#get_login_page) | **GET** /libs/granite/core/content/login.html |
89
+ *SwaggerAemClient::CqApi* | [**post_cq_actions**](docs/CqApi.md#post_cq_actions) | **POST** /.cqactions.html |
89
90
  *SwaggerAemClient::CrxApi* | [**post_package_service**](docs/CrxApi.md#post_package_service) | **POST** /crx/packmgr/service.jsp |
90
91
  *SwaggerAemClient::CrxApi* | [**post_package_service_json**](docs/CrxApi.md#post_package_service_json) | **POST** /crx/packmgr/service/.json/{path} |
91
92
  *SwaggerAemClient::CrxApi* | [**post_package_update**](docs/CrxApi.md#post_package_update) | **POST** /crx/packmgr/update.jsp |
@@ -0,0 +1,8 @@
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
6
+ rescue LoadError
7
+ # no rspec available
8
+ end
@@ -4,7 +4,45 @@ All URIs are relative to *http://localhost/*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**post_cq_actions**](CqApi.md#post_cq_actions) | **POST** .cqactions.html |
7
+ [**get_login_page**](CqApi.md#get_login_page) | **GET** /libs/granite/core/content/login.html |
8
+ [**post_cq_actions**](CqApi.md#post_cq_actions) | **POST** /.cqactions.html |
9
+
10
+
11
+ # **get_login_page**
12
+ > get_login_page
13
+
14
+
15
+
16
+ ### Example
17
+ ```ruby
18
+ # load the gem
19
+ require 'swagger_aem'
20
+
21
+ api_instance = SwaggerAemClient::CqApi.new
22
+
23
+ begin
24
+ api_instance.get_login_page
25
+ rescue SwaggerAemClient::ApiError => e
26
+ puts "Exception when calling CqApi->get_login_page: #{e}"
27
+ end
28
+ ```
29
+
30
+ ### Parameters
31
+ This endpoint does not need any parameter.
32
+
33
+ ### Return type
34
+
35
+ nil (empty response body)
36
+
37
+ ### Authorization
38
+
39
+ No authorization required
40
+
41
+ ### HTTP request headers
42
+
43
+ - **Content-Type**: Not defined
44
+ - **Accept**: text/html
45
+
8
46
 
9
47
 
10
48
  # **post_cq_actions**
@@ -2,18 +2,6 @@
2
2
  #
3
3
  # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
4
  #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
- #
17
5
  # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
18
6
  #
19
7
  # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
@@ -3,22 +3,10 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.2
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
10
  =end
23
11
 
24
12
  # Common files
@@ -3,22 +3,10 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.2
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
10
  =end
23
11
 
24
12
  require "uri"
@@ -65,14 +53,8 @@ module SwaggerAemClient
65
53
 
66
54
  # header parameters
67
55
  header_params = {}
68
-
69
56
  # HTTP header 'Accept' (if needed)
70
- local_header_accept = ['text/plain']
71
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
72
-
73
- # HTTP header 'Content-Type'
74
- local_header_content_type = []
75
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
57
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
76
58
 
77
59
  # form parameters
78
60
  form_params = {}
@@ -121,14 +103,8 @@ module SwaggerAemClient
121
103
 
122
104
  # header parameters
123
105
  header_params = {}
124
-
125
106
  # HTTP header 'Accept' (if needed)
126
- local_header_accept = ['text/plain']
127
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
128
-
129
- # HTTP header 'Content-Type'
130
- local_header_content_type = []
131
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
107
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
132
108
 
133
109
  # form parameters
134
110
  form_params = {}
@@ -3,22 +3,10 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.2
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
10
  =end
23
11
 
24
12
  require "uri"
@@ -31,10 +19,57 @@ module SwaggerAemClient
31
19
  @api_client = api_client
32
20
  end
33
21
 
34
- #
35
- #
36
- # @param authorizable_id
37
- # @param changelog
22
+ #
23
+ #
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [nil]
26
+ def get_login_page(opts = {})
27
+ get_login_page_with_http_info(opts)
28
+ return nil
29
+ end
30
+
31
+ #
32
+ #
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
35
+ def get_login_page_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug "Calling API: CqApi.get_login_page ..."
38
+ end
39
+ # resource path
40
+ local_var_path = "/libs/granite/core/content/login.html".sub('{format}','json')
41
+
42
+ # query parameters
43
+ query_params = {}
44
+
45
+ # header parameters
46
+ header_params = {}
47
+ # HTTP header 'Accept' (if needed)
48
+ header_params['Accept'] = @api_client.select_header_accept(['text/html'])
49
+
50
+ # form parameters
51
+ form_params = {}
52
+
53
+ # http body (model)
54
+ post_body = nil
55
+ auth_names = []
56
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
57
+ :header_params => header_params,
58
+ :query_params => query_params,
59
+ :form_params => form_params,
60
+ :body => post_body,
61
+ :auth_names => auth_names,
62
+ :return_type => 'String')
63
+ if @api_client.config.debugging
64
+ @api_client.config.logger.debug "API called: CqApi#get_login_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
65
+ end
66
+ return data, status_code, headers
67
+ end
68
+
69
+ #
70
+ #
71
+ # @param authorizable_id
72
+ # @param changelog
38
73
  # @param [Hash] opts the optional parameters
39
74
  # @return [nil]
40
75
  def post_cq_actions(authorizable_id, changelog, opts = {})
@@ -42,10 +77,10 @@ module SwaggerAemClient
42
77
  return nil
43
78
  end
44
79
 
45
- #
46
- #
47
- # @param authorizable_id
48
- # @param changelog
80
+ #
81
+ #
82
+ # @param authorizable_id
83
+ # @param changelog
49
84
  # @param [Hash] opts the optional parameters
50
85
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
51
86
  def post_cq_actions_with_http_info(authorizable_id, changelog, opts = {})
@@ -57,7 +92,7 @@ module SwaggerAemClient
57
92
  # verify the required parameter 'changelog' is set
58
93
  fail ArgumentError, "Missing the required parameter 'changelog' when calling CqApi.post_cq_actions" if changelog.nil?
59
94
  # resource path
60
- local_var_path = ".cqactions.html".sub('{format}','json')
95
+ local_var_path = "/.cqactions.html".sub('{format}','json')
61
96
 
62
97
  # query parameters
63
98
  query_params = {}
@@ -66,14 +101,8 @@ module SwaggerAemClient
66
101
 
67
102
  # header parameters
68
103
  header_params = {}
69
-
70
104
  # HTTP header 'Accept' (if needed)
71
- local_header_accept = ['text/plain']
72
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
73
-
74
- # HTTP header 'Content-Type'
75
- local_header_content_type = []
76
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
105
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
77
106
 
78
107
  # form parameters
79
108
  form_params = {}
@@ -3,22 +3,10 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.2
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
10
  =end
23
11
 
24
12
  require "uri"
@@ -61,14 +49,8 @@ module SwaggerAemClient
61
49
 
62
50
  # header parameters
63
51
  header_params = {}
64
-
65
52
  # HTTP header 'Accept' (if needed)
66
- local_header_accept = ['text/xml']
67
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
68
-
69
- # HTTP header 'Content-Type'
70
- local_header_content_type = []
71
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
53
+ header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
72
54
 
73
55
  # form parameters
74
56
  form_params = {}
@@ -140,14 +122,10 @@ module SwaggerAemClient
140
122
 
141
123
  # header parameters
142
124
  header_params = {}
143
-
144
125
  # HTTP header 'Accept' (if needed)
145
- local_header_accept = ['application/json']
146
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
147
-
126
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
148
127
  # HTTP header 'Content-Type'
149
- local_header_content_type = ['multipart/form-data']
150
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
128
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
151
129
 
152
130
  # form parameters
153
131
  form_params = {}
@@ -220,14 +198,8 @@ module SwaggerAemClient
220
198
 
221
199
  # header parameters
222
200
  header_params = {}
223
-
224
201
  # HTTP header 'Accept' (if needed)
225
- local_header_accept = ['application/json']
226
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
227
-
228
- # HTTP header 'Content-Type'
229
- local_header_content_type = []
230
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
202
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
231
203
 
232
204
  # form parameters
233
205
  form_params = {}
@@ -288,14 +260,8 @@ module SwaggerAemClient
288
260
 
289
261
  # header parameters
290
262
  header_params = {}
291
-
292
263
  # HTTP header 'Accept' (if needed)
293
- local_header_accept = ['text/plain']
294
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
295
-
296
- # HTTP header 'Content-Type'
297
- local_header_content_type = []
298
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
264
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
299
265
 
300
266
  # form parameters
301
267
  form_params = {}
@@ -3,22 +3,10 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.2
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
10
  =end
23
11
 
24
12
  require "uri"
@@ -64,14 +52,8 @@ module SwaggerAemClient
64
52
 
65
53
  # header parameters
66
54
  header_params = {}
67
-
68
55
  # HTTP header 'Accept' (if needed)
69
- local_header_accept = ['text/plain']
70
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
71
-
72
- # HTTP header 'Content-Type'
73
- local_header_content_type = []
74
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
56
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
75
57
 
76
58
  # form parameters
77
59
  form_params = {}
@@ -124,14 +106,8 @@ module SwaggerAemClient
124
106
 
125
107
  # header parameters
126
108
  header_params = {}
127
-
128
109
  # HTTP header 'Accept' (if needed)
129
- local_header_accept = ['text/plain']
130
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
131
-
132
- # HTTP header 'Content-Type'
133
- local_header_content_type = []
134
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
110
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
135
111
 
136
112
  # form parameters
137
113
  form_params = {}
@@ -184,14 +160,8 @@ module SwaggerAemClient
184
160
 
185
161
  # header parameters
186
162
  header_params = {}
187
-
188
163
  # HTTP header 'Accept' (if needed)
189
- local_header_accept = ['text/plain']
190
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
191
-
192
- # HTTP header 'Content-Type'
193
- local_header_content_type = []
194
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
164
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
195
165
 
196
166
  # form parameters
197
167
  form_params = {}
@@ -244,14 +214,8 @@ module SwaggerAemClient
244
214
 
245
215
  # header parameters
246
216
  header_params = {}
247
-
248
217
  # HTTP header 'Accept' (if needed)
249
- local_header_accept = ['text/plain']
250
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
251
-
252
- # HTTP header 'Content-Type'
253
- local_header_content_type = []
254
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
218
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
255
219
 
256
220
  # form parameters
257
221
  form_params = {}
@@ -308,14 +272,8 @@ module SwaggerAemClient
308
272
 
309
273
  # header parameters
310
274
  header_params = {}
311
-
312
275
  # HTTP header 'Accept' (if needed)
313
- local_header_accept = ['application/octet-stream']
314
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
315
-
316
- # HTTP header 'Content-Type'
317
- local_header_content_type = []
318
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
276
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
319
277
 
320
278
  # form parameters
321
279
  form_params = {}
@@ -373,14 +331,8 @@ module SwaggerAemClient
373
331
 
374
332
  # header parameters
375
333
  header_params = {}
376
-
377
334
  # HTTP header 'Accept' (if needed)
378
- local_header_accept = ['application/json']
379
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
380
-
381
- # HTTP header 'Content-Type'
382
- local_header_content_type = []
383
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
335
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
384
336
 
385
337
  # form parameters
386
338
  form_params = {}
@@ -494,14 +446,8 @@ module SwaggerAemClient
494
446
 
495
447
  # header parameters
496
448
  header_params = {}
497
-
498
449
  # HTTP header 'Accept' (if needed)
499
- local_header_accept = ['text/plain']
500
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
501
-
502
- # HTTP header 'Content-Type'
503
- local_header_content_type = []
504
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
450
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
505
451
 
506
452
  # form parameters
507
453
  form_params = {}
@@ -568,14 +514,8 @@ module SwaggerAemClient
568
514
 
569
515
  # header parameters
570
516
  header_params = {}
571
-
572
517
  # HTTP header 'Accept' (if needed)
573
- local_header_accept = ['text/html']
574
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
575
-
576
- # HTTP header 'Content-Type'
577
- local_header_content_type = []
578
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
518
+ header_params['Accept'] = @api_client.select_header_accept(['text/html'])
579
519
 
580
520
  # form parameters
581
521
  form_params = {}
@@ -689,14 +629,8 @@ module SwaggerAemClient
689
629
 
690
630
  # header parameters
691
631
  header_params = {}
692
-
693
632
  # HTTP header 'Accept' (if needed)
694
- local_header_accept = ['text/plain']
695
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
696
-
697
- # HTTP header 'Content-Type'
698
- local_header_content_type = []
699
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
633
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
700
634
 
701
635
  # form parameters
702
636
  form_params = {}
@@ -752,14 +686,8 @@ module SwaggerAemClient
752
686
 
753
687
  # header parameters
754
688
  header_params = {}
755
-
756
689
  # HTTP header 'Accept' (if needed)
757
- local_header_accept = ['text/plain']
758
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
759
-
760
- # HTTP header 'Content-Type'
761
- local_header_content_type = []
762
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
690
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
763
691
 
764
692
  # form parameters
765
693
  form_params = {}
@@ -818,14 +746,8 @@ module SwaggerAemClient
818
746
 
819
747
  # header parameters
820
748
  header_params = {}
821
-
822
749
  # HTTP header 'Accept' (if needed)
823
- local_header_accept = ['text/plain']
824
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
825
-
826
- # HTTP header 'Content-Type'
827
- local_header_content_type = []
828
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
750
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
829
751
 
830
752
  # form parameters
831
753
  form_params = {}
@@ -890,14 +812,8 @@ module SwaggerAemClient
890
812
 
891
813
  # header parameters
892
814
  header_params = {}
893
-
894
815
  # HTTP header 'Accept' (if needed)
895
- local_header_accept = ['application/json']
896
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
897
-
898
- # HTTP header 'Content-Type'
899
- local_header_content_type = []
900
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
816
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
901
817
 
902
818
  # form parameters
903
819
  form_params = {}
@@ -958,14 +874,8 @@ module SwaggerAemClient
958
874
 
959
875
  # header parameters
960
876
  header_params = {}
961
-
962
877
  # HTTP header 'Accept' (if needed)
963
- local_header_accept = ['text/plain']
964
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
965
-
966
- # HTTP header 'Content-Type'
967
- local_header_content_type = []
968
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
878
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
969
879
 
970
880
  # form parameters
971
881
  form_params = {}
@@ -3,22 +3,10 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.2
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
10
  =end
23
11
 
24
12
  require 'date'
@@ -142,10 +130,11 @@ module SwaggerAemClient
142
130
  # application/json
143
131
  # application/json; charset=UTF8
144
132
  # APPLICATION/JSON
133
+ # */*
145
134
  # @param [String] mime MIME
146
135
  # @return [Boolean] True if the MIME is application/json
147
136
  def json_mime?(mime)
148
- !(mime =~ /\Aapplication\/json(;.*)?\z/i).nil?
137
+ (mime == "*/*") || !(mime =~ /\Aapplication\/json(;.*)?\z/i).nil?
149
138
  end
150
139
 
151
140
  # Deserialize the response to the given return type.
@@ -3,22 +3,10 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.2
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
10
  =end
23
11
 
24
12
  module SwaggerAemClient
@@ -32,12 +20,14 @@ module SwaggerAemClient
32
20
  # ApiError.new(:code => 404, :message => "Not Found")
33
21
  def initialize(arg = nil)
34
22
  if arg.is_a? Hash
23
+ if arg.key?(:message) || arg.key?('message')
24
+ super(arg[:message] || arg['message'])
25
+ else
26
+ super arg
27
+ end
28
+
35
29
  arg.each do |k, v|
36
- if k.to_s == 'message'
37
- super v
38
- else
39
- instance_variable_set "@#{k}", v
40
- end
30
+ instance_variable_set "@#{k}", v
41
31
  end
42
32
  else
43
33
  super arg
@@ -3,22 +3,10 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.2
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
10
  =end
23
11
 
24
12
  require 'uri'
@@ -3,24 +3,12 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.2
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
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
10
  =end
23
11
 
24
12
  module SwaggerAemClient
25
- VERSION = "0.9.2"
13
+ VERSION = "0.9.4"
26
14
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.1
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.1
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.1
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.1
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.1
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.1
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 1.1
6
+ OpenAPI spec version: 1.1.1
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -5,22 +5,10 @@
5
5
 
6
6
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
7
7
 
8
- OpenAPI spec version: 1.1
8
+ OpenAPI spec version: 1.1.2
9
9
  Contact: opensource@shinesolutions.com
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
11
 
12
- Licensed under the Apache License, Version 2.0 (the "License");
13
- you may not use this file except in compliance with the License.
14
- You may obtain a copy of the License at
15
-
16
- http://www.apache.org/licenses/LICENSE-2.0
17
-
18
- Unless required by applicable law or agreed to in writing, software
19
- distributed under the License is distributed on an "AS IS" BASIS,
20
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- See the License for the specific language governing permissions and
22
- limitations under the License.
23
-
24
12
  =end
25
13
 
26
14
  $:.push File.expand_path("../lib", __FILE__)
metadata CHANGED
@@ -1,193 +1,193 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagger_aem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shine Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-07 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
- - - ">="
20
+ - - '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: 1.0.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '1.0'
30
- - - ">="
30
+ - - '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ~>
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.8'
40
- - - ">="
40
+ - - '>='
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.8.3
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ~>
48
48
  - !ruby/object:Gem::Version
49
49
  version: '1.8'
50
- - - ">="
50
+ - - '>='
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.8.3
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
57
+ - - ~>
58
58
  - !ruby/object:Gem::Version
59
59
  version: '3.4'
60
- - - ">="
60
+ - - '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: 3.4.0
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ~>
68
68
  - !ruby/object:Gem::Version
69
69
  version: '3.4'
70
- - - ">="
70
+ - - '>='
71
71
  - !ruby/object:Gem::Version
72
72
  version: 3.4.0
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: vcr
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - "~>"
77
+ - - ~>
78
78
  - !ruby/object:Gem::Version
79
79
  version: '3.0'
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: 3.0.1
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: '3.0'
90
- - - ">="
90
+ - - '>='
91
91
  - !ruby/object:Gem::Version
92
92
  version: 3.0.1
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: webmock
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - "~>"
97
+ - - ~>
98
98
  - !ruby/object:Gem::Version
99
99
  version: '1.24'
100
- - - ">="
100
+ - - '>='
101
101
  - !ruby/object:Gem::Version
102
102
  version: 1.24.3
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - "~>"
107
+ - - ~>
108
108
  - !ruby/object:Gem::Version
109
109
  version: '1.24'
110
- - - ">="
110
+ - - '>='
111
111
  - !ruby/object:Gem::Version
112
112
  version: 1.24.3
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: autotest
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - "~>"
117
+ - - ~>
118
118
  - !ruby/object:Gem::Version
119
119
  version: '4.4'
120
- - - ">="
120
+ - - '>='
121
121
  - !ruby/object:Gem::Version
122
122
  version: 4.4.6
123
123
  type: :development
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - "~>"
127
+ - - ~>
128
128
  - !ruby/object:Gem::Version
129
129
  version: '4.4'
130
- - - ">="
130
+ - - '>='
131
131
  - !ruby/object:Gem::Version
132
132
  version: 4.4.6
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: autotest-rails-pure
135
135
  requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - "~>"
137
+ - - ~>
138
138
  - !ruby/object:Gem::Version
139
139
  version: '4.1'
140
- - - ">="
140
+ - - '>='
141
141
  - !ruby/object:Gem::Version
142
142
  version: 4.1.2
143
143
  type: :development
144
144
  prerelease: false
145
145
  version_requirements: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - "~>"
147
+ - - ~>
148
148
  - !ruby/object:Gem::Version
149
149
  version: '4.1'
150
- - - ">="
150
+ - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: 4.1.2
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: autotest-growl
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ~>
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0.2'
160
- - - ">="
160
+ - - '>='
161
161
  - !ruby/object:Gem::Version
162
162
  version: 0.2.16
163
163
  type: :development
164
164
  prerelease: false
165
165
  version_requirements: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - "~>"
167
+ - - ~>
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0.2'
170
- - - ">="
170
+ - - '>='
171
171
  - !ruby/object:Gem::Version
172
172
  version: 0.2.16
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: autotest-fsevent
175
175
  requirement: !ruby/object:Gem::Requirement
176
176
  requirements:
177
- - - "~>"
177
+ - - ~>
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0.2'
180
- - - ">="
180
+ - - '>='
181
181
  - !ruby/object:Gem::Version
182
182
  version: 0.2.11
183
183
  type: :development
184
184
  prerelease: false
185
185
  version_requirements: !ruby/object:Gem::Requirement
186
186
  requirements:
187
- - - "~>"
187
+ - - ~>
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0.2'
190
- - - ">="
190
+ - - '>='
191
191
  - !ruby/object:Gem::Version
192
192
  version: 0.2.11
193
193
  description: Swagger AEM is an OpenAPI specification for Adobe Experience Manager
@@ -198,8 +198,10 @@ executables: []
198
198
  extensions: []
199
199
  extra_rdoc_files: []
200
200
  files:
201
+ - Gemfile
201
202
  - LICENSE
202
203
  - README.md
204
+ - Rakefile
203
205
  - docs/ConsoleApi.md
204
206
  - docs/CqApi.md
205
207
  - docs/CrxApi.md
@@ -232,12 +234,12 @@ require_paths:
232
234
  - lib
233
235
  required_ruby_version: !ruby/object:Gem::Requirement
234
236
  requirements:
235
- - - ">="
237
+ - - '>='
236
238
  - !ruby/object:Gem::Version
237
239
  version: '1.9'
238
240
  required_rubygems_version: !ruby/object:Gem::Requirement
239
241
  requirements:
240
- - - ">="
242
+ - - '>='
241
243
  - !ruby/object:Gem::Version
242
244
  version: '0'
243
245
  requirements: []
@@ -254,4 +256,3 @@ test_files:
254
256
  - spec/api_client_spec.rb
255
257
  - spec/configuration_spec.rb
256
258
  - spec/spec_helper.rb
257
- has_rdoc: