Class: ESIClient::FleetsApi
- Inherits:
-
Object
- Object
- ESIClient::FleetsApi
- Defined in:
- lib/esi_client/api/fleets_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_fleets_fleet_id_members_member_id(fleet_id, member_id, opts = {}) ⇒ nil
Kick fleet member Kick a fleet member —.
-
#delete_fleets_fleet_id_members_member_id_with_http_info(fleet_id, member_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Kick fleet member Kick a fleet member —.
-
#delete_fleets_fleet_id_squads_squad_id(fleet_id, squad_id, opts = {}) ⇒ nil
Delete fleet squad Delete a fleet squad, only empty squads can be deleted —.
-
#delete_fleets_fleet_id_squads_squad_id_with_http_info(fleet_id, squad_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete fleet squad Delete a fleet squad, only empty squads can be deleted —.
-
#delete_fleets_fleet_id_wings_wing_id(fleet_id, wing_id, opts = {}) ⇒ nil
Delete fleet wing Delete a fleet wing, only empty wings can be deleted.
-
#delete_fleets_fleet_id_wings_wing_id_with_http_info(fleet_id, wing_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete fleet wing Delete a fleet wing, only empty wings can be deleted.
-
#get_characters_character_id_fleet(character_id, opts = {}) ⇒ GetCharactersCharacterIdFleetOk
Get character fleet info Return the fleet ID the character is in, if any.
-
#get_characters_character_id_fleet_with_http_info(character_id, opts = {}) ⇒ Array<(GetCharactersCharacterIdFleetOk, Fixnum, Hash)>
Get character fleet info Return the fleet ID the character is in, if any.
-
#get_fleets_fleet_id(fleet_id, opts = {}) ⇒ GetFleetsFleetIdOk
Get fleet information Return details about a fleet — This route is cached for up to 5 seconds.
-
#get_fleets_fleet_id_members(fleet_id, opts = {}) ⇒ Array<GetFleetsFleetIdMembers200Ok>
Get fleet members Return information about fleet members — This route is cached for up to 5 seconds.
-
#get_fleets_fleet_id_members_with_http_info(fleet_id, opts = {}) ⇒ Array<(Array<GetFleetsFleetIdMembers200Ok>, Fixnum, Hash)>
Get fleet members Return information about fleet members — This route is cached for up to 5 seconds.
-
#get_fleets_fleet_id_wings(fleet_id, opts = {}) ⇒ Array<GetFleetsFleetIdWings200Ok>
Get fleet wings Return information about wings in a fleet — This route is cached for up to 5 seconds.
-
#get_fleets_fleet_id_wings_with_http_info(fleet_id, opts = {}) ⇒ Array<(Array<GetFleetsFleetIdWings200Ok>, Fixnum, Hash)>
Get fleet wings Return information about wings in a fleet — This route is cached for up to 5 seconds.
-
#get_fleets_fleet_id_with_http_info(fleet_id, opts = {}) ⇒ Array<(GetFleetsFleetIdOk, Fixnum, Hash)>
Get fleet information Return details about a fleet — This route is cached for up to 5 seconds.
-
#initialize(api_client = ApiClient.default) ⇒ FleetsApi
constructor
A new instance of FleetsApi.
-
#post_fleets_fleet_id_members(fleet_id, invitation, opts = {}) ⇒ nil
Create fleet invitation Invite a character into the fleet.
-
#post_fleets_fleet_id_members_with_http_info(fleet_id, invitation, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create fleet invitation Invite a character into the fleet.
-
#post_fleets_fleet_id_wings(fleet_id, opts = {}) ⇒ PostFleetsFleetIdWingsCreated
Create fleet wing Create a new wing in a fleet —.
-
#post_fleets_fleet_id_wings_wing_id_squads(fleet_id, wing_id, opts = {}) ⇒ PostFleetsFleetIdWingsWingIdSquadsCreated
Create fleet squad Create a new squad in a fleet —.
-
#post_fleets_fleet_id_wings_wing_id_squads_with_http_info(fleet_id, wing_id, opts = {}) ⇒ Array<(PostFleetsFleetIdWingsWingIdSquadsCreated, Fixnum, Hash)>
Create fleet squad Create a new squad in a fleet —.
-
#post_fleets_fleet_id_wings_with_http_info(fleet_id, opts = {}) ⇒ Array<(PostFleetsFleetIdWingsCreated, Fixnum, Hash)>
Create fleet wing Create a new wing in a fleet —.
-
#put_fleets_fleet_id(fleet_id, new_settings, opts = {}) ⇒ nil
Update fleet Update settings about a fleet —.
-
#put_fleets_fleet_id_members_member_id(fleet_id, member_id, movement, opts = {}) ⇒ nil
Move fleet member Move a fleet member around —.
-
#put_fleets_fleet_id_members_member_id_with_http_info(fleet_id, member_id, movement, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Move fleet member Move a fleet member around —.
-
#put_fleets_fleet_id_squads_squad_id(fleet_id, naming, squad_id, opts = {}) ⇒ nil
Rename fleet squad Rename a fleet squad —.
-
#put_fleets_fleet_id_squads_squad_id_with_http_info(fleet_id, naming, squad_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Rename fleet squad Rename a fleet squad —.
-
#put_fleets_fleet_id_wings_wing_id(fleet_id, naming, wing_id, opts = {}) ⇒ nil
Rename fleet wing Rename a fleet wing —.
-
#put_fleets_fleet_id_wings_wing_id_with_http_info(fleet_id, naming, wing_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Rename fleet wing Rename a fleet wing —.
-
#put_fleets_fleet_id_with_http_info(fleet_id, new_settings, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update fleet Update settings about a fleet —.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/esi_client/api/fleets_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#delete_fleets_fleet_id_members_member_id(fleet_id, member_id, opts = {}) ⇒ nil
Kick fleet member Kick a fleet member —
32 33 34 35 |
# File 'lib/esi_client/api/fleets_api.rb', line 32 def delete_fleets_fleet_id_members_member_id(fleet_id, member_id, opts = {}) delete_fleets_fleet_id_members_member_id_with_http_info(fleet_id, member_id, opts) nil end |
#delete_fleets_fleet_id_members_member_id_with_http_info(fleet_id, member_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Kick fleet member Kick a fleet member —
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 92 93 |
# File 'lib/esi_client/api/fleets_api.rb', line 47 def delete_fleets_fleet_id_members_member_id_with_http_info(fleet_id, member_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.delete_fleets_fleet_id_members_member_id ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.delete_fleets_fleet_id_members_member_id" end # verify the required parameter 'member_id' is set if @api_client.config.client_side_validation && member_id.nil? fail ArgumentError, "Missing the required parameter 'member_id' when calling FleetsApi.delete_fleets_fleet_id_members_member_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/fleets/{fleet_id}/members/{member_id}/'.sub('{' + 'fleet_id' + '}', fleet_id.to_s).sub('{' + 'member_id' + '}', member_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#delete_fleets_fleet_id_members_member_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_fleets_fleet_id_squads_squad_id(fleet_id, squad_id, opts = {}) ⇒ nil
Delete fleet squad Delete a fleet squad, only empty squads can be deleted —
104 105 106 107 |
# File 'lib/esi_client/api/fleets_api.rb', line 104 def delete_fleets_fleet_id_squads_squad_id(fleet_id, squad_id, opts = {}) delete_fleets_fleet_id_squads_squad_id_with_http_info(fleet_id, squad_id, opts) nil end |
#delete_fleets_fleet_id_squads_squad_id_with_http_info(fleet_id, squad_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete fleet squad Delete a fleet squad, only empty squads can be deleted —
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 158 159 160 161 162 163 164 165 |
# File 'lib/esi_client/api/fleets_api.rb', line 119 def delete_fleets_fleet_id_squads_squad_id_with_http_info(fleet_id, squad_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.delete_fleets_fleet_id_squads_squad_id ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.delete_fleets_fleet_id_squads_squad_id" end # verify the required parameter 'squad_id' is set if @api_client.config.client_side_validation && squad_id.nil? fail ArgumentError, "Missing the required parameter 'squad_id' when calling FleetsApi.delete_fleets_fleet_id_squads_squad_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/fleets/{fleet_id}/squads/{squad_id}/'.sub('{' + 'fleet_id' + '}', fleet_id.to_s).sub('{' + 'squad_id' + '}', squad_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#delete_fleets_fleet_id_squads_squad_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_fleets_fleet_id_wings_wing_id(fleet_id, wing_id, opts = {}) ⇒ nil
Delete fleet wing Delete a fleet wing, only empty wings can be deleted. The wing may contain squads, but the squads must be empty —
176 177 178 179 |
# File 'lib/esi_client/api/fleets_api.rb', line 176 def delete_fleets_fleet_id_wings_wing_id(fleet_id, wing_id, opts = {}) delete_fleets_fleet_id_wings_wing_id_with_http_info(fleet_id, wing_id, opts) nil end |
#delete_fleets_fleet_id_wings_wing_id_with_http_info(fleet_id, wing_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete fleet wing Delete a fleet wing, only empty wings can be deleted. The wing may contain squads, but the squads must be empty —
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 229 230 231 232 233 234 235 236 237 |
# File 'lib/esi_client/api/fleets_api.rb', line 191 def delete_fleets_fleet_id_wings_wing_id_with_http_info(fleet_id, wing_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.delete_fleets_fleet_id_wings_wing_id ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.delete_fleets_fleet_id_wings_wing_id" end # verify the required parameter 'wing_id' is set if @api_client.config.client_side_validation && wing_id.nil? fail ArgumentError, "Missing the required parameter 'wing_id' when calling FleetsApi.delete_fleets_fleet_id_wings_wing_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/fleets/{fleet_id}/wings/{wing_id}/'.sub('{' + 'fleet_id' + '}', fleet_id.to_s).sub('{' + 'wing_id' + '}', wing_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#delete_fleets_fleet_id_wings_wing_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_characters_character_id_fleet(character_id, opts = {}) ⇒ GetCharactersCharacterIdFleetOk
Get character fleet info Return the fleet ID the character is in, if any. — This route is cached for up to 60 seconds
247 248 249 250 |
# File 'lib/esi_client/api/fleets_api.rb', line 247 def get_characters_character_id_fleet(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_fleet_with_http_info(character_id, opts) data end |
#get_characters_character_id_fleet_with_http_info(character_id, opts = {}) ⇒ Array<(GetCharactersCharacterIdFleetOk, Fixnum, Hash)>
Get character fleet info Return the fleet ID the character is in, if any. — This route is cached for up to 60 seconds
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 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
# File 'lib/esi_client/api/fleets_api.rb', line 261 def get_characters_character_id_fleet_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.get_characters_character_id_fleet ...' 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 FleetsApi.get_characters_character_id_fleet" end if @api_client.config.client_side_validation && character_id < 1 fail ArgumentError, 'invalid value for "character_id" when calling FleetsApi.get_characters_character_id_fleet, must be greater than or equal to 1.' 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/characters/{character_id}/fleet/'.sub('{' + 'character_id' + '}', character_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].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 => 'GetCharactersCharacterIdFleetOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#get_characters_character_id_fleet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_fleets_fleet_id(fleet_id, opts = {}) ⇒ GetFleetsFleetIdOk
Get fleet information Return details about a fleet — This route is cached for up to 5 seconds
318 319 320 321 |
# File 'lib/esi_client/api/fleets_api.rb', line 318 def get_fleets_fleet_id(fleet_id, opts = {}) data, _status_code, _headers = get_fleets_fleet_id_with_http_info(fleet_id, opts) data end |
#get_fleets_fleet_id_members(fleet_id, opts = {}) ⇒ Array<GetFleetsFleetIdMembers200Ok>
Get fleet members Return information about fleet members — This route is cached for up to 5 seconds
386 387 388 389 |
# File 'lib/esi_client/api/fleets_api.rb', line 386 def get_fleets_fleet_id_members(fleet_id, opts = {}) data, _status_code, _headers = get_fleets_fleet_id_members_with_http_info(fleet_id, opts) data end |
#get_fleets_fleet_id_members_with_http_info(fleet_id, opts = {}) ⇒ Array<(Array<GetFleetsFleetIdMembers200Ok>, Fixnum, Hash)>
Get fleet members Return information about fleet members — This route is cached for up to 5 seconds
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 |
# File 'lib/esi_client/api/fleets_api.rb', line 401 def get_fleets_fleet_id_members_with_http_info(fleet_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.get_fleets_fleet_id_members ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.get_fleets_fleet_id_members" 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/fleets/{fleet_id}/members/'.sub('{' + 'fleet_id' + '}', fleet_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? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].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 => 'Array<GetFleetsFleetIdMembers200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#get_fleets_fleet_id_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_fleets_fleet_id_wings(fleet_id, opts = {}) ⇒ Array<GetFleetsFleetIdWings200Ok>
Get fleet wings Return information about wings in a fleet — This route is cached for up to 5 seconds
459 460 461 462 |
# File 'lib/esi_client/api/fleets_api.rb', line 459 def get_fleets_fleet_id_wings(fleet_id, opts = {}) data, _status_code, _headers = get_fleets_fleet_id_wings_with_http_info(fleet_id, opts) data end |
#get_fleets_fleet_id_wings_with_http_info(fleet_id, opts = {}) ⇒ Array<(Array<GetFleetsFleetIdWings200Ok>, Fixnum, Hash)>
Get fleet wings Return information about wings in a fleet — This route is cached for up to 5 seconds
474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 |
# File 'lib/esi_client/api/fleets_api.rb', line 474 def get_fleets_fleet_id_wings_with_http_info(fleet_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.get_fleets_fleet_id_wings ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.get_fleets_fleet_id_wings" 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/fleets/{fleet_id}/wings/'.sub('{' + 'fleet_id' + '}', fleet_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? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].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 => 'Array<GetFleetsFleetIdWings200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#get_fleets_fleet_id_wings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_fleets_fleet_id_with_http_info(fleet_id, opts = {}) ⇒ Array<(GetFleetsFleetIdOk, Fixnum, Hash)>
Get fleet information Return details about a fleet — This route is cached for up to 5 seconds
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 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/esi_client/api/fleets_api.rb', line 332 def get_fleets_fleet_id_with_http_info(fleet_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.get_fleets_fleet_id ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.get_fleets_fleet_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/fleets/{fleet_id}/'.sub('{' + 'fleet_id' + '}', fleet_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].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 => 'GetFleetsFleetIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#get_fleets_fleet_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_fleets_fleet_id_members(fleet_id, invitation, opts = {}) ⇒ nil
Create fleet invitation Invite a character into the fleet. If a character has a CSPA charge set it is not possible to invite them to the fleet using ESI —
532 533 534 535 |
# File 'lib/esi_client/api/fleets_api.rb', line 532 def post_fleets_fleet_id_members(fleet_id, invitation, opts = {}) post_fleets_fleet_id_members_with_http_info(fleet_id, invitation, opts) nil end |
#post_fleets_fleet_id_members_with_http_info(fleet_id, invitation, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create fleet invitation Invite a character into the fleet. If a character has a CSPA charge set it is not possible to invite them to the fleet using ESI —
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 |
# File 'lib/esi_client/api/fleets_api.rb', line 547 def post_fleets_fleet_id_members_with_http_info(fleet_id, invitation, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.post_fleets_fleet_id_members ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.post_fleets_fleet_id_members" end # verify the required parameter 'invitation' is set if @api_client.config.client_side_validation && invitation.nil? fail ArgumentError, "Missing the required parameter 'invitation' when calling FleetsApi.post_fleets_fleet_id_members" 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/fleets/{fleet_id}/members/'.sub('{' + 'fleet_id' + '}', fleet_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(invitation) auth_names = ['evesso'] 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) if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#post_fleets_fleet_id_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_fleets_fleet_id_wings(fleet_id, opts = {}) ⇒ PostFleetsFleetIdWingsCreated
Create fleet wing Create a new wing in a fleet —
603 604 605 606 |
# File 'lib/esi_client/api/fleets_api.rb', line 603 def post_fleets_fleet_id_wings(fleet_id, opts = {}) data, _status_code, _headers = post_fleets_fleet_id_wings_with_http_info(fleet_id, opts) data end |
#post_fleets_fleet_id_wings_wing_id_squads(fleet_id, wing_id, opts = {}) ⇒ PostFleetsFleetIdWingsWingIdSquadsCreated
Create fleet squad Create a new squad in a fleet —
671 672 673 674 |
# File 'lib/esi_client/api/fleets_api.rb', line 671 def post_fleets_fleet_id_wings_wing_id_squads(fleet_id, wing_id, opts = {}) data, _status_code, _headers = post_fleets_fleet_id_wings_wing_id_squads_with_http_info(fleet_id, wing_id, opts) data end |
#post_fleets_fleet_id_wings_wing_id_squads_with_http_info(fleet_id, wing_id, opts = {}) ⇒ Array<(PostFleetsFleetIdWingsWingIdSquadsCreated, Fixnum, Hash)>
Create fleet squad Create a new squad in a fleet —
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 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 |
# File 'lib/esi_client/api/fleets_api.rb', line 686 def post_fleets_fleet_id_wings_wing_id_squads_with_http_info(fleet_id, wing_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.post_fleets_fleet_id_wings_wing_id_squads ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.post_fleets_fleet_id_wings_wing_id_squads" end # verify the required parameter 'wing_id' is set if @api_client.config.client_side_validation && wing_id.nil? fail ArgumentError, "Missing the required parameter 'wing_id' when calling FleetsApi.post_fleets_fleet_id_wings_wing_id_squads" 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/fleets/{fleet_id}/wings/{wing_id}/squads/'.sub('{' + 'fleet_id' + '}', fleet_id.to_s).sub('{' + 'wing_id' + '}', wing_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] 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 => 'PostFleetsFleetIdWingsWingIdSquadsCreated') if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#post_fleets_fleet_id_wings_wing_id_squads\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_fleets_fleet_id_wings_with_http_info(fleet_id, opts = {}) ⇒ Array<(PostFleetsFleetIdWingsCreated, Fixnum, Hash)>
Create fleet wing Create a new wing in a fleet —
617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 |
# File 'lib/esi_client/api/fleets_api.rb', line 617 def post_fleets_fleet_id_wings_with_http_info(fleet_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.post_fleets_fleet_id_wings ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.post_fleets_fleet_id_wings" 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/fleets/{fleet_id}/wings/'.sub('{' + 'fleet_id' + '}', fleet_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] 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 => 'PostFleetsFleetIdWingsCreated') if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#post_fleets_fleet_id_wings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_fleets_fleet_id(fleet_id, new_settings, opts = {}) ⇒ nil
Update fleet Update settings about a fleet —
744 745 746 747 |
# File 'lib/esi_client/api/fleets_api.rb', line 744 def put_fleets_fleet_id(fleet_id, new_settings, opts = {}) put_fleets_fleet_id_with_http_info(fleet_id, new_settings, opts) nil end |
#put_fleets_fleet_id_members_member_id(fleet_id, member_id, movement, opts = {}) ⇒ nil
Move fleet member Move a fleet member around —
817 818 819 820 |
# File 'lib/esi_client/api/fleets_api.rb', line 817 def put_fleets_fleet_id_members_member_id(fleet_id, member_id, movement, opts = {}) put_fleets_fleet_id_members_member_id_with_http_info(fleet_id, member_id, movement, opts) nil end |
#put_fleets_fleet_id_members_member_id_with_http_info(fleet_id, member_id, movement, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Move fleet member Move a fleet member around —
833 834 835 836 837 838 839 840 841 842 843 844 845 846 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 |
# File 'lib/esi_client/api/fleets_api.rb', line 833 def put_fleets_fleet_id_members_member_id_with_http_info(fleet_id, member_id, movement, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.put_fleets_fleet_id_members_member_id ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.put_fleets_fleet_id_members_member_id" end # verify the required parameter 'member_id' is set if @api_client.config.client_side_validation && member_id.nil? fail ArgumentError, "Missing the required parameter 'member_id' when calling FleetsApi.put_fleets_fleet_id_members_member_id" end # verify the required parameter 'movement' is set if @api_client.config.client_side_validation && movement.nil? fail ArgumentError, "Missing the required parameter 'movement' when calling FleetsApi.put_fleets_fleet_id_members_member_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/fleets/{fleet_id}/members/{member_id}/'.sub('{' + 'fleet_id' + '}', fleet_id.to_s).sub('{' + 'member_id' + '}', member_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(movement) auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#put_fleets_fleet_id_members_member_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_fleets_fleet_id_squads_squad_id(fleet_id, naming, squad_id, opts = {}) ⇒ nil
Rename fleet squad Rename a fleet squad —
895 896 897 898 |
# File 'lib/esi_client/api/fleets_api.rb', line 895 def put_fleets_fleet_id_squads_squad_id(fleet_id, naming, squad_id, opts = {}) put_fleets_fleet_id_squads_squad_id_with_http_info(fleet_id, naming, squad_id, opts) nil end |
#put_fleets_fleet_id_squads_squad_id_with_http_info(fleet_id, naming, squad_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Rename fleet squad Rename a fleet squad —
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 955 956 957 958 959 960 961 |
# File 'lib/esi_client/api/fleets_api.rb', line 911 def put_fleets_fleet_id_squads_squad_id_with_http_info(fleet_id, naming, squad_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.put_fleets_fleet_id_squads_squad_id ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.put_fleets_fleet_id_squads_squad_id" end # verify the required parameter 'naming' is set if @api_client.config.client_side_validation && naming.nil? fail ArgumentError, "Missing the required parameter 'naming' when calling FleetsApi.put_fleets_fleet_id_squads_squad_id" end # verify the required parameter 'squad_id' is set if @api_client.config.client_side_validation && squad_id.nil? fail ArgumentError, "Missing the required parameter 'squad_id' when calling FleetsApi.put_fleets_fleet_id_squads_squad_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/fleets/{fleet_id}/squads/{squad_id}/'.sub('{' + 'fleet_id' + '}', fleet_id.to_s).sub('{' + 'squad_id' + '}', squad_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(naming) auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#put_fleets_fleet_id_squads_squad_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_fleets_fleet_id_wings_wing_id(fleet_id, naming, wing_id, opts = {}) ⇒ nil
Rename fleet wing Rename a fleet wing —
973 974 975 976 |
# File 'lib/esi_client/api/fleets_api.rb', line 973 def put_fleets_fleet_id_wings_wing_id(fleet_id, naming, wing_id, opts = {}) put_fleets_fleet_id_wings_wing_id_with_http_info(fleet_id, naming, wing_id, opts) nil end |
#put_fleets_fleet_id_wings_wing_id_with_http_info(fleet_id, naming, wing_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Rename fleet wing Rename a fleet wing —
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 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/esi_client/api/fleets_api.rb', line 989 def put_fleets_fleet_id_wings_wing_id_with_http_info(fleet_id, naming, wing_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.put_fleets_fleet_id_wings_wing_id ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.put_fleets_fleet_id_wings_wing_id" end # verify the required parameter 'naming' is set if @api_client.config.client_side_validation && naming.nil? fail ArgumentError, "Missing the required parameter 'naming' when calling FleetsApi.put_fleets_fleet_id_wings_wing_id" end # verify the required parameter 'wing_id' is set if @api_client.config.client_side_validation && wing_id.nil? fail ArgumentError, "Missing the required parameter 'wing_id' when calling FleetsApi.put_fleets_fleet_id_wings_wing_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/fleets/{fleet_id}/wings/{wing_id}/'.sub('{' + 'fleet_id' + '}', fleet_id.to_s).sub('{' + 'wing_id' + '}', wing_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(naming) auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#put_fleets_fleet_id_wings_wing_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_fleets_fleet_id_with_http_info(fleet_id, new_settings, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update fleet Update settings about a fleet —
759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 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 |
# File 'lib/esi_client/api/fleets_api.rb', line 759 def put_fleets_fleet_id_with_http_info(fleet_id, new_settings, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FleetsApi.put_fleets_fleet_id ...' end # verify the required parameter 'fleet_id' is set if @api_client.config.client_side_validation && fleet_id.nil? fail ArgumentError, "Missing the required parameter 'fleet_id' when calling FleetsApi.put_fleets_fleet_id" end # verify the required parameter 'new_settings' is set if @api_client.config.client_side_validation && new_settings.nil? fail ArgumentError, "Missing the required parameter 'new_settings' when calling FleetsApi.put_fleets_fleet_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/fleets/{fleet_id}/'.sub('{' + 'fleet_id' + '}', fleet_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? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(new_settings) auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FleetsApi#put_fleets_fleet_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |