Class DevicesImpl
java.lang.Object
api.equinix.javasdk.networkedge.client.implementation.DevicesImpl
-
Constructor Summary
ConstructorsConstructorDescriptionDevicesImpl(DeviceClient<Device> serviceClient, DeviceTypeClient<DeviceType> deviceTypesServiceClient, NetworkEdge serviceManager) Constructor for DevicesImpl. -
Method Summary
Modifier and TypeMethodDescriptionReturns an instance of DeviceBuilder for defining a new device.defineSecondary(String secondaryDeviceName, String primaryDeviceUuid) Returns an instance of DeviceBuilderSecondary for defining a secondary device.Gets the specified device.list()list.list(RequestBuilder.Device requestBuilder) Lists Network Edge devices based on the parameters provided.listDeviceTypes.listInterfaces(String uuid) Lists the interfaces for the specified device.postLicenseFile(MetroCode metroCode, String deviceTypeCode, LicenseType licenseType, String fileContents) Posts a new license file.
-
Constructor Details
-
DevicesImpl
public DevicesImpl(DeviceClient<Device> serviceClient, DeviceTypeClient<DeviceType> deviceTypesServiceClient, NetworkEdge serviceManager) Constructor for DevicesImpl.
- Parameters:
serviceClient- aDeviceClientobject.deviceTypesServiceClient- aDeviceTypeClientobject.serviceManager- aNetworkEdgeobject.
-
-
Method Details
-
list
list.
- Specified by:
listin interfaceDevices- Returns:
- a
PaginatedListobject.
-
list
Lists Network Edge devices based on the parameters provided.list.
- Specified by:
listin interfaceDevices- Parameters:
requestBuilder- the desired query parameters.- Returns:
PaginatedList
-
listDeviceTypes
listDeviceTypes.
- Specified by:
listDeviceTypesin interfaceDevices- Returns:
- a
PaginatedListobject.
-
listInterfaces
Lists the interfaces for the specified device.- Specified by:
listInterfacesin interfaceDevices- Parameters:
uuid- the unique identifier of the device.- Returns:
List
-
getByUuid
-
define
Returns an instance of DeviceBuilder for defining a new device.define.
- Specified by:
definein interfaceDevices- Parameters:
deviceName- aStringobject.- Returns:
DeviceOperator.DeviceBuilder
-
defineSecondary
public DeviceOperator.DeviceBuilderSecondary defineSecondary(String secondaryDeviceName, String primaryDeviceUuid) Returns an instance of DeviceBuilderSecondary for defining a secondary device.define.
- Specified by:
defineSecondaryin interfaceDevices- Parameters:
secondaryDeviceName- aStringobject.primaryDeviceUuid- aStringobject.- Returns:
DeviceOperator.DeviceBuilderSecondary
-
postLicenseFile
public String postLicenseFile(MetroCode metroCode, String deviceTypeCode, LicenseType licenseType, String fileContents) Posts a new license file.- Specified by:
postLicenseFilein interfaceDevices- Parameters:
metroCode- theMetroCodeto associate the license file with.deviceTypeCode- the device type code to associate the license file with.licenseType- theLicenseTypeto associate the license file with.fileContents- the contents of the license file.- Returns:
Stringthe fileId of the uploaded license file.
-