Skip to content

Commit 1a0e811

Browse files
committed
update service readmes
1 parent 723f50b commit 1a0e811

File tree

2 files changed

+2
-61
lines changed

2 files changed

+2
-61
lines changed

services/iaas/README.md

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -76,38 +76,8 @@ Then manually install the following JARs:
7676

7777
## Getting Started
7878

79-
Please follow the [installation](#installation) instruction and execute the following Java code:
80-
81-
```java
82-
83-
import cloud.stackit.sdk.iaas.*;
84-
import cloud.stackit.sdk.iaas.auth.*;
85-
import cloud.stackit.sdk.iaas.model.*;
86-
import cloud.stackit.sdk.iaas.api.DefaultApi;
87-
88-
public class DefaultApiExample {
89-
90-
public static void main(String[] args) {
91-
ApiClient defaultClient = Configuration.getDefaultApiClient();
92-
defaultClient.setBasePath("https://iaas.api.eu01.stackit.cloud");
93-
94-
DefaultApi apiInstance = new DefaultApi(defaultClient);
95-
UUID projectId = UUID.randomUUID(); // UUID | The identifier (ID) of a STACKIT Project.
96-
UUID serverId = UUID.randomUUID(); // UUID | The identifier (ID) of a STACKIT Server.
97-
UUID networkId = UUID.randomUUID(); // UUID | The identifier (ID) of a STACKIT Network.
98-
try {
99-
apiInstance.addNetworkToServer(projectId, serverId, networkId);
100-
} catch (ApiException e) {
101-
System.err.println("Exception when calling DefaultApi#addNetworkToServer");
102-
System.err.println("Status code: " + e.getCode());
103-
System.err.println("Reason: " + e.getResponseBody());
104-
System.err.println("Response headers: " + e.getResponseHeaders());
105-
e.printStackTrace();
106-
}
107-
}
108-
}
79+
See the [iaas examples](https://github.com/stackitcloud/stackit-sdk-java/tree/main/examples/iaas/src/main/java/cloud/stackit/sdk/iaas/examples).
10980

110-
```
11181

11282
## Recommendation
11383

services/resourcemanager/README.md

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -96,37 +96,8 @@ Then manually install the following JARs:
9696

9797
## Getting Started
9898

99-
Please follow the [installation](#installation) instruction and execute the following Java code:
100-
101-
```java
102-
103-
import cloud.stackit.sdk.resourcemanager.*;
104-
import cloud.stackit.sdk.resourcemanager.auth.*;
105-
import cloud.stackit.sdk.resourcemanager.model.*;
106-
import cloud.stackit.sdk.resourcemanager.api.DefaultApi;
107-
108-
public class DefaultApiExample {
109-
110-
public static void main(String[] args) {
111-
ApiClient defaultClient = Configuration.getDefaultApiClient();
112-
defaultClient.setBasePath("https://resource-manager.api.stackit.cloud");
113-
114-
DefaultApi apiInstance = new DefaultApi(defaultClient);
115-
CreateFolderPayload createFolderPayload = new CreateFolderPayload(); // CreateFolderPayload |
116-
try {
117-
FolderResponse result = apiInstance.createFolder(createFolderPayload);
118-
System.out.println(result);
119-
} catch (ApiException e) {
120-
System.err.println("Exception when calling DefaultApi#createFolder");
121-
System.err.println("Status code: " + e.getCode());
122-
System.err.println("Reason: " + e.getResponseBody());
123-
System.err.println("Response headers: " + e.getResponseHeaders());
124-
e.printStackTrace();
125-
}
126-
}
127-
}
99+
See the [resourcemanager examples](https://github.com/stackitcloud/stackit-sdk-java/tree/main/examples/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/examples).
128100

129-
```
130101

131102
## Recommendation
132103

0 commit comments

Comments
 (0)