new Wing(fleet, wingId)
Create a new Wing adaptor owned by the given fleet
corresponding
to the given wingId
.
Parameters:
Name | Type | Description |
---|---|---|
fleet |
Fleet | The owning fleet |
wingId |
Number | The wing id of this instance |
Members
Methods
-
del()
-
Delete a fleet wing, only empty wings can be deleted. The wing may contain squads, but the squads must be empty.
This makes an HTTP DELETE request to
/fleets/{fleet_id}/wings/{wing_id}/
. The route version isv1
.On success, this resolves to an empty object.
This function must be used with an SSO token that has the following scopes:
esi-fleets.write_fleet.v1
Returns:
A Promise that resolves to an empty object.
- Type
- Promise.<Object>
-
rename(name)
-
Rename a fleet wing.
This makes an HTTP PUT request to
/fleets/{fleet_id}/wings/{wing_id}/
. The route version isv1
.The route parameter,
naming
, is built implicitly by the function. The function argumentname
maps to thename
property of thenaming
route parameter. The string length ofname
can be at most10
.On success, this resolves to an empty object.
This function must be used with an SSO token that has the following scopes:
esi-fleets.write_fleet.v1
Parameters:
Name Type Description name
String Name string.
Returns:
A Promise that resolves to an empty object.
- Type
- Promise.<Object>