swagger_aem 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/docs/CqApi.md +4 -3
- data/docs/SlingApi.md +51 -0
- data/lib/swagger_aem/api/console_api.rb +1 -1
- data/lib/swagger_aem/api/cq_api.rb +17 -17
- data/lib/swagger_aem/api/crx_api.rb +1 -1
- data/lib/swagger_aem/api/sling_api.rb +52 -1
- data/lib/swagger_aem/api_client.rb +1 -1
- data/lib/swagger_aem/api_error.rb +1 -1
- data/lib/swagger_aem/configuration.rb +1 -1
- data/lib/swagger_aem/version.rb +2 -2
- data/lib/swagger_aem.rb +1 -1
- data/swagger_aem.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b6db172072380652458f0d40f1831f96ace54ac
|
4
|
+
data.tar.gz: e967e4fc7a3c038f114b097aef5ddaafd7762907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1af6620714b61dc5a47ac48c856155c1c06fbe776592de9b06beb7241d0f3371a32c5d4dde93287e022d0ad19902958bb7ca8632c3ad749d649df9607ca4c35
|
7
|
+
data.tar.gz: e5888d68514c8cd0633ba20b00bffeba5db07eea1e68fc3f6bd7e3a92c3d5fc248e8d1ddb0f93b0733e6316efbb63ca797169752ba8432318be0dc6ba019cf45
|
data/README.md
CHANGED
@@ -6,8 +6,8 @@ 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.
|
9
|
+
- API version: 1.1.7
|
10
|
+
- Package version: 0.9.7
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://shinesolutions.com](http://shinesolutions.com)
|
13
13
|
|
@@ -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.
|
27
|
+
gem install ./swagger_aem-0.9.7.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./swagger_aem-0.9.
|
29
|
+
(for development, run `gem install --dev ./swagger_aem-0.9.7.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.
|
35
|
+
gem 'swagger_aem', '~> 0.9.7'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -94,6 +94,7 @@ Class | Method | HTTP request | Description
|
|
94
94
|
*SwaggerAemClient::SlingApi* | [**delete_agent**](docs/SlingApi.md#delete_agent) | **DELETE** /etc/replication/agents.{runmode}/{name} |
|
95
95
|
*SwaggerAemClient::SlingApi* | [**delete_node**](docs/SlingApi.md#delete_node) | **DELETE** /{path}/{name} |
|
96
96
|
*SwaggerAemClient::SlingApi* | [**get_agent**](docs/SlingApi.md#get_agent) | **GET** /etc/replication/agents.{runmode}/{name} |
|
97
|
+
*SwaggerAemClient::SlingApi* | [**get_agents**](docs/SlingApi.md#get_agents) | **GET** /etc/replication/agents.{runmode}.-1.json |
|
97
98
|
*SwaggerAemClient::SlingApi* | [**get_node**](docs/SlingApi.md#get_node) | **GET** /{path}/{name} |
|
98
99
|
*SwaggerAemClient::SlingApi* | [**get_package**](docs/SlingApi.md#get_package) | **GET** /etc/packages/{group}/{name}-{version}.zip |
|
99
100
|
*SwaggerAemClient::SlingApi* | [**get_package_filter**](docs/SlingApi.md#get_package_filter) | **GET** /etc/packages/{group}/{name}-{version}.zip/jcr:content/vlt:definition/filter.tidy.2.json |
|
data/docs/CqApi.md
CHANGED
@@ -9,7 +9,7 @@ Method | HTTP request | Description
|
|
9
9
|
|
10
10
|
|
11
11
|
# **get_login_page**
|
12
|
-
> get_login_page
|
12
|
+
> String get_login_page
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -21,7 +21,8 @@ require 'swagger_aem'
|
|
21
21
|
api_instance = SwaggerAemClient::CqApi.new
|
22
22
|
|
23
23
|
begin
|
24
|
-
api_instance.get_login_page
|
24
|
+
result = api_instance.get_login_page
|
25
|
+
p result
|
25
26
|
rescue SwaggerAemClient::ApiError => e
|
26
27
|
puts "Exception when calling CqApi->get_login_page: #{e}"
|
27
28
|
end
|
@@ -32,7 +33,7 @@ This endpoint does not need any parameter.
|
|
32
33
|
|
33
34
|
### Return type
|
34
35
|
|
35
|
-
|
36
|
+
**String**
|
36
37
|
|
37
38
|
### Authorization
|
38
39
|
|
data/docs/SlingApi.md
CHANGED
@@ -7,6 +7,7 @@ Method | HTTP request | Description
|
|
7
7
|
[**delete_agent**](SlingApi.md#delete_agent) | **DELETE** /etc/replication/agents.{runmode}/{name} |
|
8
8
|
[**delete_node**](SlingApi.md#delete_node) | **DELETE** /{path}/{name} |
|
9
9
|
[**get_agent**](SlingApi.md#get_agent) | **GET** /etc/replication/agents.{runmode}/{name} |
|
10
|
+
[**get_agents**](SlingApi.md#get_agents) | **GET** /etc/replication/agents.{runmode}.-1.json |
|
10
11
|
[**get_node**](SlingApi.md#get_node) | **GET** /{path}/{name} |
|
11
12
|
[**get_package**](SlingApi.md#get_package) | **GET** /etc/packages/{group}/{name}-{version}.zip |
|
12
13
|
[**get_package_filter**](SlingApi.md#get_package_filter) | **GET** /etc/packages/{group}/{name}-{version}.zip/jcr:content/vlt:definition/filter.tidy.2.json |
|
@@ -178,6 +179,56 @@ nil (empty response body)
|
|
178
179
|
|
179
180
|
|
180
181
|
|
182
|
+
# **get_agents**
|
183
|
+
> String get_agents(runmode)
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
### Example
|
188
|
+
```ruby
|
189
|
+
# load the gem
|
190
|
+
require 'swagger_aem'
|
191
|
+
# setup authorization
|
192
|
+
SwaggerAemClient.configure do |config|
|
193
|
+
# Configure HTTP basic authorization: aemAuth
|
194
|
+
config.username = 'YOUR USERNAME'
|
195
|
+
config.password = 'YOUR PASSWORD'
|
196
|
+
end
|
197
|
+
|
198
|
+
api_instance = SwaggerAemClient::SlingApi.new
|
199
|
+
|
200
|
+
runmode = "runmode_example" # String |
|
201
|
+
|
202
|
+
|
203
|
+
begin
|
204
|
+
result = api_instance.get_agents(runmode)
|
205
|
+
p result
|
206
|
+
rescue SwaggerAemClient::ApiError => e
|
207
|
+
puts "Exception when calling SlingApi->get_agents: #{e}"
|
208
|
+
end
|
209
|
+
```
|
210
|
+
|
211
|
+
### Parameters
|
212
|
+
|
213
|
+
Name | Type | Description | Notes
|
214
|
+
------------- | ------------- | ------------- | -------------
|
215
|
+
**runmode** | **String**| |
|
216
|
+
|
217
|
+
### Return type
|
218
|
+
|
219
|
+
**String**
|
220
|
+
|
221
|
+
### Authorization
|
222
|
+
|
223
|
+
[aemAuth](../README.md#aemAuth)
|
224
|
+
|
225
|
+
### HTTP request headers
|
226
|
+
|
227
|
+
- **Content-Type**: Not defined
|
228
|
+
- **Accept**: application/json
|
229
|
+
|
230
|
+
|
231
|
+
|
181
232
|
# **get_node**
|
182
233
|
> get_node(path, name)
|
183
234
|
|
@@ -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.7
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -19,19 +19,19 @@ module SwaggerAemClient
|
|
19
19
|
@api_client = api_client
|
20
20
|
end
|
21
21
|
|
22
|
-
#
|
23
|
-
#
|
22
|
+
#
|
23
|
+
#
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @return [
|
25
|
+
# @return [String]
|
26
26
|
def get_login_page(opts = {})
|
27
|
-
get_login_page_with_http_info(opts)
|
28
|
-
return
|
27
|
+
data, _status_code, _headers = get_login_page_with_http_info(opts)
|
28
|
+
return data
|
29
29
|
end
|
30
30
|
|
31
|
-
#
|
32
|
-
#
|
31
|
+
#
|
32
|
+
#
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
|
-
# @return [Array<(
|
34
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
35
35
|
def get_login_page_with_http_info(opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
37
|
@api_client.config.logger.debug "Calling API: CqApi.get_login_page ..."
|
@@ -66,10 +66,10 @@ module SwaggerAemClient
|
|
66
66
|
return data, status_code, headers
|
67
67
|
end
|
68
68
|
|
69
|
-
#
|
70
|
-
#
|
71
|
-
# @param authorizable_id
|
72
|
-
# @param changelog
|
69
|
+
#
|
70
|
+
#
|
71
|
+
# @param authorizable_id
|
72
|
+
# @param changelog
|
73
73
|
# @param [Hash] opts the optional parameters
|
74
74
|
# @return [nil]
|
75
75
|
def post_cq_actions(authorizable_id, changelog, opts = {})
|
@@ -77,10 +77,10 @@ module SwaggerAemClient
|
|
77
77
|
return nil
|
78
78
|
end
|
79
79
|
|
80
|
-
#
|
81
|
-
#
|
82
|
-
# @param authorizable_id
|
83
|
-
# @param changelog
|
80
|
+
#
|
81
|
+
#
|
82
|
+
# @param authorizable_id
|
83
|
+
# @param changelog
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
85
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
86
86
|
def post_cq_actions_with_http_info(authorizable_id, changelog, opts = {})
|
@@ -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.7
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -181,6 +181,57 @@ module SwaggerAemClient
|
|
181
181
|
return data, status_code, headers
|
182
182
|
end
|
183
183
|
|
184
|
+
#
|
185
|
+
#
|
186
|
+
# @param runmode
|
187
|
+
# @param [Hash] opts the optional parameters
|
188
|
+
# @return [String]
|
189
|
+
def get_agents(runmode, opts = {})
|
190
|
+
data, _status_code, _headers = get_agents_with_http_info(runmode, opts)
|
191
|
+
return data
|
192
|
+
end
|
193
|
+
|
194
|
+
#
|
195
|
+
#
|
196
|
+
# @param runmode
|
197
|
+
# @param [Hash] opts the optional parameters
|
198
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
199
|
+
def get_agents_with_http_info(runmode, opts = {})
|
200
|
+
if @api_client.config.debugging
|
201
|
+
@api_client.config.logger.debug "Calling API: SlingApi.get_agents ..."
|
202
|
+
end
|
203
|
+
# verify the required parameter 'runmode' is set
|
204
|
+
fail ArgumentError, "Missing the required parameter 'runmode' when calling SlingApi.get_agents" if runmode.nil?
|
205
|
+
# resource path
|
206
|
+
local_var_path = "/etc/replication/agents.{runmode}.-1.json".sub('{format}','json').sub('{' + 'runmode' + '}', runmode.to_s)
|
207
|
+
|
208
|
+
# query parameters
|
209
|
+
query_params = {}
|
210
|
+
|
211
|
+
# header parameters
|
212
|
+
header_params = {}
|
213
|
+
# HTTP header 'Accept' (if needed)
|
214
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
215
|
+
|
216
|
+
# form parameters
|
217
|
+
form_params = {}
|
218
|
+
|
219
|
+
# http body (model)
|
220
|
+
post_body = nil
|
221
|
+
auth_names = ['aemAuth']
|
222
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
223
|
+
:header_params => header_params,
|
224
|
+
:query_params => query_params,
|
225
|
+
:form_params => form_params,
|
226
|
+
:body => post_body,
|
227
|
+
:auth_names => auth_names,
|
228
|
+
:return_type => 'String')
|
229
|
+
if @api_client.config.debugging
|
230
|
+
@api_client.config.logger.debug "API called: SlingApi#get_agents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
231
|
+
end
|
232
|
+
return data, status_code, headers
|
233
|
+
end
|
234
|
+
|
184
235
|
#
|
185
236
|
#
|
186
237
|
# @param path
|
data/lib/swagger_aem/version.rb
CHANGED
@@ -3,12 +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.7
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
10
|
=end
|
11
11
|
|
12
12
|
module SwaggerAemClient
|
13
|
-
VERSION = "0.9.
|
13
|
+
VERSION = "0.9.7"
|
14
14
|
end
|
data/lib/swagger_aem.rb
CHANGED
data/swagger_aem.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger_aem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shine Solutions
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|