Skip to content

Commit 15a09e7

Browse files
committed
update service readmes
1 parent 723f50b commit 15a09e7

File tree

2 files changed

+2
-63
lines changed

2 files changed

+2
-63
lines changed

services/iaas/README.md

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -76,38 +76,7 @@ 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-
}
109-
110-
```
79+
See the [../../examples/stackit-sdk-iaas/src/main/java/cloud/stackit/sdk/stackit-sdk-iaas/examples](stackit-sdk-iaas examples).
11180

11281
## Recommendation
11382

services/resourcemanager/README.md

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -96,37 +96,7 @@ 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-
}
128-
129-
```
99+
See the [../../examples/stackit-sdk-resourcemanager/src/main/java/cloud/stackit/sdk/stackit-sdk-resourcemanager/examples](stackit-sdk-resourcemanager examples).
130100

131101
## Recommendation
132102

0 commit comments

Comments
 (0)