Skip to content

Commit 5c61429

Browse files
committed
update examples to use specifc service name
2 parents 2701923 + 5ef4c49 commit 5c61429

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/authentication/src/main/java/cloud/stackit/sdk/authentication/examples/AuthenticationExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cloud.stackit.sdk.authentication.examples;
22

33
import cloud.stackit.sdk.core.config.CoreConfiguration;
4-
import cloud.stackit.sdk.resourcemanager.api.DefaultApi;
4+
import cloud.stackit.sdk.resourcemanager.api.ResourceManagerApi;
55
import cloud.stackit.sdk.resourcemanager.model.ListOrganizationsResponse;
66

77
class AuthenticationExample {
@@ -13,7 +13,7 @@ public static void main(String[] args) {
1313
new CoreConfiguration().serviceAccountKeyPath(SERVICE_ACCOUNT_KEY_PATH);
1414

1515
try {
16-
DefaultApi api = new DefaultApi(config);
16+
ResourceManagerApi api = new ResourceManagerApi(config);
1717

1818
/* list all organizations */
1919
ListOrganizationsResponse response =

examples/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/examples/ResourcemanagerExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cloud.stackit.sdk.resourcemanager.examples;
22

33
import cloud.stackit.sdk.core.exception.ApiException;
4-
import cloud.stackit.sdk.resourcemanager.api.DefaultApi;
4+
import cloud.stackit.sdk.resourcemanager.api.ResourceManagerApi;
55
import cloud.stackit.sdk.resourcemanager.model.CreateFolderPayload;
66
import cloud.stackit.sdk.resourcemanager.model.CreateProjectPayload;
77
import cloud.stackit.sdk.resourcemanager.model.FolderResponse;
@@ -14,7 +14,7 @@ class ResourcemanagerExample {
1414
public static void main(String[] args) throws IOException {
1515
// Credentials are read from the credentialsFile in `~/.stackit/credentials.json` or the env
1616
// STACKIT_SERVICE_ACCOUNT_KEY_PATH / STACKIT_SERVICE_ACCOUNT_KEY
17-
DefaultApi resourceManagerApi = new DefaultApi();
17+
ResourceManagerApi resourceManagerApi = new ResourceManagerApi();
1818

1919
// replace this with something useful for real use
2020
UUID containerParentId = UUID.randomUUID();

0 commit comments

Comments
 (0)