Class: ApacheFelix::DefaultApi

Inherits:
Object
  • Object
show all
Defined in:
lib/apache_felix_webconsole_client/api/default_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ DefaultApi

Returns a new instance of DefaultApi.



30
31
32
# File 'lib/apache_felix_webconsole_client/api/default_api.rb', line 30

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



28
29
30
# File 'lib/apache_felix_webconsole_client/api/default_api.rb', line 28

def api_client
  @api_client
end

Instance Method Details

#bundle_info(bundle_id, opts = {}) ⇒ BundleList

Bundle Info Display all information about a bundle. Same response structure as bundle listing; only one entry exists in the list.

Parameters:

  • bundle_id

    The symbolic name or id of the bundle.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



39
40
41
42
# File 'lib/apache_felix_webconsole_client/api/default_api.rb', line 39

def bundle_info(bundle_id, opts = {})
  data, _status_code, _headers = bundle_info_with_http_info(bundle_id, opts)
  return data
end

#bundle_info_with_http_info(bundle_id, opts = {}) ⇒ Array<(BundleList, Fixnum, Hash)>

Bundle Info Display all information about a bundle. Same response structure as bundle listing; only one entry exists in the list.

Parameters:

  • bundle_id

    The symbolic name or id of the bundle.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(BundleList, Fixnum, Hash)>)

    BundleList data, response status code and response headers



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/apache_felix_webconsole_client/api/default_api.rb', line 49

def bundle_info_with_http_info(bundle_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DefaultApi.bundle_info ..."
  end
  # verify the required parameter 'bundle_id' is set
  fail ArgumentError, "Missing the required parameter 'bundle_id' when calling DefaultApi.bundle_info" if bundle_id.nil?
  # resource path
  local_var_path = "/bundles/{bundleId}.json".sub('{format}','json').sub('{' + 'bundleId' + '}', bundle_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basic']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BundleList')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#bundle_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#bundles(opts = {}) ⇒ BundleList

List bundles List all the bundles in the Felix system. Properties for a bundle will not be populated.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



89
90
91
92
# File 'lib/apache_felix_webconsole_client/api/default_api.rb', line 89

def bundles(opts = {})
  data, _status_code, _headers = bundles_with_http_info(opts)
  return data
end

#bundles_with_http_info(opts = {}) ⇒ Array<(BundleList, Fixnum, Hash)>

List bundles List all the bundles in the Felix system. Properties for a bundle will not be populated.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(BundleList, Fixnum, Hash)>)

    BundleList data, response status code and response headers



98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/apache_felix_webconsole_client/api/default_api.rb', line 98

def bundles_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DefaultApi.bundles ..."
  end
  # resource path
  local_var_path = "/bundles.json".sub('{format}','json')

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basic']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BundleList')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#bundles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end