Class: ESI::PlanetaryInteractionApi
- Inherits:
-
Object
- Object
- ESI::PlanetaryInteractionApi
- Defined in:
- lib/ruby-esi/api/planetary_interaction_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_characters_character_id_planets(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdPlanets200Ok>
Get colonies Returns a list of all planetary colonies owned by a character.
-
#get_characters_character_id_planets_planet_id(character_id, planet_id, opts = {}) ⇒ GetCharactersCharacterIdPlanetsPlanetIdOk
Get colony layout Returns full details on the layout of a single planetary colony, including links, pins and routes.
-
#get_characters_character_id_planets_planet_id_with_http_info(character_id, planet_id, opts = {}) ⇒ Array<(GetCharactersCharacterIdPlanetsPlanetIdOk, Integer, Hash)>
Get colony layout Returns full details on the layout of a single planetary colony, including links, pins and routes.
-
#get_characters_character_id_planets_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdPlanets200Ok>, Integer, Hash)>
Get colonies Returns a list of all planetary colonies owned by a character.
-
#get_corporations_corporation_id_customs_offices(corporation_id, opts = {}) ⇒ Array<GetCorporationsCorporationIdCustomsOffices200Ok>
List corporation customs offices List customs offices owned by a corporation — Alternate route: ‘/dev/corporations/corporation_id/customs_offices/` Alternate route: `/legacy/corporations/corporation_id/customs_offices/` Alternate route: `/v1/corporations/corporation_id/customs_offices/` — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director.
-
#get_corporations_corporation_id_customs_offices_with_http_info(corporation_id, opts = {}) ⇒ Array<(Array<GetCorporationsCorporationIdCustomsOffices200Ok>, Integer, Hash)>
List corporation customs offices List customs offices owned by a corporation — Alternate route: `/dev/corporations/corporation_id/customs_offices/` Alternate route: `/legacy/corporations/corporation_id/customs_offices/` Alternate route: `/v1/corporations/corporation_id/customs_offices/` — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director.
-
#get_universe_schematics_schematic_id(schematic_id, opts = {}) ⇒ GetUniverseSchematicsSchematicIdOk
Get schematic information Get information on a planetary factory schematic — Alternate route: ‘/dev/universe/schematics/schematic_id/` Alternate route: `/legacy/universe/schematics/schematic_id/` Alternate route: `/v1/universe/schematics/schematic_id/` — This route is cached for up to 3600 seconds.
-
#get_universe_schematics_schematic_id_with_http_info(schematic_id, opts = {}) ⇒ Array<(GetUniverseSchematicsSchematicIdOk, Integer, Hash)>
Get schematic information Get information on a planetary factory schematic — Alternate route: `/dev/universe/schematics/schematic_id/` Alternate route: `/legacy/universe/schematics/schematic_id/` Alternate route: `/v1/universe/schematics/schematic_id/` — This route is cached for up to 3600 seconds.
-
#initialize(api_client = ApiClient.default) ⇒ PlanetaryInteractionApi
constructor
A new instance of PlanetaryInteractionApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ PlanetaryInteractionApi
Returns a new instance of PlanetaryInteractionApi.
16 17 18 |
# File 'lib/ruby-esi/api/planetary_interaction_api.rb', line 16 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
14 15 16 |
# File 'lib/ruby-esi/api/planetary_interaction_api.rb', line 14 def api_client @api_client end |
Instance Method Details
#get_characters_character_id_planets(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdPlanets200Ok>
Get colonies Returns a list of all planetary colonies owned by a character. — Alternate route: ‘/dev/characters/character_id/planets/` Alternate route: `/legacy/characters/character_id/planets/` Alternate route: `/v1/characters/character_id/planets/` — This route is cached for up to 600 seconds
27 28 29 30 |
# File 'lib/ruby-esi/api/planetary_interaction_api.rb', line 27 def get_characters_character_id_planets(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_planets_with_http_info(character_id, opts) data end |
#get_characters_character_id_planets_planet_id(character_id, planet_id, opts = {}) ⇒ GetCharactersCharacterIdPlanetsPlanetIdOk
Get colony layout Returns full details on the layout of a single planetary colony, including links, pins and routes. Note: Planetary information is only recalculated when the colony is viewed through the client. Information will not update until this criteria is met. — Alternate route: ‘/dev/characters/character_id/planets/planet_id/` Alternate route: `/v3/characters/character_id/planets/planet_id/`
95 96 97 98 |
# File 'lib/ruby-esi/api/planetary_interaction_api.rb', line 95 def get_characters_character_id_planets_planet_id(character_id, planet_id, opts = {}) data, _status_code, _headers = get_characters_character_id_planets_planet_id_with_http_info(character_id, planet_id, opts) data end |
#get_characters_character_id_planets_planet_id_with_http_info(character_id, planet_id, opts = {}) ⇒ Array<(GetCharactersCharacterIdPlanetsPlanetIdOk, Integer, Hash)>
Get colony layout Returns full details on the layout of a single planetary colony, including links, pins and routes. Note: Planetary information is only recalculated when the colony is viewed through the client. Information will not update until this criteria is met. — Alternate route: `/dev/characters/character_id/planets/planet_id/` Alternate route: `/v3/characters/character_id/planets/planet_id/`
108 109 110 111 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 156 157 |
# File 'lib/ruby-esi/api/planetary_interaction_api.rb', line 108 def get_characters_character_id_planets_planet_id_with_http_info(character_id, planet_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PlanetaryInteractionApi.get_characters_character_id_planets_planet_id ...' end # verify the required parameter 'character_id' is set if @api_client.config.client_side_validation && character_id.nil? fail ArgumentError, "Missing the required parameter 'character_id' when calling PlanetaryInteractionApi.get_characters_character_id_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 PlanetaryInteractionApi.get_characters_character_id_planets_planet_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/characters/{character_id}/planets/{planet_id}/'.sub('{' + 'character_id' + '}', character_id.to_s).sub('{' + 'planet_id' + '}', planet_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetCharactersCharacterIdPlanetsPlanetIdOk' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: PlanetaryInteractionApi#get_characters_character_id_planets_planet_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_characters_character_id_planets_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdPlanets200Ok>, Integer, Hash)>
Get colonies Returns a list of all planetary colonies owned by a character. — Alternate route: `/dev/characters/character_id/planets/` Alternate route: `/legacy/characters/character_id/planets/` Alternate route: `/v1/characters/character_id/planets/` — This route is cached for up to 600 seconds
40 41 42 43 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 |
# File 'lib/ruby-esi/api/planetary_interaction_api.rb', line 40 def get_characters_character_id_planets_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PlanetaryInteractionApi.get_characters_character_id_planets ...' end # verify the required parameter 'character_id' is set if @api_client.config.client_side_validation && character_id.nil? fail ArgumentError, "Missing the required parameter 'character_id' when calling PlanetaryInteractionApi.get_characters_character_id_planets" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/characters/{character_id}/planets/'.sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<GetCharactersCharacterIdPlanets200Ok>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: PlanetaryInteractionApi#get_characters_character_id_planets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_corporations_corporation_id_customs_offices(corporation_id, opts = {}) ⇒ Array<GetCorporationsCorporationIdCustomsOffices200Ok>
List corporation customs offices List customs offices owned by a corporation — Alternate route: ‘/dev/corporations/corporation_id/customs_offices/` Alternate route: `/legacy/corporations/corporation_id/customs_offices/` Alternate route: `/v1/corporations/corporation_id/customs_offices/` — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director
167 168 169 170 |
# File 'lib/ruby-esi/api/planetary_interaction_api.rb', line 167 def get_corporations_corporation_id_customs_offices(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_customs_offices_with_http_info(corporation_id, opts) data end |
#get_corporations_corporation_id_customs_offices_with_http_info(corporation_id, opts = {}) ⇒ Array<(Array<GetCorporationsCorporationIdCustomsOffices200Ok>, Integer, Hash)>
List corporation customs offices List customs offices owned by a corporation — Alternate route: `/dev/corporations/corporation_id/customs_offices/` Alternate route: `/legacy/corporations/corporation_id/customs_offices/` Alternate route: `/v1/corporations/corporation_id/customs_offices/` — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director
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 226 227 228 |
# File 'lib/ruby-esi/api/planetary_interaction_api.rb', line 181 def get_corporations_corporation_id_customs_offices_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PlanetaryInteractionApi.get_corporations_corporation_id_customs_offices ...' end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling PlanetaryInteractionApi.get_corporations_corporation_id_customs_offices" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/corporations/{corporation_id}/customs_offices/'.sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<GetCorporationsCorporationIdCustomsOffices200Ok>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: PlanetaryInteractionApi#get_corporations_corporation_id_customs_offices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_schematics_schematic_id(schematic_id, opts = {}) ⇒ GetUniverseSchematicsSchematicIdOk
Get schematic information Get information on a planetary factory schematic — Alternate route: ‘/dev/universe/schematics/schematic_id/` Alternate route: `/legacy/universe/schematics/schematic_id/` Alternate route: `/v1/universe/schematics/schematic_id/` — This route is cached for up to 3600 seconds
236 237 238 239 |
# File 'lib/ruby-esi/api/planetary_interaction_api.rb', line 236 def get_universe_schematics_schematic_id(schematic_id, opts = {}) data, _status_code, _headers = get_universe_schematics_schematic_id_with_http_info(schematic_id, opts) data end |
#get_universe_schematics_schematic_id_with_http_info(schematic_id, opts = {}) ⇒ Array<(GetUniverseSchematicsSchematicIdOk, Integer, Hash)>
Get schematic information Get information on a planetary factory schematic — Alternate route: `/dev/universe/schematics/schematic_id/` Alternate route: `/legacy/universe/schematics/schematic_id/` Alternate route: `/v1/universe/schematics/schematic_id/` — This route is cached for up to 3600 seconds
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 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/ruby-esi/api/planetary_interaction_api.rb', line 248 def get_universe_schematics_schematic_id_with_http_info(schematic_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PlanetaryInteractionApi.get_universe_schematics_schematic_id ...' end # verify the required parameter 'schematic_id' is set if @api_client.config.client_side_validation && schematic_id.nil? fail ArgumentError, "Missing the required parameter 'schematic_id' when calling PlanetaryInteractionApi.get_universe_schematics_schematic_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/schematics/{schematic_id}/'.sub('{' + 'schematic_id' + '}', schematic_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseSchematicsSchematicIdOk' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: PlanetaryInteractionApi#get_universe_schematics_schematic_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |