softlayer / softlayer-java

SoftLayer API Client for Java
https://softlayer.github.io/softlayer-java/
MIT License
24 stars 26 forks source link

It's not possible to set init parameters for SoftLayer_Hardware_Server service #33

Closed rubercuellar closed 8 years ago

rubercuellar commented 8 years ago

I tried the following code:


import com.softlayer.api.service.hardware.Server;
...
        // Define the hardware
        Long hardwareId = new Long(92862);

        // Create client
        ApiClient client = new RestApiClient().withCredentials(username, apiKey);

        // Define SoftLayer_Hardware_Server service
        Server.Service serverService = Server.service(client, hardwareId);

I was not able to set init parameters

camporter commented 8 years ago

This is a duplicate of https://github.com/softlayer/softlayer-java/issues/21. Please try the latest master and compile the sources via maven again. You'll then have the correct service type in the example given.

rubercuellar commented 8 years ago

My apologies, I tried with the latest master and it works fine. Thanks a lot.