apache_felix_webconsole_client 0.0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,24 @@
1
1
  =begin
2
- #Apache Felix WebConsole
2
+ Apache Felix WebConsole
3
3
 
4
- #Client for Apache Felix Web Console API. List bundles, configure services, etc.
4
+ Client for Apache Felix Web Console API. List bundles, configure services, etc.
5
5
 
6
6
  OpenAPI spec version: 4.3.0
7
7
  Contact: bryan.stopp@gmail.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
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -1,12 +1,24 @@
1
1
  =begin
2
- #Apache Felix WebConsole
2
+ Apache Felix WebConsole
3
3
 
4
- #Client for Apache Felix Web Console API. List bundles, configure services, etc.
4
+ Client for Apache Felix Web Console API. List bundles, configure services, etc.
5
5
 
6
6
  OpenAPI spec version: 4.3.0
7
7
  Contact: bryan.stopp@gmail.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
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -1,12 +1,24 @@
1
1
  =begin
2
- #Apache Felix WebConsole
2
+ Apache Felix WebConsole
3
3
 
4
- #Client for Apache Felix Web Console API. List bundles, configure services, etc.
4
+ Client for Apache Felix Web Console API. List bundles, configure services, etc.
5
5
 
6
6
  OpenAPI spec version: 4.3.0
7
7
  Contact: bryan.stopp@gmail.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
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -1,12 +1,24 @@
1
1
  =begin
2
- #Apache Felix WebConsole
2
+ Apache Felix WebConsole
3
3
 
4
- #Client for Apache Felix Web Console API. List bundles, configure services, etc.
4
+ Client for Apache Felix Web Console API. List bundles, configure services, etc.
5
5
 
6
6
  OpenAPI spec version: 4.3.0
7
7
  Contact: bryan.stopp@gmail.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
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -1,12 +1,24 @@
1
1
  =begin
2
- #Apache Felix WebConsole
2
+ Apache Felix WebConsole
3
3
 
4
- #Client for Apache Felix Web Console API. List bundles, configure services, etc.
4
+ Client for Apache Felix Web Console API. List bundles, configure services, etc.
5
5
 
6
6
  OpenAPI spec version: 4.3.0
7
7
  Contact: bryan.stopp@gmail.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
+
10
22
  =end
11
23
 
12
24
  require 'spec_helper'
@@ -0,0 +1,59 @@
1
+ =begin
2
+ Apache Felix WebConsole
3
+
4
+ Client for Apache Felix Web Console API. List bundles, configure services, etc.
5
+
6
+ OpenAPI spec version: 4.3.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 ApacheFelix::BundleState
29
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
30
+ # Please update as you see appropriate
31
+ describe 'BundleState' do
32
+ before do
33
+ # run before each test
34
+ @instance = ApacheFelix::BundleState.new
35
+ end
36
+
37
+ after do
38
+ # run after each test
39
+ end
40
+
41
+ describe 'test an instance of BundleState' do
42
+ it 'should create an instact of BundleState' do
43
+ expect(@instance).to be_instance_of(ApacheFelix::BundleState)
44
+ end
45
+ end
46
+ describe 'test attribute "fragment"' 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 "state_raw"' 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
+
@@ -1,12 +1,24 @@
1
1
  =begin
2
- #Apache Felix WebConsole
2
+ Apache Felix WebConsole
3
3
 
4
- #Client for Apache Felix Web Console API. List bundles, configure services, etc.
4
+ Client for Apache Felix Web Console API. List bundles, configure services, etc.
5
5
 
6
6
  OpenAPI spec version: 4.3.0
7
7
  Contact: bryan.stopp@gmail.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
+
10
22
  =end
11
23
 
12
24
  # load the gem
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apache_felix_webconsole_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Stopp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-14 00:00:00.000000000 Z
11
+ date: 2017-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -246,25 +246,28 @@ files:
246
246
  - Rakefile
247
247
  - apache_felix_webconsole_client.gemspec
248
248
  - docs/Bundle.md
249
+ - docs/BundleApi.md
249
250
  - docs/BundleList.md
250
251
  - docs/BundleProps.md
251
- - docs/DefaultApi.md
252
+ - docs/BundleState.md
252
253
  - git_push.sh
253
254
  - lib/apache_felix_webconsole_client.rb
254
- - lib/apache_felix_webconsole_client/api/default_api.rb
255
+ - lib/apache_felix_webconsole_client/api/bundle_api.rb
255
256
  - lib/apache_felix_webconsole_client/api_client.rb
256
257
  - lib/apache_felix_webconsole_client/api_error.rb
257
258
  - lib/apache_felix_webconsole_client/configuration.rb
258
259
  - lib/apache_felix_webconsole_client/models/bundle.rb
259
260
  - lib/apache_felix_webconsole_client/models/bundle_list.rb
260
261
  - lib/apache_felix_webconsole_client/models/bundle_props.rb
262
+ - lib/apache_felix_webconsole_client/models/bundle_state.rb
261
263
  - lib/apache_felix_webconsole_client/version.rb
262
- - spec/api/default_api_spec.rb
264
+ - spec/api/bundle_api_spec.rb
263
265
  - spec/api_client_spec.rb
264
266
  - spec/configuration_spec.rb
265
267
  - spec/models/bundle_list_spec.rb
266
268
  - spec/models/bundle_props_spec.rb
267
269
  - spec/models/bundle_spec.rb
270
+ - spec/models/bundle_state_spec.rb
268
271
  - spec/spec_helper.rb
269
272
  homepage: https://github.com/bstopp/apache-felix-webconsole-client-gem
270
273
  licenses:
@@ -291,10 +294,11 @@ signing_key:
291
294
  specification_version: 4
292
295
  summary: Apache Felix WebConsole Client
293
296
  test_files:
294
- - spec/api/default_api_spec.rb
297
+ - spec/api/bundle_api_spec.rb
295
298
  - spec/api_client_spec.rb
296
299
  - spec/configuration_spec.rb
297
300
  - spec/models/bundle_list_spec.rb
298
301
  - spec/models/bundle_props_spec.rb
299
302
  - spec/models/bundle_spec.rb
303
+ - spec/models/bundle_state_spec.rb
300
304
  - spec/spec_helper.rb
@@ -1,110 +0,0 @@
1
- # ApacheFelix::DefaultApi
2
-
3
- All URIs are relative to *http://localhost:8080/system/console*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**bundle_info**](DefaultApi.md#bundle_info) | **GET** /bundles/{bundleId}.json | Bundle Info
8
- [**bundles**](DefaultApi.md#bundles) | **GET** /bundles.json | List bundles
9
-
10
-
11
- # **bundle_info**
12
- > BundleList bundle_info(bundle_id)
13
-
14
- Bundle Info
15
-
16
- Display all information about a bundle. Same response structure as bundle listing; only one entry exists in the list.
17
-
18
- ### Example
19
- ```ruby
20
- # load the gem
21
- require 'apache_felix_webconsole_client'
22
- # setup authorization
23
- ApacheFelix.configure do |config|
24
- # Configure HTTP basic authorization: basic
25
- config.username = 'YOUR USERNAME'
26
- config.password = 'YOUR PASSWORD'
27
- end
28
-
29
- api_instance = ApacheFelix::DefaultApi.new
30
-
31
- bundle_id = "bundle_id_example" # String | The symbolic name or id of the bundle.
32
-
33
-
34
- begin
35
- #Bundle Info
36
- result = api_instance.bundle_info(bundle_id)
37
- p result
38
- rescue ApacheFelix::ApiError => e
39
- puts "Exception when calling DefaultApi->bundle_info: #{e}"
40
- end
41
- ```
42
-
43
- ### Parameters
44
-
45
- Name | Type | Description | Notes
46
- ------------- | ------------- | ------------- | -------------
47
- **bundle_id** | **String**| The symbolic name or id of the bundle. |
48
-
49
- ### Return type
50
-
51
- [**BundleList**](BundleList.md)
52
-
53
- ### Authorization
54
-
55
- [basic](../README.md#basic)
56
-
57
- ### HTTP request headers
58
-
59
- - **Content-Type**: Not defined
60
- - **Accept**: application/json
61
-
62
-
63
-
64
- # **bundles**
65
- > BundleList bundles
66
-
67
- List bundles
68
-
69
- List all the bundles in the Felix system. Properties for a bundle will not be populated.
70
-
71
- ### Example
72
- ```ruby
73
- # load the gem
74
- require 'apache_felix_webconsole_client'
75
- # setup authorization
76
- ApacheFelix.configure do |config|
77
- # Configure HTTP basic authorization: basic
78
- config.username = 'YOUR USERNAME'
79
- config.password = 'YOUR PASSWORD'
80
- end
81
-
82
- api_instance = ApacheFelix::DefaultApi.new
83
-
84
- begin
85
- #List bundles
86
- result = api_instance.bundles
87
- p result
88
- rescue ApacheFelix::ApiError => e
89
- puts "Exception when calling DefaultApi->bundles: #{e}"
90
- end
91
- ```
92
-
93
- ### Parameters
94
- This endpoint does not need any parameter.
95
-
96
- ### Return type
97
-
98
- [**BundleList**](BundleList.md)
99
-
100
- ### Authorization
101
-
102
- [basic](../README.md#basic)
103
-
104
- ### HTTP request headers
105
-
106
- - **Content-Type**: Not defined
107
- - **Accept**: application/json
108
-
109
-
110
-
@@ -1,132 +0,0 @@
1
- =begin
2
- Apache Felix WebConsole
3
-
4
- Client for Apache Felix Web Console API. List bundles, configure services, etc.
5
-
6
- OpenAPI spec version: 4.3.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 "uri"
25
-
26
- module ApacheFelix
27
- class DefaultApi
28
- attr_accessor :api_client
29
-
30
- def initialize(api_client = ApiClient.default)
31
- @api_client = api_client
32
- end
33
-
34
- # Bundle Info
35
- # Display all information about a bundle. Same response structure as bundle listing; only one entry exists in the list.
36
- # @param bundle_id The symbolic name or id of the bundle.
37
- # @param [Hash] opts the optional parameters
38
- # @return [BundleList]
39
- def bundle_info(bundle_id, opts = {})
40
- data, _status_code, _headers = bundle_info_with_http_info(bundle_id, opts)
41
- return data
42
- end
43
-
44
- # Bundle Info
45
- # Display all information about a bundle. Same response structure as bundle listing; only one entry exists in the list.
46
- # @param bundle_id The symbolic name or id of the bundle.
47
- # @param [Hash] opts the optional parameters
48
- # @return [Array<(BundleList, Fixnum, Hash)>] BundleList data, response status code and response headers
49
- def bundle_info_with_http_info(bundle_id, opts = {})
50
- if @api_client.config.debugging
51
- @api_client.config.logger.debug "Calling API: DefaultApi.bundle_info ..."
52
- end
53
- # verify the required parameter 'bundle_id' is set
54
- fail ArgumentError, "Missing the required parameter 'bundle_id' when calling DefaultApi.bundle_info" if bundle_id.nil?
55
- # resource path
56
- local_var_path = "/bundles/{bundleId}.json".sub('{format}','json').sub('{' + 'bundleId' + '}', bundle_id.to_s)
57
-
58
- # query parameters
59
- query_params = {}
60
-
61
- # header parameters
62
- header_params = {}
63
- # HTTP header 'Accept' (if needed)
64
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
-
66
- # form parameters
67
- form_params = {}
68
-
69
- # http body (model)
70
- post_body = nil
71
- auth_names = ['basic']
72
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
73
- :header_params => header_params,
74
- :query_params => query_params,
75
- :form_params => form_params,
76
- :body => post_body,
77
- :auth_names => auth_names,
78
- :return_type => 'BundleList')
79
- if @api_client.config.debugging
80
- @api_client.config.logger.debug "API called: DefaultApi#bundle_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
- end
82
- return data, status_code, headers
83
- end
84
-
85
- # List bundles
86
- # List all the bundles in the Felix system. Properties for a bundle will not be populated.
87
- # @param [Hash] opts the optional parameters
88
- # @return [BundleList]
89
- def bundles(opts = {})
90
- data, _status_code, _headers = bundles_with_http_info(opts)
91
- return data
92
- end
93
-
94
- # List bundles
95
- # List all the bundles in the Felix system. Properties for a bundle will not be populated.
96
- # @param [Hash] opts the optional parameters
97
- # @return [Array<(BundleList, Fixnum, Hash)>] BundleList data, response status code and response headers
98
- def bundles_with_http_info(opts = {})
99
- if @api_client.config.debugging
100
- @api_client.config.logger.debug "Calling API: DefaultApi.bundles ..."
101
- end
102
- # resource path
103
- local_var_path = "/bundles.json".sub('{format}','json')
104
-
105
- # query parameters
106
- query_params = {}
107
-
108
- # header parameters
109
- header_params = {}
110
- # HTTP header 'Accept' (if needed)
111
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
112
-
113
- # form parameters
114
- form_params = {}
115
-
116
- # http body (model)
117
- post_body = nil
118
- auth_names = ['basic']
119
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
120
- :header_params => header_params,
121
- :query_params => query_params,
122
- :form_params => form_params,
123
- :body => post_body,
124
- :auth_names => auth_names,
125
- :return_type => 'BundleList')
126
- if @api_client.config.debugging
127
- @api_client.config.logger.debug "API called: DefaultApi#bundles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
128
- end
129
- return data, status_code, headers
130
- end
131
- end
132
- end