ionos-cloud / sdk-java

IONOS Cloud Official Java SDK
Apache License 2.0
3 stars 4 forks source link

Cannot create composite servers #1

Closed mimihalescu closed 3 years ago

mimihalescu commented 3 years ago

name about labels assignees
Bug report Creating composite servers bug mihaela-mh

Description

Cannot create composite servers (a server that has nics/cdroms/volumes attached).

Expected behavior

When trying to create a server that has any entities attached, the operation should succeed.

Environment

Java version: 1.11

SDK version: 5.0.0

OS: Ubuntu 20.04

Configuration Files

N/A

Error and Debug Output

The SDK returns NullPointerException when calling the datacentersServersPost method.

mimihalescu commented 3 years ago

I am currently working on it. In the Cloud API swagger file the AttachedVolumes, Cdroms and Nics items property is read-only, which means that when the Java SDK is generated, it does not generate setters for the items field. To solve this problem, I opened a PR for the swagger file to make the specified parameters editable. The next step is to regenerate the SDK and release a new version of it.

TomaAlexandru commented 3 years ago

new sdk has been generated and published.