Class: ESI::UniverseApi
- Inherits:
-
Object
- Object
- ESI::UniverseApi
- Defined in:
- lib/esi-client-bvv/api/universe_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_universe_ancestries(opts = {}) ⇒ Array<GetUniverseAncestries200Ok>
Get ancestries Get all character ancestries — This route expires daily at 11:05.
-
#get_universe_ancestries_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseAncestries200Ok>, Fixnum, Hash)>
Get ancestries Get all character ancestries — This route expires daily at 11:05.
-
#get_universe_asteroid_belts_asteroid_belt_id(asteroid_belt_id, opts = {}) ⇒ GetUniverseAsteroidBeltsAsteroidBeltIdOk
Get asteroid belt information Get information on an asteroid belt — This route expires daily at 11:05.
-
#get_universe_asteroid_belts_asteroid_belt_id_with_http_info(asteroid_belt_id, opts = {}) ⇒ Array<(GetUniverseAsteroidBeltsAsteroidBeltIdOk, Fixnum, Hash)>
Get asteroid belt information Get information on an asteroid belt — This route expires daily at 11:05.
-
#get_universe_bloodlines(opts = {}) ⇒ Array<GetUniverseBloodlines200Ok>
Get bloodlines Get a list of bloodlines — This route expires daily at 11:05.
-
#get_universe_bloodlines_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseBloodlines200Ok>, Fixnum, Hash)>
Get bloodlines Get a list of bloodlines — This route expires daily at 11:05.
-
#get_universe_categories(opts = {}) ⇒ Array<Integer>
Get item categories Get a list of item categories — This route expires daily at 11:05.
-
#get_universe_categories_category_id(category_id, opts = {}) ⇒ GetUniverseCategoriesCategoryIdOk
Get item category information Get information of an item category — This route expires daily at 11:05.
-
#get_universe_categories_category_id_with_http_info(category_id, opts = {}) ⇒ Array<(GetUniverseCategoriesCategoryIdOk, Fixnum, Hash)>
Get item category information Get information of an item category — This route expires daily at 11:05.
-
#get_universe_categories_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get item categories Get a list of item categories — This route expires daily at 11:05.
-
#get_universe_constellations(opts = {}) ⇒ Array<Integer>
Get constellations Get a list of constellations — This route expires daily at 11:05.
-
#get_universe_constellations_constellation_id(constellation_id, opts = {}) ⇒ GetUniverseConstellationsConstellationIdOk
Get constellation information Get information on a constellation — This route expires daily at 11:05.
-
#get_universe_constellations_constellation_id_with_http_info(constellation_id, opts = {}) ⇒ Array<(GetUniverseConstellationsConstellationIdOk, Fixnum, Hash)>
Get constellation information Get information on a constellation — This route expires daily at 11:05.
-
#get_universe_constellations_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get constellations Get a list of constellations — This route expires daily at 11:05.
-
#get_universe_factions(opts = {}) ⇒ Array<GetUniverseFactions200Ok>
Get factions Get a list of factions — This route expires daily at 11:05.
-
#get_universe_factions_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseFactions200Ok>, Fixnum, Hash)>
Get factions Get a list of factions — This route expires daily at 11:05.
-
#get_universe_graphics(opts = {}) ⇒ Array<Integer>
Get graphics Get a list of graphics — This route expires daily at 11:05.
-
#get_universe_graphics_graphic_id(graphic_id, opts = {}) ⇒ GetUniverseGraphicsGraphicIdOk
Get graphic information Get information on a graphic — This route expires daily at 11:05.
-
#get_universe_graphics_graphic_id_with_http_info(graphic_id, opts = {}) ⇒ Array<(GetUniverseGraphicsGraphicIdOk, Fixnum, Hash)>
Get graphic information Get information on a graphic — This route expires daily at 11:05.
-
#get_universe_graphics_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get graphics Get a list of graphics — This route expires daily at 11:05.
-
#get_universe_groups(opts = {}) ⇒ Array<Integer>
Get item groups Get a list of item groups — This route expires daily at 11:05.
-
#get_universe_groups_group_id(group_id, opts = {}) ⇒ GetUniverseGroupsGroupIdOk
Get item group information Get information on an item group — This route expires daily at 11:05.
-
#get_universe_groups_group_id_with_http_info(group_id, opts = {}) ⇒ Array<(GetUniverseGroupsGroupIdOk, Fixnum, Hash)>
Get item group information Get information on an item group — This route expires daily at 11:05.
-
#get_universe_groups_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get item groups Get a list of item groups — This route expires daily at 11:05.
-
#get_universe_moons_moon_id(moon_id, opts = {}) ⇒ GetUniverseMoonsMoonIdOk
Get moon information Get information on a moon — This route expires daily at 11:05.
-
#get_universe_moons_moon_id_with_http_info(moon_id, opts = {}) ⇒ Array<(GetUniverseMoonsMoonIdOk, Fixnum, Hash)>
Get moon information Get information on a moon — This route expires daily at 11:05.
-
#get_universe_planets_planet_id(planet_id, opts = {}) ⇒ GetUniversePlanetsPlanetIdOk
Get planet information Get information on a planet — This route expires daily at 11:05.
-
#get_universe_planets_planet_id_with_http_info(planet_id, opts = {}) ⇒ Array<(GetUniversePlanetsPlanetIdOk, Fixnum, Hash)>
Get planet information Get information on a planet — This route expires daily at 11:05.
-
#get_universe_races(opts = {}) ⇒ Array<GetUniverseRaces200Ok>
Get character races Get a list of character races — This route expires daily at 11:05.
-
#get_universe_races_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseRaces200Ok>, Fixnum, Hash)>
Get character races Get a list of character races — This route expires daily at 11:05.
-
#get_universe_regions(opts = {}) ⇒ Array<Integer>
Get regions Get a list of regions — This route expires daily at 11:05.
-
#get_universe_regions_region_id(region_id, opts = {}) ⇒ GetUniverseRegionsRegionIdOk
Get region information Get information on a region — This route expires daily at 11:05.
-
#get_universe_regions_region_id_with_http_info(region_id, opts = {}) ⇒ Array<(GetUniverseRegionsRegionIdOk, Fixnum, Hash)>
Get region information Get information on a region — This route expires daily at 11:05.
-
#get_universe_regions_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get regions Get a list of regions — This route expires daily at 11:05.
-
#get_universe_stargates_stargate_id(stargate_id, opts = {}) ⇒ GetUniverseStargatesStargateIdOk
Get stargate information Get information on a stargate — This route expires daily at 11:05.
-
#get_universe_stargates_stargate_id_with_http_info(stargate_id, opts = {}) ⇒ Array<(GetUniverseStargatesStargateIdOk, Fixnum, Hash)>
Get stargate information Get information on a stargate — This route expires daily at 11:05.
-
#get_universe_stars_star_id(star_id, opts = {}) ⇒ GetUniverseStarsStarIdOk
Get star information Get information on a star — This route expires daily at 11:05.
-
#get_universe_stars_star_id_with_http_info(star_id, opts = {}) ⇒ Array<(GetUniverseStarsStarIdOk, Fixnum, Hash)>
Get star information Get information on a star — This route expires daily at 11:05.
-
#get_universe_stations_station_id(station_id, opts = {}) ⇒ GetUniverseStationsStationIdOk
Get station information Get information on a station — This route expires daily at 11:05.
-
#get_universe_stations_station_id_with_http_info(station_id, opts = {}) ⇒ Array<(GetUniverseStationsStationIdOk, Fixnum, Hash)>
Get station information Get information on a station — This route expires daily at 11:05.
-
#get_universe_structures(opts = {}) ⇒ Array<Integer>
List all public structures List all public structures — This route is cached for up to 3600 seconds.
-
#get_universe_structures_structure_id(structure_id, opts = {}) ⇒ GetUniverseStructuresStructureIdOk
Get structure information Returns information on requested structure if you are on the ACL.
-
#get_universe_structures_structure_id_with_http_info(structure_id, opts = {}) ⇒ Array<(GetUniverseStructuresStructureIdOk, Fixnum, Hash)>
Get structure information Returns information on requested structure if you are on the ACL.
-
#get_universe_structures_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
List all public structures List all public structures — This route is cached for up to 3600 seconds.
-
#get_universe_system_jumps(opts = {}) ⇒ Array<GetUniverseSystemJumps200Ok>
Get system jumps Get the number of jumps in solar systems within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space.
-
#get_universe_system_jumps_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseSystemJumps200Ok>, Fixnum, Hash)>
Get system jumps Get the number of jumps in solar systems within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space.
-
#get_universe_system_kills(opts = {}) ⇒ Array<GetUniverseSystemKills200Ok>
Get system kills Get the number of ship, pod and NPC kills per solar system within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space.
-
#get_universe_system_kills_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseSystemKills200Ok>, Fixnum, Hash)>
Get system kills Get the number of ship, pod and NPC kills per solar system within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space.
-
#get_universe_systems(opts = {}) ⇒ Array<Integer>
Get solar systems Get a list of solar systems — This route expires daily at 11:05.
-
#get_universe_systems_system_id(system_id, opts = {}) ⇒ GetUniverseSystemsSystemIdOk
Get solar system information Get information on a solar system.
-
#get_universe_systems_system_id_with_http_info(system_id, opts = {}) ⇒ Array<(GetUniverseSystemsSystemIdOk, Fixnum, Hash)>
Get solar system information Get information on a solar system.
-
#get_universe_systems_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get solar systems Get a list of solar systems — This route expires daily at 11:05.
-
#get_universe_types(opts = {}) ⇒ Array<Integer>
Get types Get a list of type ids — This route expires daily at 11:05.
-
#get_universe_types_type_id(type_id, opts = {}) ⇒ GetUniverseTypesTypeIdOk
Get type information Get information on a type — This route expires daily at 11:05.
-
#get_universe_types_type_id_with_http_info(type_id, opts = {}) ⇒ Array<(GetUniverseTypesTypeIdOk, Fixnum, Hash)>
Get type information Get information on a type — This route expires daily at 11:05.
-
#get_universe_types_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get types Get a list of type ids — This route expires daily at 11:05.
-
#initialize(api_client = ApiClient.default) ⇒ UniverseApi
constructor
A new instance of UniverseApi.
-
#post_universe_ids(names, opts = {}) ⇒ PostUniverseIdsOk
Bulk names to IDs Resolve a set of names to IDs in the following categories: agents, alliances, characters, constellations, corporations factions, inventory_types, regions, stations, and systems.
-
#post_universe_ids_with_http_info(names, opts = {}) ⇒ Array<(PostUniverseIdsOk, Fixnum, Hash)>
Bulk names to IDs Resolve a set of names to IDs in the following categories: agents, alliances, characters, constellations, corporations factions, inventory_types, regions, stations, and systems.
-
#post_universe_names(ids, opts = {}) ⇒ Array<PostUniverseNames200Ok>
Get names and categories for a set of ID’s Resolve a set of IDs to names and categories.
-
#post_universe_names_with_http_info(ids, opts = {}) ⇒ Array<(Array<PostUniverseNames200Ok>, Fixnum, Hash)>
Get names and categories for a set of ID's Resolve a set of IDs to names and categories.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ UniverseApi
Returns a new instance of UniverseApi.
19 20 21 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_universe_ancestries(opts = {}) ⇒ Array<GetUniverseAncestries200Ok>
Get ancestries Get all character ancestries — This route expires daily at 11:05
31 32 33 34 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 31 def get_universe_ancestries(opts = {}) data, _status_code, _headers = get_universe_ancestries_with_http_info(opts) return data end |
#get_universe_ancestries_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseAncestries200Ok>, Fixnum, Hash)>
Get ancestries Get all character ancestries — This route expires daily at 11:05
44 45 46 47 48 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 84 85 86 87 88 89 90 91 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 44 def get_universe_ancestries_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_ancestries ..." end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end # resource path local_var_path = "/v1/universe/ancestries/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<GetUniverseAncestries200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_ancestries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_asteroid_belts_asteroid_belt_id(asteroid_belt_id, opts = {}) ⇒ GetUniverseAsteroidBeltsAsteroidBeltIdOk
Get asteroid belt information Get information on an asteroid belt — This route expires daily at 11:05
100 101 102 103 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 100 def get_universe_asteroid_belts_asteroid_belt_id(asteroid_belt_id, opts = {}) data, _status_code, _headers = get_universe_asteroid_belts_asteroid_belt_id_with_http_info(asteroid_belt_id, opts) return data end |
#get_universe_asteroid_belts_asteroid_belt_id_with_http_info(asteroid_belt_id, opts = {}) ⇒ Array<(GetUniverseAsteroidBeltsAsteroidBeltIdOk, Fixnum, Hash)>
Get asteroid belt information Get information on an asteroid belt — This route expires daily at 11:05
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 112 def get_universe_asteroid_belts_asteroid_belt_id_with_http_info(asteroid_belt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_asteroid_belts_asteroid_belt_id ..." end # verify the required parameter 'asteroid_belt_id' is set if @api_client.config.client_side_validation && asteroid_belt_id.nil? fail ArgumentError, "Missing the required parameter 'asteroid_belt_id' when calling UniverseApi.get_universe_asteroid_belts_asteroid_belt_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/asteroid_belts/{asteroid_belt_id}/".sub('{' + 'asteroid_belt_id' + '}', asteroid_belt_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseAsteroidBeltsAsteroidBeltIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_asteroid_belts_asteroid_belt_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_bloodlines(opts = {}) ⇒ Array<GetUniverseBloodlines200Ok>
Get bloodlines Get a list of bloodlines — This route expires daily at 11:05
165 166 167 168 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 165 def get_universe_bloodlines(opts = {}) data, _status_code, _headers = get_universe_bloodlines_with_http_info(opts) return data end |
#get_universe_bloodlines_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseBloodlines200Ok>, Fixnum, Hash)>
Get bloodlines Get a list of bloodlines — This route expires daily at 11:05
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 178 def get_universe_bloodlines_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_bloodlines ..." end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end # resource path local_var_path = "/v1/universe/bloodlines/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<GetUniverseBloodlines200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_bloodlines\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_categories(opts = {}) ⇒ Array<Integer>
Get item categories Get a list of item categories — This route expires daily at 11:05
233 234 235 236 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 233 def get_universe_categories(opts = {}) data, _status_code, _headers = get_universe_categories_with_http_info(opts) return data end |
#get_universe_categories_category_id(category_id, opts = {}) ⇒ GetUniverseCategoriesCategoryIdOk
Get item category information Get information of an item category — This route expires daily at 11:05
294 295 296 297 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 294 def get_universe_categories_category_id(category_id, opts = {}) data, _status_code, _headers = get_universe_categories_category_id_with_http_info(category_id, opts) return data end |
#get_universe_categories_category_id_with_http_info(category_id, opts = {}) ⇒ Array<(GetUniverseCategoriesCategoryIdOk, Fixnum, Hash)>
Get item category information Get information of an item category — This route expires daily at 11:05
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 308 def get_universe_categories_category_id_with_http_info(category_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_categories_category_id ..." end # verify the required parameter 'category_id' is set if @api_client.config.client_side_validation && category_id.nil? fail ArgumentError, "Missing the required parameter 'category_id' when calling UniverseApi.get_universe_categories_category_id" end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end # resource path local_var_path = "/v1/universe/categories/{category_id}/".sub('{' + 'category_id' + '}', category_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseCategoriesCategoryIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_categories_category_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_categories_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get item categories Get a list of item categories — This route expires daily at 11:05
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 244 def get_universe_categories_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_categories ..." end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/categories/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_constellations(opts = {}) ⇒ Array<Integer>
Get constellations Get a list of constellations — This route expires daily at 11:05
367 368 369 370 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 367 def get_universe_constellations(opts = {}) data, _status_code, _headers = get_universe_constellations_with_http_info(opts) return data end |
#get_universe_constellations_constellation_id(constellation_id, opts = {}) ⇒ GetUniverseConstellationsConstellationIdOk
Get constellation information Get information on a constellation — This route expires daily at 11:05
428 429 430 431 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 428 def get_universe_constellations_constellation_id(constellation_id, opts = {}) data, _status_code, _headers = get_universe_constellations_constellation_id_with_http_info(constellation_id, opts) return data end |
#get_universe_constellations_constellation_id_with_http_info(constellation_id, opts = {}) ⇒ Array<(GetUniverseConstellationsConstellationIdOk, Fixnum, Hash)>
Get constellation information Get information on a constellation — This route expires daily at 11:05
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 442 def get_universe_constellations_constellation_id_with_http_info(constellation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_constellations_constellation_id ..." end # verify the required parameter 'constellation_id' is set if @api_client.config.client_side_validation && constellation_id.nil? fail ArgumentError, "Missing the required parameter 'constellation_id' when calling UniverseApi.get_universe_constellations_constellation_id" end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end # resource path local_var_path = "/v1/universe/constellations/{constellation_id}/".sub('{' + 'constellation_id' + '}', constellation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseConstellationsConstellationIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_constellations_constellation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_constellations_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get constellations Get a list of constellations — This route expires daily at 11:05
378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 378 def get_universe_constellations_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_constellations ..." end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/constellations/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_constellations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_factions(opts = {}) ⇒ Array<GetUniverseFactions200Ok>
Get factions Get a list of factions — This route expires daily at 11:05
503 504 505 506 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 503 def get_universe_factions(opts = {}) data, _status_code, _headers = get_universe_factions_with_http_info(opts) return data end |
#get_universe_factions_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseFactions200Ok>, Fixnum, Hash)>
Get factions Get a list of factions — This route expires daily at 11:05
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 516 def get_universe_factions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_factions ..." end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end # resource path local_var_path = "/v2/universe/factions/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<GetUniverseFactions200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_factions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_graphics(opts = {}) ⇒ Array<Integer>
Get graphics Get a list of graphics — This route expires daily at 11:05
571 572 573 574 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 571 def get_universe_graphics(opts = {}) data, _status_code, _headers = get_universe_graphics_with_http_info(opts) return data end |
#get_universe_graphics_graphic_id(graphic_id, opts = {}) ⇒ GetUniverseGraphicsGraphicIdOk
Get graphic information Get information on a graphic — This route expires daily at 11:05
630 631 632 633 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 630 def get_universe_graphics_graphic_id(graphic_id, opts = {}) data, _status_code, _headers = get_universe_graphics_graphic_id_with_http_info(graphic_id, opts) return data end |
#get_universe_graphics_graphic_id_with_http_info(graphic_id, opts = {}) ⇒ Array<(GetUniverseGraphicsGraphicIdOk, Fixnum, Hash)>
Get graphic information Get information on a graphic — This route expires daily at 11:05
642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 642 def get_universe_graphics_graphic_id_with_http_info(graphic_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_graphics_graphic_id ..." end # verify the required parameter 'graphic_id' is set if @api_client.config.client_side_validation && graphic_id.nil? fail ArgumentError, "Missing the required parameter 'graphic_id' when calling UniverseApi.get_universe_graphics_graphic_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/graphics/{graphic_id}/".sub('{' + 'graphic_id' + '}', graphic_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseGraphicsGraphicIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_graphics_graphic_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_graphics_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get graphics Get a list of graphics — This route expires daily at 11:05
582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 582 def get_universe_graphics_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_graphics ..." end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/graphics/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_graphics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_groups(opts = {}) ⇒ Array<Integer>
Get item groups Get a list of item groups — This route expires daily at 11:05
694 695 696 697 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 694 def get_universe_groups(opts = {}) data, _status_code, _headers = get_universe_groups_with_http_info(opts) return data end |
#get_universe_groups_group_id(group_id, opts = {}) ⇒ GetUniverseGroupsGroupIdOk
Get item group information Get information on an item group — This route expires daily at 11:05
761 762 763 764 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 761 def get_universe_groups_group_id(group_id, opts = {}) data, _status_code, _headers = get_universe_groups_group_id_with_http_info(group_id, opts) return data end |
#get_universe_groups_group_id_with_http_info(group_id, opts = {}) ⇒ Array<(GetUniverseGroupsGroupIdOk, Fixnum, Hash)>
Get item group information Get information on an item group — This route expires daily at 11:05
775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 775 def get_universe_groups_group_id_with_http_info(group_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_groups_group_id ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? fail ArgumentError, "Missing the required parameter 'group_id' when calling UniverseApi.get_universe_groups_group_id" end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end # resource path local_var_path = "/v1/universe/groups/{group_id}/".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseGroupsGroupIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_groups_group_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_groups_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get item groups Get a list of item groups — This route expires daily at 11:05
706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 706 def get_universe_groups_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_groups ..." end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling UniverseApi.get_universe_groups, must be greater than or equal to 1.' end # resource path local_var_path = "/v1/universe/groups/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_moons_moon_id(moon_id, opts = {}) ⇒ GetUniverseMoonsMoonIdOk
Get moon information Get information on a moon — This route expires daily at 11:05
835 836 837 838 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 835 def get_universe_moons_moon_id(moon_id, opts = {}) data, _status_code, _headers = get_universe_moons_moon_id_with_http_info(moon_id, opts) return data end |
#get_universe_moons_moon_id_with_http_info(moon_id, opts = {}) ⇒ Array<(GetUniverseMoonsMoonIdOk, Fixnum, Hash)>
Get moon information Get information on a moon — This route expires daily at 11:05
847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 847 def get_universe_moons_moon_id_with_http_info(moon_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_moons_moon_id ..." end # verify the required parameter 'moon_id' is set if @api_client.config.client_side_validation && moon_id.nil? fail ArgumentError, "Missing the required parameter 'moon_id' when calling UniverseApi.get_universe_moons_moon_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/moons/{moon_id}/".sub('{' + 'moon_id' + '}', moon_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseMoonsMoonIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_moons_moon_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_planets_planet_id(planet_id, opts = {}) ⇒ GetUniversePlanetsPlanetIdOk
Get planet information Get information on a planet — This route expires daily at 11:05
899 900 901 902 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 899 def get_universe_planets_planet_id(planet_id, opts = {}) data, _status_code, _headers = get_universe_planets_planet_id_with_http_info(planet_id, opts) return data end |
#get_universe_planets_planet_id_with_http_info(planet_id, opts = {}) ⇒ Array<(GetUniversePlanetsPlanetIdOk, Fixnum, Hash)>
Get planet information Get information on a planet — This route expires daily at 11:05
911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 911 def get_universe_planets_planet_id_with_http_info(planet_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_planets_planet_id ..." end # verify the required parameter 'planet_id' is set if @api_client.config.client_side_validation && planet_id.nil? fail ArgumentError, "Missing the required parameter 'planet_id' when calling UniverseApi.get_universe_planets_planet_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/planets/{planet_id}/".sub('{' + 'planet_id' + '}', planet_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniversePlanetsPlanetIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_planets_planet_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_races(opts = {}) ⇒ Array<GetUniverseRaces200Ok>
Get character races Get a list of character races — This route expires daily at 11:05
964 965 966 967 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 964 def get_universe_races(opts = {}) data, _status_code, _headers = get_universe_races_with_http_info(opts) return data end |
#get_universe_races_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseRaces200Ok>, Fixnum, Hash)>
Get character races Get a list of character races — This route expires daily at 11:05
977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 977 def get_universe_races_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_races ..." end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end # resource path local_var_path = "/v1/universe/races/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<GetUniverseRaces200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_races\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_regions(opts = {}) ⇒ Array<Integer>
Get regions Get a list of regions — This route expires daily at 11:05
1032 1033 1034 1035 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1032 def get_universe_regions(opts = {}) data, _status_code, _headers = get_universe_regions_with_http_info(opts) return data end |
#get_universe_regions_region_id(region_id, opts = {}) ⇒ GetUniverseRegionsRegionIdOk
Get region information Get information on a region — This route expires daily at 11:05
1093 1094 1095 1096 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1093 def get_universe_regions_region_id(region_id, opts = {}) data, _status_code, _headers = get_universe_regions_region_id_with_http_info(region_id, opts) return data end |
#get_universe_regions_region_id_with_http_info(region_id, opts = {}) ⇒ Array<(GetUniverseRegionsRegionIdOk, Fixnum, Hash)>
Get region information Get information on a region — This route expires daily at 11:05
1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1107 def get_universe_regions_region_id_with_http_info(region_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_regions_region_id ..." end # verify the required parameter 'region_id' is set if @api_client.config.client_side_validation && region_id.nil? fail ArgumentError, "Missing the required parameter 'region_id' when calling UniverseApi.get_universe_regions_region_id" end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end # resource path local_var_path = "/v1/universe/regions/{region_id}/".sub('{' + 'region_id' + '}', region_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseRegionsRegionIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_regions_region_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_regions_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get regions Get a list of regions — This route expires daily at 11:05
1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1043 def get_universe_regions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_regions ..." end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/regions/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_stargates_stargate_id(stargate_id, opts = {}) ⇒ GetUniverseStargatesStargateIdOk
Get stargate information Get information on a stargate — This route expires daily at 11:05
1167 1168 1169 1170 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1167 def get_universe_stargates_stargate_id(stargate_id, opts = {}) data, _status_code, _headers = get_universe_stargates_stargate_id_with_http_info(stargate_id, opts) return data end |
#get_universe_stargates_stargate_id_with_http_info(stargate_id, opts = {}) ⇒ Array<(GetUniverseStargatesStargateIdOk, Fixnum, Hash)>
Get stargate information Get information on a stargate — This route expires daily at 11:05
1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1179 def get_universe_stargates_stargate_id_with_http_info(stargate_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_stargates_stargate_id ..." end # verify the required parameter 'stargate_id' is set if @api_client.config.client_side_validation && stargate_id.nil? fail ArgumentError, "Missing the required parameter 'stargate_id' when calling UniverseApi.get_universe_stargates_stargate_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/stargates/{stargate_id}/".sub('{' + 'stargate_id' + '}', stargate_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseStargatesStargateIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_stargates_stargate_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_stars_star_id(star_id, opts = {}) ⇒ GetUniverseStarsStarIdOk
Get star information Get information on a star — This route expires daily at 11:05
1231 1232 1233 1234 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1231 def get_universe_stars_star_id(star_id, opts = {}) data, _status_code, _headers = get_universe_stars_star_id_with_http_info(star_id, opts) return data end |
#get_universe_stars_star_id_with_http_info(star_id, opts = {}) ⇒ Array<(GetUniverseStarsStarIdOk, Fixnum, Hash)>
Get star information Get information on a star — This route expires daily at 11:05
1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1243 def get_universe_stars_star_id_with_http_info(star_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_stars_star_id ..." end # verify the required parameter 'star_id' is set if @api_client.config.client_side_validation && star_id.nil? fail ArgumentError, "Missing the required parameter 'star_id' when calling UniverseApi.get_universe_stars_star_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/stars/{star_id}/".sub('{' + 'star_id' + '}', star_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseStarsStarIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_stars_star_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_stations_station_id(station_id, opts = {}) ⇒ GetUniverseStationsStationIdOk
Get station information Get information on a station — This route expires daily at 11:05
1295 1296 1297 1298 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1295 def get_universe_stations_station_id(station_id, opts = {}) data, _status_code, _headers = get_universe_stations_station_id_with_http_info(station_id, opts) return data end |
#get_universe_stations_station_id_with_http_info(station_id, opts = {}) ⇒ Array<(GetUniverseStationsStationIdOk, Fixnum, Hash)>
Get station information Get information on a station — This route expires daily at 11:05
1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1307 def get_universe_stations_station_id_with_http_info(station_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_stations_station_id ..." end # verify the required parameter 'station_id' is set if @api_client.config.client_side_validation && station_id.nil? fail ArgumentError, "Missing the required parameter 'station_id' when calling UniverseApi.get_universe_stations_station_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v2/universe/stations/{station_id}/".sub('{' + 'station_id' + '}', station_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseStationsStationIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_stations_station_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_structures(opts = {}) ⇒ Array<Integer>
List all public structures List all public structures — This route is cached for up to 3600 seconds
1359 1360 1361 1362 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1359 def get_universe_structures(opts = {}) data, _status_code, _headers = get_universe_structures_with_http_info(opts) return data end |
#get_universe_structures_structure_id(structure_id, opts = {}) ⇒ GetUniverseStructuresStructureIdOk
Get structure information Returns information on requested structure if you are on the ACL. Otherwise, returns "Forbidden" for all inputs. — This route is cached for up to 3600 seconds
1424 1425 1426 1427 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1424 def get_universe_structures_structure_id(structure_id, opts = {}) data, _status_code, _headers = get_universe_structures_structure_id_with_http_info(structure_id, opts) return data end |
#get_universe_structures_structure_id_with_http_info(structure_id, opts = {}) ⇒ Array<(GetUniverseStructuresStructureIdOk, Fixnum, Hash)>
Get structure information Returns information on requested structure if you are on the ACL. Otherwise, returns "Forbidden" for all inputs. — This route is cached for up to 3600 seconds
1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1437 def get_universe_structures_structure_id_with_http_info(structure_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_structures_structure_id ..." end # verify the required parameter 'structure_id' is set if @api_client.config.client_side_validation && structure_id.nil? fail ArgumentError, "Missing the required parameter 'structure_id' when calling UniverseApi.get_universe_structures_structure_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v2/universe/structures/{structure_id}/".sub('{' + 'structure_id' + '}', structure_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] 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 => 'GetUniverseStructuresStructureIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_structures_structure_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_structures_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
List all public structures List all public structures — This route is cached for up to 3600 seconds
1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1371 def get_universe_structures_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_structures ..." end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'filter'] && !['market', 'manufacturing_basic'].include?(opts[:'filter']) fail ArgumentError, 'invalid value for "filter", must be one of market, manufacturing_basic' end # resource path local_var_path = "/v1/universe/structures/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_structures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_system_jumps(opts = {}) ⇒ Array<GetUniverseSystemJumps200Ok>
Get system jumps Get the number of jumps in solar systems within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with jumps will be listed — This route is cached for up to 3600 seconds
1489 1490 1491 1492 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1489 def get_universe_system_jumps(opts = {}) data, _status_code, _headers = get_universe_system_jumps_with_http_info(opts) return data end |
#get_universe_system_jumps_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseSystemJumps200Ok>, Fixnum, Hash)>
Get system jumps Get the number of jumps in solar systems within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with jumps will be listed — This route is cached for up to 3600 seconds
1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1500 def get_universe_system_jumps_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_system_jumps ..." end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/system_jumps/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<GetUniverseSystemJumps200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_system_jumps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_system_kills(opts = {}) ⇒ Array<GetUniverseSystemKills200Ok>
Get system kills Get the number of ship, pod and NPC kills per solar system within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with kills will be listed — This route is cached for up to 3600 seconds
1547 1548 1549 1550 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1547 def get_universe_system_kills(opts = {}) data, _status_code, _headers = get_universe_system_kills_with_http_info(opts) return data end |
#get_universe_system_kills_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseSystemKills200Ok>, Fixnum, Hash)>
Get system kills Get the number of ship, pod and NPC kills per solar system within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with kills will be listed — This route is cached for up to 3600 seconds
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1558 def get_universe_system_kills_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_system_kills ..." end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v2/universe/system_kills/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<GetUniverseSystemKills200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_system_kills\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_systems(opts = {}) ⇒ Array<Integer>
Get solar systems Get a list of solar systems — This route expires daily at 11:05
1605 1606 1607 1608 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1605 def get_universe_systems(opts = {}) data, _status_code, _headers = get_universe_systems_with_http_info(opts) return data end |
#get_universe_systems_system_id(system_id, opts = {}) ⇒ GetUniverseSystemsSystemIdOk
Get solar system information Get information on a solar system. — This route expires daily at 11:05
1666 1667 1668 1669 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1666 def get_universe_systems_system_id(system_id, opts = {}) data, _status_code, _headers = get_universe_systems_system_id_with_http_info(system_id, opts) return data end |
#get_universe_systems_system_id_with_http_info(system_id, opts = {}) ⇒ Array<(GetUniverseSystemsSystemIdOk, Fixnum, Hash)>
Get solar system information Get information on a solar system. — This route expires daily at 11:05
1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1680 def get_universe_systems_system_id_with_http_info(system_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_systems_system_id ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? fail ArgumentError, "Missing the required parameter 'system_id' when calling UniverseApi.get_universe_systems_system_id" end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end # resource path local_var_path = "/v4/universe/systems/{system_id}/".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseSystemsSystemIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_systems_system_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_systems_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get solar systems Get a list of solar systems — This route expires daily at 11:05
1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1616 def get_universe_systems_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_systems ..." end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/universe/systems/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_systems\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_types(opts = {}) ⇒ Array<Integer>
Get types Get a list of type ids — This route expires daily at 11:05
1740 1741 1742 1743 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1740 def get_universe_types(opts = {}) data, _status_code, _headers = get_universe_types_with_http_info(opts) return data end |
#get_universe_types_type_id(type_id, opts = {}) ⇒ GetUniverseTypesTypeIdOk
Get type information Get information on a type — This route expires daily at 11:05
1807 1808 1809 1810 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1807 def get_universe_types_type_id(type_id, opts = {}) data, _status_code, _headers = get_universe_types_type_id_with_http_info(type_id, opts) return data end |
#get_universe_types_type_id_with_http_info(type_id, opts = {}) ⇒ Array<(GetUniverseTypesTypeIdOk, Fixnum, Hash)>
Get type information Get information on a type — This route expires daily at 11:05
1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1821 def get_universe_types_type_id_with_http_info(type_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_types_type_id ..." end # verify the required parameter 'type_id' is set if @api_client.config.client_side_validation && type_id.nil? fail ArgumentError, "Missing the required parameter 'type_id' when calling UniverseApi.get_universe_types_type_id" end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end # resource path local_var_path = "/v3/universe/types/{type_id}/".sub('{' + 'type_id' + '}', type_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'GetUniverseTypesTypeIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_types_type_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_types_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get types Get a list of type ids — This route expires daily at 11:05
1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1752 def get_universe_types_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_types ..." end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling UniverseApi.get_universe_types, must be greater than or equal to 1.' end # resource path local_var_path = "/v1/universe/types/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_universe_ids(names, opts = {}) ⇒ PostUniverseIdsOk
Bulk names to IDs Resolve a set of names to IDs in the following categories: agents, alliances, characters, constellations, corporations factions, inventory_types, regions, stations, and systems. Only exact matches will be returned. All names searched for are cached for 12 hours —
1882 1883 1884 1885 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1882 def post_universe_ids(names, opts = {}) data, _status_code, _headers = post_universe_ids_with_http_info(names, opts) return data end |
#post_universe_ids_with_http_info(names, opts = {}) ⇒ Array<(PostUniverseIdsOk, Fixnum, Hash)>
Bulk names to IDs Resolve a set of names to IDs in the following categories: agents, alliances, characters, constellations, corporations factions, inventory_types, regions, stations, and systems. Only exact matches will be returned. All names searched for are cached for 12 hours —
1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1895 def post_universe_ids_with_http_info(names, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.post_universe_ids ..." end # verify the required parameter 'names' is set if @api_client.config.client_side_validation && names.nil? fail ArgumentError, "Missing the required parameter 'names' when calling UniverseApi.post_universe_ids" end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end # resource path local_var_path = "/v1/universe/ids/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(names) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PostUniverseIdsOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#post_universe_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_universe_names(ids, opts = {}) ⇒ Array<PostUniverseNames200Ok>
Get names and categories for a set of ID’s Resolve a set of IDs to names and categories. Supported ID’s for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types —
1953 1954 1955 1956 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1953 def post_universe_names(ids, opts = {}) data, _status_code, _headers = post_universe_names_with_http_info(ids, opts) return data end |
#post_universe_names_with_http_info(ids, opts = {}) ⇒ Array<(Array<PostUniverseNames200Ok>, Fixnum, Hash)>
Get names and categories for a set of ID's Resolve a set of IDs to names and categories. Supported ID's for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types —
1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 |
# File 'lib/esi-client-bvv/api/universe_api.rb', line 1964 def post_universe_names_with_http_info(ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UniverseApi.post_universe_names ..." end # verify the required parameter 'ids' is set if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling UniverseApi.post_universe_names" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v2/universe/names/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(ids) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<PostUniverseNames200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#post_universe_names\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |