Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cloud.stackit.sdk.authentication.examples;

import cloud.stackit.sdk.core.config.CoreConfiguration;
import cloud.stackit.sdk.resourcemanager.api.DefaultApi;
import cloud.stackit.sdk.resourcemanager.api.ResourceManagerApi;
import cloud.stackit.sdk.resourcemanager.model.ListOrganizationsResponse;

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

try {
DefaultApi api = new DefaultApi(config);
ResourceManagerApi api = new ResourceManagerApi(config);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the AuthenticationExample 😃


/* list all organizations */
ListOrganizationsResponse response =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cloud.stackit.sdk.resourcemanager.examples;

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

// replace this with something useful for real use
UUID containerParentId = UUID.randomUUID();
Expand Down
Loading