scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Kore AI Artemis service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Kore AI Artemis service API instance.
+ */
+ public KoreAIArtemisManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder.append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.koreaiartemis")
+ .append("/")
+ .append(clientVersion);
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder.append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new KoreAIArtemisManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of Organizations. It manages OrganizationResource.
+ *
+ * @return Resource collection API of Organizations.
+ */
+ public Organizations organizations() {
+ if (this.organizations == null) {
+ this.organizations = new OrganizationsImpl(clientObject.getOrganizations(), this);
+ }
+ return organizations;
+ }
+
+ /**
+ * Gets the resource collection API of SaaSOperationGroups.
+ *
+ * @return Resource collection API of SaaSOperationGroups.
+ */
+ public SaaSOperationGroups saaSOperationGroups() {
+ if (this.saaSOperationGroups == null) {
+ this.saaSOperationGroups = new SaaSOperationGroupsImpl(clientObject.getSaaSOperationGroups(), this);
+ }
+ return saaSOperationGroups;
+ }
+
+ /**
+ * Gets the resource collection API of Workspaces. It manages WorkspaceResource.
+ *
+ * @return Resource collection API of Workspaces.
+ */
+ public Workspaces workspaces() {
+ if (this.workspaces == null) {
+ this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
+ }
+ return workspaces;
+ }
+
+ /**
+ * Gets wrapped service client KoreAIArtemisManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client KoreAIArtemisManagementClient.
+ */
+ public KoreAIArtemisManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/KoreAIArtemisManagementClient.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/KoreAIArtemisManagementClient.java
new file mode 100644
index 0000000000000..d31adbd324851
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/KoreAIArtemisManagementClient.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for KoreAIArtemisManagementClient class.
+ */
+public interface KoreAIArtemisManagementClient {
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the OrganizationsClient object to access its operations.
+ *
+ * @return the OrganizationsClient object.
+ */
+ OrganizationsClient getOrganizations();
+
+ /**
+ * Gets the SaaSOperationGroupsClient object to access its operations.
+ *
+ * @return the SaaSOperationGroupsClient object.
+ */
+ SaaSOperationGroupsClient getSaaSOperationGroups();
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ WorkspacesClient getWorkspaces();
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/OperationsClient.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..a619c76e35854
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/OperationsClient.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.OperationInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
+public interface OperationsClient {
+ /**
+ * List the operations for the provider.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List the operations for the provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/OrganizationsClient.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/OrganizationsClient.java
new file mode 100644
index 0000000000000..4c2ee1e57b9b4
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/OrganizationsClient.java
@@ -0,0 +1,336 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.ListWorkspacesResponseInner;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.OrganizationResourceInner;
+import com.azure.resourcemanager.koreaiartemis.models.OrganizationResourceUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in OrganizationsClient.
+ */
+public interface OrganizationsClient {
+ /**
+ * Get an Organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String organizationName, Context context);
+
+ /**
+ * Get an Organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OrganizationResourceInner getByResourceGroup(String resourceGroupName, String organizationName);
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OrganizationResourceInner> beginCreate(String resourceGroupName,
+ String organizationName, OrganizationResourceInner resource);
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OrganizationResourceInner> beginCreate(String resourceGroupName,
+ String organizationName, OrganizationResourceInner resource, Context context);
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OrganizationResourceInner create(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource);
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OrganizationResourceInner create(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource, Context context);
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OrganizationResourceInner> beginUpdate(String resourceGroupName,
+ String organizationName, OrganizationResourceUpdate properties);
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OrganizationResourceInner> beginUpdate(String resourceGroupName,
+ String organizationName, OrganizationResourceUpdate properties, Context context);
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OrganizationResourceInner update(String resourceGroupName, String organizationName,
+ OrganizationResourceUpdate properties);
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OrganizationResourceInner update(String resourceGroupName, String organizationName,
+ OrganizationResourceUpdate properties, Context context);
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName);
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, Context context);
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String organizationName);
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String organizationName, Context context);
+
+ /**
+ * List Organizations in a Resource Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List Organizations in a Resource Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List Organizations in a Subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List Organizations in a Subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Lists all Workspaces in the Kore Organization, including Workspaces not managed through Liftr.
+ *
+ * This discovery operation uses POST because its response combines ARM-tracked
+ * Workspaces with Kore-only Workspaces that have no ARM resource ID and cannot
+ * be represented by the standard Workspaces collection GET.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response containing all Workspaces in a Kore Organization along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWorkspacesWithResponse(String resourceGroupName, String organizationName,
+ Context context);
+
+ /**
+ * Lists all Workspaces in the Kore Organization, including Workspaces not managed through Liftr.
+ *
+ * This discovery operation uses POST because its response combines ARM-tracked
+ * Workspaces with Kore-only Workspaces that have no ARM resource ID and cannot
+ * be represented by the standard Workspaces collection GET.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response containing all Workspaces in a Kore Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ListWorkspacesResponseInner listWorkspaces(String resourceGroupName, String organizationName);
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/SaaSOperationGroupsClient.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/SaaSOperationGroupsClient.java
new file mode 100644
index 0000000000000..f8099fbda5b44
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/SaaSOperationGroupsClient.java
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.SaaSResourceDetailsResponseInner;
+import com.azure.resourcemanager.koreaiartemis.models.ActivateSaaSParameterRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in SaaSOperationGroupsClient.
+ */
+public interface SaaSOperationGroupsClient {
+ /**
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource.
+ *
+ * @param body The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of marketplace SaaS resource details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SaaSResourceDetailsResponseInner>
+ beginActivateResource(ActivateSaaSParameterRequest body);
+
+ /**
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource.
+ *
+ * @param body The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of marketplace SaaS resource details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SaaSResourceDetailsResponseInner>
+ beginActivateResource(ActivateSaaSParameterRequest body, Context context);
+
+ /**
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource.
+ *
+ * @param body The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return marketplace SaaS resource details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SaaSResourceDetailsResponseInner activateResource(ActivateSaaSParameterRequest body);
+
+ /**
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource.
+ *
+ * @param body The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return marketplace SaaS resource details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SaaSResourceDetailsResponseInner activateResource(ActivateSaaSParameterRequest body, Context context);
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/WorkspacesClient.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/WorkspacesClient.java
new file mode 100644
index 0000000000000..199e6d999afb3
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/WorkspacesClient.java
@@ -0,0 +1,344 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.WorkspaceDetailInner;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.WorkspaceLinkedSaaSListResponseInner;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.WorkspaceResourceInner;
+import com.azure.resourcemanager.koreaiartemis.models.WorkspaceSaaSData;
+
+/**
+ * An instance of this class provides access to all the operations defined in WorkspacesClient.
+ */
+public interface WorkspacesClient {
+ /**
+ * Get a Workspace under an Organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Workspace under an Organization along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String organizationName,
+ String workspaceName, Context context);
+
+ /**
+ * Get a Workspace under an Organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Workspace under an Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceResourceInner get(String resourceGroupName, String organizationName, String workspaceName);
+
+ /**
+ * Create or update a Workspace under an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Workspace resource in the Kore.AgentPlatform provider.
+ *
+ * Child proxy resource type under an Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkspaceResourceInner> beginCreateOrUpdate(String resourceGroupName,
+ String organizationName, String workspaceName, WorkspaceResourceInner resource);
+
+ /**
+ * Create or update a Workspace under an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a Workspace resource in the Kore.AgentPlatform provider.
+ *
+ * Child proxy resource type under an Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkspaceResourceInner> beginCreateOrUpdate(String resourceGroupName,
+ String organizationName, String workspaceName, WorkspaceResourceInner resource, Context context);
+
+ /**
+ * Create or update a Workspace under an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Workspace resource in the Kore.AgentPlatform provider.
+ *
+ * Child proxy resource type under an Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceResourceInner createOrUpdate(String resourceGroupName, String organizationName, String workspaceName,
+ WorkspaceResourceInner resource);
+
+ /**
+ * Create or update a Workspace under an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Workspace resource in the Kore.AgentPlatform provider.
+ *
+ * Child proxy resource type under an Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceResourceInner createOrUpdate(String resourceGroupName, String organizationName, String workspaceName,
+ WorkspaceResourceInner resource, Context context);
+
+ /**
+ * Delete a Workspace under an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
+ String workspaceName);
+
+ /**
+ * Delete a Workspace under an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
+ String workspaceName, Context context);
+
+ /**
+ * Delete a Workspace under an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String organizationName, String workspaceName);
+
+ /**
+ * Delete a Workspace under an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String organizationName, String workspaceName, Context context);
+
+ /**
+ * List Workspaces under an Organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a WorkspaceResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByOrganization(String resourceGroupName, String organizationName);
+
+ /**
+ * List Workspaces under an Organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a WorkspaceResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByOrganization(String resourceGroupName, String organizationName,
+ Context context);
+
+ /**
+ * Links SaaS resources to the workspace.
+ *
+ * Links SaaS resources to the workspace. Accepts the full list of SaaS assets to be linked.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginLinkSaaS(String resourceGroupName, String organizationName,
+ String workspaceName, WorkspaceSaaSData body);
+
+ /**
+ * Links SaaS resources to the workspace.
+ *
+ * Links SaaS resources to the workspace. Accepts the full list of SaaS assets to be linked.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginLinkSaaS(String resourceGroupName, String organizationName,
+ String workspaceName, WorkspaceSaaSData body, Context context);
+
+ /**
+ * Links SaaS resources to the workspace.
+ *
+ * Links SaaS resources to the workspace. Accepts the full list of SaaS assets to be linked.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void linkSaaS(String resourceGroupName, String organizationName, String workspaceName, WorkspaceSaaSData body);
+
+ /**
+ * Links SaaS resources to the workspace.
+ *
+ * Links SaaS resources to the workspace. Accepts the full list of SaaS assets to be linked.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void linkSaaS(String resourceGroupName, String organizationName, String workspaceName, WorkspaceSaaSData body,
+ Context context);
+
+ /**
+ * Returns the list of SaaS resources linked to the workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response containing the list of SaaS resources linked to the Workspace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listLinkedSaaSWithResponse(String resourceGroupName,
+ String organizationName, String workspaceName, Context context);
+
+ /**
+ * Returns the list of SaaS resources linked to the workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response containing the list of SaaS resources linked to the Workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceLinkedSaaSListResponseInner listLinkedSaaS(String resourceGroupName, String organizationName,
+ String workspaceName);
+
+ /**
+ * Returns the complete Workspace details reported by Kore, including its projects.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return complete Workspace details returned by Kore along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDetailsWithResponse(String resourceGroupName, String organizationName,
+ String workspaceName, Context context);
+
+ /**
+ * Returns the complete Workspace details reported by Kore, including its projects.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param workspaceName Name of the Workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return complete Workspace details returned by Kore.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceDetailInner getDetails(String resourceGroupName, String organizationName, String workspaceName);
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/ListWorkspacesResponseInner.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/ListWorkspacesResponseInner.java
new file mode 100644
index 0000000000000..7400209fb4537
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/ListWorkspacesResponseInner.java
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.koreaiartemis.models.DiscoveredWorkspace;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Response containing all Workspaces in a Kore Organization.
+ */
+@Immutable
+public final class ListWorkspacesResponseInner implements JsonSerializable {
+ /*
+ * Workspaces returned by Kore, including Liftr-managed and partner-managed Workspaces.
+ */
+ private List value;
+
+ /**
+ * Creates an instance of ListWorkspacesResponseInner class.
+ */
+ private ListWorkspacesResponseInner() {
+ }
+
+ /**
+ * Get the value property: Workspaces returned by Kore, including Liftr-managed and partner-managed Workspaces.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ListWorkspacesResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ListWorkspacesResponseInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ListWorkspacesResponseInner.
+ */
+ public static ListWorkspacesResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ListWorkspacesResponseInner deserializedListWorkspacesResponseInner = new ListWorkspacesResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> DiscoveredWorkspace.fromJson(reader1));
+ deserializedListWorkspacesResponseInner.value = value;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedListWorkspacesResponseInner;
+ });
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/OperationInner.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/OperationInner.java
new file mode 100644
index 0000000000000..a949c3b6836b0
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/OperationInner.java
@@ -0,0 +1,150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.koreaiartemis.models.ActionType;
+import com.azure.resourcemanager.koreaiartemis.models.OperationDisplay;
+import com.azure.resourcemanager.koreaiartemis.models.Origin;
+import java.io.IOException;
+
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
+@Immutable
+public final class OperationInner implements JsonSerializable {
+ /*
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
+ */
+ private String name;
+
+ /*
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
+ * Resource Manager/control-plane operations.
+ */
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
+ */
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
+ */
+ private Origin origin;
+
+ /*
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ private ActionType actionType;
+
+ /**
+ * Creates an instance of OperationInner class.
+ */
+ private OperationInner() {
+ }
+
+ /**
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for Azure Resource Manager/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
+ *
+ * @return the origin value.
+ */
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("display", this.display);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the OperationInner.
+ */
+ public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationInner deserializedOperationInner = new OperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationInner.display = OperationDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = Origin.fromString(reader.getString());
+ } else if ("actionType".equals(fieldName)) {
+ deserializedOperationInner.actionType = ActionType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationInner;
+ });
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/OrganizationResourceInner.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/OrganizationResourceInner.java
new file mode 100644
index 0000000000000..da6694dec8b0d
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/OrganizationResourceInner.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.koreaiartemis.models.OrganizationProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * An Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource. Each Organization is provisioned with a default
+ * Workspace atomically; additional Workspaces are managed via the
+ * `createWorkspace` and `deleteWorkspace` actions defined below.
+ */
+@Fluent
+public final class OrganizationResourceInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private OrganizationProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of OrganizationResourceInner class.
+ */
+ public OrganizationResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public OrganizationProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the OrganizationResourceInner object itself.
+ */
+ public OrganizationResourceInner withProperties(OrganizationProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public OrganizationResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public OrganizationResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OrganizationResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OrganizationResourceInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the OrganizationResourceInner.
+ */
+ public static OrganizationResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OrganizationResourceInner deserializedOrganizationResourceInner = new OrganizationResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedOrganizationResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedOrganizationResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedOrganizationResourceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedOrganizationResourceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedOrganizationResourceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedOrganizationResourceInner.properties = OrganizationProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedOrganizationResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOrganizationResourceInner;
+ });
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/SaaSResourceDetailsResponseInner.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/SaaSResourceDetailsResponseInner.java
new file mode 100644
index 0000000000000..213fe6c08f575
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/SaaSResourceDetailsResponseInner.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Marketplace SaaS resource details.
+ */
+@Immutable
+public final class SaaSResourceDetailsResponseInner extends ProxyResource {
+ /*
+ * SaaS subscription identifier (GUID) issued by the Azure Marketplace fulfillment API for the activated SaaS
+ * resource.
+ */
+ private String saasId;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of SaaSResourceDetailsResponseInner class.
+ */
+ private SaaSResourceDetailsResponseInner() {
+ }
+
+ /**
+ * Get the saasId property: SaaS subscription identifier (GUID) issued by the Azure Marketplace fulfillment API for
+ * the activated SaaS resource.
+ *
+ * @return the saasId value.
+ */
+ public String saasId() {
+ return this.saasId;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("saasId", this.saasId);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SaaSResourceDetailsResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SaaSResourceDetailsResponseInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the SaaSResourceDetailsResponseInner.
+ */
+ public static SaaSResourceDetailsResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SaaSResourceDetailsResponseInner deserializedSaaSResourceDetailsResponseInner
+ = new SaaSResourceDetailsResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSaaSResourceDetailsResponseInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedSaaSResourceDetailsResponseInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedSaaSResourceDetailsResponseInner.type = reader.getString();
+ } else if ("saasId".equals(fieldName)) {
+ deserializedSaaSResourceDetailsResponseInner.saasId = reader.getString();
+ } else if ("systemData".equals(fieldName)) {
+ deserializedSaaSResourceDetailsResponseInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSaaSResourceDetailsResponseInner;
+ });
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/WorkspaceDetailInner.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/WorkspaceDetailInner.java
new file mode 100644
index 0000000000000..601f5f330b655
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/WorkspaceDetailInner.java
@@ -0,0 +1,211 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.koreaiartemis.models.WorkspaceDetailPartnerProperties;
+import com.azure.resourcemanager.koreaiartemis.models.WorkspaceLifecycleStatus;
+import com.azure.resourcemanager.koreaiartemis.models.WorkspaceProject;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.List;
+
+/**
+ * Complete Workspace details returned by Kore.
+ */
+@Immutable
+public final class WorkspaceDetailInner implements JsonSerializable {
+ /*
+ * Partner-issued Workspace identifier.
+ */
+ private String id;
+
+ /*
+ * Full Azure resource ID of the Workspace.
+ */
+ private String azureResourceId;
+
+ /*
+ * Partner-issued identifier of the parent Organization.
+ */
+ private String organizationId;
+
+ /*
+ * Partner-specific fields returned by the Workspace details action.
+ */
+ private WorkspaceDetailPartnerProperties partnerProperties;
+
+ /*
+ * Lifecycle status of the Workspace.
+ */
+ private WorkspaceLifecycleStatus status;
+
+ /*
+ * Projects under the Workspace.
+ */
+ private List projects;
+
+ /*
+ * Time when the partner Workspace was created, as reported by Kore. This is distinct from ARM-managed
+ * `systemData.createdAt`.
+ */
+ private OffsetDateTime createdAt;
+
+ /*
+ * Time when the partner Workspace was last updated, as reported by Kore. This is distinct from ARM-managed
+ * `systemData.lastModifiedAt`.
+ */
+ private OffsetDateTime updatedAt;
+
+ /**
+ * Creates an instance of WorkspaceDetailInner class.
+ */
+ private WorkspaceDetailInner() {
+ }
+
+ /**
+ * Get the id property: Partner-issued Workspace identifier.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the azureResourceId property: Full Azure resource ID of the Workspace.
+ *
+ * @return the azureResourceId value.
+ */
+ public String azureResourceId() {
+ return this.azureResourceId;
+ }
+
+ /**
+ * Get the organizationId property: Partner-issued identifier of the parent Organization.
+ *
+ * @return the organizationId value.
+ */
+ public String organizationId() {
+ return this.organizationId;
+ }
+
+ /**
+ * Get the partnerProperties property: Partner-specific fields returned by the Workspace details action.
+ *
+ * @return the partnerProperties value.
+ */
+ public WorkspaceDetailPartnerProperties partnerProperties() {
+ return this.partnerProperties;
+ }
+
+ /**
+ * Get the status property: Lifecycle status of the Workspace.
+ *
+ * @return the status value.
+ */
+ public WorkspaceLifecycleStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Get the projects property: Projects under the Workspace.
+ *
+ * @return the projects value.
+ */
+ public List projects() {
+ return this.projects;
+ }
+
+ /**
+ * Get the createdAt property: Time when the partner Workspace was created, as reported by Kore. This is distinct
+ * from ARM-managed `systemData.createdAt`.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Get the updatedAt property: Time when the partner Workspace was last updated, as reported by Kore. This is
+ * distinct from ARM-managed `systemData.lastModifiedAt`.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.updatedAt;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ jsonWriter.writeStringField("azureResourceId", this.azureResourceId);
+ jsonWriter.writeStringField("organizationId", this.organizationId);
+ jsonWriter.writeJsonField("partnerProperties", this.partnerProperties);
+ jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString());
+ jsonWriter.writeArrayField("projects", this.projects, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("createdAt",
+ this.createdAt == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.createdAt));
+ jsonWriter.writeStringField("updatedAt",
+ this.updatedAt == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.updatedAt));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of WorkspaceDetailInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of WorkspaceDetailInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the WorkspaceDetailInner.
+ */
+ public static WorkspaceDetailInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ WorkspaceDetailInner deserializedWorkspaceDetailInner = new WorkspaceDetailInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedWorkspaceDetailInner.id = reader.getString();
+ } else if ("azureResourceId".equals(fieldName)) {
+ deserializedWorkspaceDetailInner.azureResourceId = reader.getString();
+ } else if ("organizationId".equals(fieldName)) {
+ deserializedWorkspaceDetailInner.organizationId = reader.getString();
+ } else if ("partnerProperties".equals(fieldName)) {
+ deserializedWorkspaceDetailInner.partnerProperties
+ = WorkspaceDetailPartnerProperties.fromJson(reader);
+ } else if ("status".equals(fieldName)) {
+ deserializedWorkspaceDetailInner.status = WorkspaceLifecycleStatus.fromString(reader.getString());
+ } else if ("projects".equals(fieldName)) {
+ List projects = reader.readArray(reader1 -> WorkspaceProject.fromJson(reader1));
+ deserializedWorkspaceDetailInner.projects = projects;
+ } else if ("createdAt".equals(fieldName)) {
+ deserializedWorkspaceDetailInner.createdAt = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("updatedAt".equals(fieldName)) {
+ deserializedWorkspaceDetailInner.updatedAt = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedWorkspaceDetailInner;
+ });
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/WorkspaceLinkedSaaSListResponseInner.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/WorkspaceLinkedSaaSListResponseInner.java
new file mode 100644
index 0000000000000..0b12e058f9d75
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/WorkspaceLinkedSaaSListResponseInner.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.koreaiartemis.models.WorkspaceLinkedSaaSItem;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Response containing the list of SaaS resources linked to the Workspace.
+ */
+@Immutable
+public final class WorkspaceLinkedSaaSListResponseInner
+ implements JsonSerializable {
+ /*
+ * List of SaaS resources linked to this Workspace.
+ */
+ private List value;
+
+ /**
+ * Creates an instance of WorkspaceLinkedSaaSListResponseInner class.
+ */
+ private WorkspaceLinkedSaaSListResponseInner() {
+ }
+
+ /**
+ * Get the value property: List of SaaS resources linked to this Workspace.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of WorkspaceLinkedSaaSListResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of WorkspaceLinkedSaaSListResponseInner if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the WorkspaceLinkedSaaSListResponseInner.
+ */
+ public static WorkspaceLinkedSaaSListResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ WorkspaceLinkedSaaSListResponseInner deserializedWorkspaceLinkedSaaSListResponseInner
+ = new WorkspaceLinkedSaaSListResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> WorkspaceLinkedSaaSItem.fromJson(reader1));
+ deserializedWorkspaceLinkedSaaSListResponseInner.value = value;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedWorkspaceLinkedSaaSListResponseInner;
+ });
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/WorkspaceResourceInner.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/WorkspaceResourceInner.java
new file mode 100644
index 0000000000000..a019a5472c626
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/WorkspaceResourceInner.java
@@ -0,0 +1,168 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.koreaiartemis.models.WorkspaceProperties;
+import java.io.IOException;
+
+/**
+ * A Workspace resource in the Kore.AgentPlatform provider.
+ *
+ * Child proxy resource type under an Organization. Workspaces are not tracked
+ * (no `location`/`tags`). Lifecycle is managed through the standard ARM verbs
+ * on the child URL:
+ *
+ * - PUT .../organizations/{org}/workspaces/{workspaceName} (create or update)
+ * - DELETE .../organizations/{org}/workspaces/{workspaceName}
+ * - GET .../organizations/{org}/workspaces/{workspaceName}
+ * - GET .../organizations/{org}/workspaces (list by parent)
+ *
+ * A default Workspace is also provisioned atomically when the parent
+ * Organization is created (see `OrganizationProperties.defaultWorkspace`);
+ * additional Workspaces are managed via the operations defined here.
+ */
+@Fluent
+public final class WorkspaceResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private WorkspaceProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of WorkspaceResourceInner class.
+ */
+ public WorkspaceResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public WorkspaceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the WorkspaceResourceInner object itself.
+ */
+ public WorkspaceResourceInner withProperties(WorkspaceProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of WorkspaceResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of WorkspaceResourceInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the WorkspaceResourceInner.
+ */
+ public static WorkspaceResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ WorkspaceResourceInner deserializedWorkspaceResourceInner = new WorkspaceResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedWorkspaceResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedWorkspaceResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedWorkspaceResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedWorkspaceResourceInner.properties = WorkspaceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedWorkspaceResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedWorkspaceResourceInner;
+ });
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/package-info.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/package-info.java
new file mode 100644
index 0000000000000..fec9862ffc713
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/models/package-info.java
@@ -0,0 +1,19 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the inner data models for KoreAIArtemis.
+ * Kore.AgentPlatform Resource Provider for managing Kore AI Agent Platform
+ * Organizations and their Workspaces.
+ *
+ * Organizations are top-level tracked ARM resources. Each Organization is
+ * provisioned together with a default Workspace. Additional Workspaces are
+ * managed as a child proxy resource type under the Organization using the
+ * standard ARM verbs (PUT / DELETE / GET / LIST) on the workspace URL.
+ *
+ * Service-to-service authentication between Liftr and Kore uses federated
+ * Microsoft Entra credentials and is enforced at the runtime layer
+ * (not on the ARM surface).
+ */
+package com.azure.resourcemanager.koreaiartemis.fluent.models;
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/package-info.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/package-info.java
new file mode 100644
index 0000000000000..38608c456295c
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/fluent/package-info.java
@@ -0,0 +1,19 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the service clients for KoreAIArtemis.
+ * Kore.AgentPlatform Resource Provider for managing Kore AI Agent Platform
+ * Organizations and their Workspaces.
+ *
+ * Organizations are top-level tracked ARM resources. Each Organization is
+ * provisioned together with a default Workspace. Additional Workspaces are
+ * managed as a child proxy resource type under the Organization using the
+ * standard ARM verbs (PUT / DELETE / GET / LIST) on the workspace URL.
+ *
+ * Service-to-service authentication between Liftr and Kore uses federated
+ * Microsoft Entra credentials and is enforced at the runtime layer
+ * (not on the ARM surface).
+ */
+package com.azure.resourcemanager.koreaiartemis.fluent;
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/KoreAIArtemisManagementClientBuilder.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/KoreAIArtemisManagementClientBuilder.java
new file mode 100644
index 0000000000000..3d72133f4e554
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/KoreAIArtemisManagementClientBuilder.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/**
+ * A builder for creating a new instance of the KoreAIArtemisManagementClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { KoreAIArtemisManagementClientImpl.class })
+public final class KoreAIArtemisManagementClientBuilder {
+ /*
+ * Service host
+ */
+ private String endpoint;
+
+ /**
+ * Sets Service host.
+ *
+ * @param endpoint the endpoint value.
+ * @return the KoreAIArtemisManagementClientBuilder.
+ */
+ public KoreAIArtemisManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription. The value must be an UUID.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the KoreAIArtemisManagementClientBuilder.
+ */
+ public KoreAIArtemisManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the KoreAIArtemisManagementClientBuilder.
+ */
+ public KoreAIArtemisManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the KoreAIArtemisManagementClientBuilder.
+ */
+ public KoreAIArtemisManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the KoreAIArtemisManagementClientBuilder.
+ */
+ public KoreAIArtemisManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the KoreAIArtemisManagementClientBuilder.
+ */
+ public KoreAIArtemisManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of KoreAIArtemisManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of KoreAIArtemisManagementClientImpl.
+ */
+ public KoreAIArtemisManagementClientImpl buildClient() {
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline = (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ KoreAIArtemisManagementClientImpl client = new KoreAIArtemisManagementClientImpl(localPipeline,
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId);
+ return client;
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/KoreAIArtemisManagementClientImpl.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/KoreAIArtemisManagementClientImpl.java
new file mode 100644
index 0000000000000..df76a7a9dda22
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/KoreAIArtemisManagementClientImpl.java
@@ -0,0 +1,356 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.management.polling.SyncPollerFactory;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.koreaiartemis.fluent.KoreAIArtemisManagementClient;
+import com.azure.resourcemanager.koreaiartemis.fluent.OperationsClient;
+import com.azure.resourcemanager.koreaiartemis.fluent.OrganizationsClient;
+import com.azure.resourcemanager.koreaiartemis.fluent.SaaSOperationGroupsClient;
+import com.azure.resourcemanager.koreaiartemis.fluent.WorkspacesClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * Initializes a new instance of the KoreAIArtemisManagementClientImpl type.
+ */
+@ServiceClient(builder = KoreAIArtemisManagementClientBuilder.class)
+public final class KoreAIArtemisManagementClientImpl implements KoreAIArtemisManagementClient {
+ /**
+ * Service host.
+ */
+ private final String endpoint;
+
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /**
+ * Version parameter.
+ */
+ private final String apiVersion;
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /**
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * The HTTP pipeline to send requests through.
+ */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /**
+ * The serializer to serialize an object into a string.
+ */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /**
+ * The default poll interval for long-running operation.
+ */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /**
+ * The OperationsClient object to access its operations.
+ */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /**
+ * The OrganizationsClient object to access its operations.
+ */
+ private final OrganizationsClient organizations;
+
+ /**
+ * Gets the OrganizationsClient object to access its operations.
+ *
+ * @return the OrganizationsClient object.
+ */
+ public OrganizationsClient getOrganizations() {
+ return this.organizations;
+ }
+
+ /**
+ * The SaaSOperationGroupsClient object to access its operations.
+ */
+ private final SaaSOperationGroupsClient saaSOperationGroups;
+
+ /**
+ * Gets the SaaSOperationGroupsClient object to access its operations.
+ *
+ * @return the SaaSOperationGroupsClient object.
+ */
+ public SaaSOperationGroupsClient getSaaSOperationGroups() {
+ return this.saaSOperationGroups;
+ }
+
+ /**
+ * The WorkspacesClient object to access its operations.
+ */
+ private final WorkspacesClient workspaces;
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ public WorkspacesClient getWorkspaces() {
+ return this.workspaces;
+ }
+
+ /**
+ * Initializes an instance of KoreAIArtemisManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param endpoint Service host.
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
+ */
+ KoreAIArtemisManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.endpoint = endpoint;
+ this.subscriptionId = subscriptionId;
+ this.apiVersion = "2026-07-01-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.organizations = new OrganizationsClientImpl(this);
+ this.saaSOperationGroups = new SaaSOperationGroupsClientImpl(this);
+ this.workspaces = new WorkspacesClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ return CoreUtils.mergeContexts(this.getContext(), context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param httpPipeline the http pipeline.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return poller flux for poll result and final result.
+ */
+ public PollerFlux, U> getLroResult(Mono>> activationResponse,
+ HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
+ return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, activationResponse, context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return SyncPoller for poll result and final result.
+ */
+ public SyncPoller, U> getLroResult(Response activationResponse,
+ Type pollResultType, Type finalResultType, Context context) {
+ return SyncPollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, () -> activationResponse, context);
+ }
+
+ /**
+ * Gets the final result, or an error, based on last async poll response.
+ *
+ * @param response the last async poll response.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return the final result, or an error.
+ */
+ public Mono getLroFinalResultOrError(AsyncPollResponse, U> response) {
+ if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) {
+ String errorMessage;
+ ManagementError managementError = null;
+ HttpResponse errorResponse = null;
+ PollResult.Error lroError = response.getValue().getError();
+ if (lroError != null) {
+ errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
+ lroError.getResponseBody());
+
+ errorMessage = response.getValue().getError().getMessage();
+ String errorBody = response.getValue().getError().getResponseBody();
+ if (errorBody != null) {
+ // try to deserialize error body to ManagementError
+ try {
+ managementError = this.getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ if (managementError.getCode() == null || managementError.getMessage() == null) {
+ managementError = null;
+ }
+ } catch (IOException | RuntimeException ioe) {
+ LOGGER.logThrowableAsWarning(ioe);
+ }
+ }
+ } else {
+ // fallback to default error message
+ errorMessage = "Long running operation failed.";
+ }
+ if (managementError == null) {
+ // fallback to default ManagementError
+ managementError = new ManagementError(response.getStatus().toString(), errorMessage);
+ }
+ return Mono.error(new ManagementException(errorMessage, errorResponse, managementError));
+ } else {
+ return response.getFinalResult();
+ }
+ }
+
+ private static final class HttpResponseImpl extends HttpResponse {
+ private final int statusCode;
+
+ private final byte[] responseBody;
+
+ private final HttpHeaders httpHeaders;
+
+ HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) {
+ super(null);
+ this.statusCode = statusCode;
+ this.httpHeaders = httpHeaders;
+ this.responseBody = responseBody == null ? new byte[0] : responseBody.getBytes(StandardCharsets.UTF_8);
+ }
+
+ public int getStatusCode() {
+ return statusCode;
+ }
+
+ public String getHeaderValue(String s) {
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
+ }
+
+ public HttpHeaders getHeaders() {
+ return httpHeaders;
+ }
+
+ public Flux getBody() {
+ return Flux.just(ByteBuffer.wrap(responseBody));
+ }
+
+ public Mono getBodyAsByteArray() {
+ return Mono.just(responseBody);
+ }
+
+ public Mono getBodyAsString() {
+ return Mono.just(new String(responseBody, StandardCharsets.UTF_8));
+ }
+
+ public Mono getBodyAsString(Charset charset) {
+ return Mono.just(new String(responseBody, charset));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(KoreAIArtemisManagementClientImpl.class);
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/ListWorkspacesResponseImpl.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/ListWorkspacesResponseImpl.java
new file mode 100644
index 0000000000000..9deb5d388ce8c
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/ListWorkspacesResponseImpl.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.implementation;
+
+import com.azure.resourcemanager.koreaiartemis.fluent.models.ListWorkspacesResponseInner;
+import com.azure.resourcemanager.koreaiartemis.models.DiscoveredWorkspace;
+import com.azure.resourcemanager.koreaiartemis.models.ListWorkspacesResponse;
+import java.util.Collections;
+import java.util.List;
+
+public final class ListWorkspacesResponseImpl implements ListWorkspacesResponse {
+ private ListWorkspacesResponseInner innerObject;
+
+ private final com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager serviceManager;
+
+ ListWorkspacesResponseImpl(ListWorkspacesResponseInner innerObject,
+ com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List value() {
+ List inner = this.innerModel().value();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ListWorkspacesResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OperationImpl.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OperationImpl.java
new file mode 100644
index 0000000000000..9b7607335c009
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OperationImpl.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.implementation;
+
+import com.azure.resourcemanager.koreaiartemis.fluent.models.OperationInner;
+import com.azure.resourcemanager.koreaiartemis.models.ActionType;
+import com.azure.resourcemanager.koreaiartemis.models.Operation;
+import com.azure.resourcemanager.koreaiartemis.models.OperationDisplay;
+import com.azure.resourcemanager.koreaiartemis.models.Origin;
+
+public final class OperationImpl implements Operation {
+ private OperationInner innerObject;
+
+ private final com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager serviceManager;
+
+ OperationImpl(OperationInner innerObject,
+ com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public Boolean isDataAction() {
+ return this.innerModel().isDataAction();
+ }
+
+ public OperationDisplay display() {
+ return this.innerModel().display();
+ }
+
+ public Origin origin() {
+ return this.innerModel().origin();
+ }
+
+ public ActionType actionType() {
+ return this.innerModel().actionType();
+ }
+
+ public OperationInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OperationsClientImpl.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OperationsClientImpl.java
new file mode 100644
index 0000000000000..8d9bf8a7b0da5
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OperationsClientImpl.java
@@ -0,0 +1,242 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.koreaiartemis.fluent.OperationsClient;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.OperationInner;
+import com.azure.resourcemanager.koreaiartemis.implementation.models.OperationListResult;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
+public final class OperationsClientImpl implements OperationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final OperationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final KoreAIArtemisManagementClientImpl client;
+
+ /**
+ * Initializes an instance of OperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OperationsClientImpl(KoreAIArtemisManagementClientImpl client) {
+ this.service
+ = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for KoreAIArtemisManagementClientOperations to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "KoreAIArtemisManagementClientOperations")
+ public interface OperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Kore.AgentPlatform/operations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Kore.AgentPlatform/operations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage() {
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink));
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OperationsImpl.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OperationsImpl.java
new file mode 100644
index 0000000000000..81bb45645beba
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OperationsImpl.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.koreaiartemis.fluent.OperationsClient;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.OperationInner;
+import com.azure.resourcemanager.koreaiartemis.models.Operation;
+import com.azure.resourcemanager.koreaiartemis.models.Operations;
+
+public final class OperationsImpl implements Operations {
+ private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class);
+
+ private final OperationsClient innerClient;
+
+ private final com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager serviceManager;
+
+ public OperationsImpl(OperationsClient innerClient,
+ com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ private OperationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OrganizationResourceImpl.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OrganizationResourceImpl.java
new file mode 100644
index 0000000000000..09f8a904caf71
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OrganizationResourceImpl.java
@@ -0,0 +1,198 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.OrganizationResourceInner;
+import com.azure.resourcemanager.koreaiartemis.models.ListWorkspacesResponse;
+import com.azure.resourcemanager.koreaiartemis.models.OrganizationProperties;
+import com.azure.resourcemanager.koreaiartemis.models.OrganizationPropertiesUpdate;
+import com.azure.resourcemanager.koreaiartemis.models.OrganizationResource;
+import com.azure.resourcemanager.koreaiartemis.models.OrganizationResourceUpdate;
+import java.util.Collections;
+import java.util.Map;
+
+public final class OrganizationResourceImpl
+ implements OrganizationResource, OrganizationResource.Definition, OrganizationResource.Update {
+ private OrganizationResourceInner innerObject;
+
+ private final com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public OrganizationProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public OrganizationResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String organizationName;
+
+ private OrganizationResourceUpdate updateProperties;
+
+ public OrganizationResourceImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public OrganizationResource create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getOrganizations()
+ .create(resourceGroupName, organizationName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public OrganizationResource create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getOrganizations()
+ .create(resourceGroupName, organizationName, this.innerModel(), context);
+ return this;
+ }
+
+ OrganizationResourceImpl(String name, com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager serviceManager) {
+ this.innerObject = new OrganizationResourceInner();
+ this.serviceManager = serviceManager;
+ this.organizationName = name;
+ }
+
+ public OrganizationResourceImpl update() {
+ this.updateProperties = new OrganizationResourceUpdate();
+ return this;
+ }
+
+ public OrganizationResource apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getOrganizations()
+ .update(resourceGroupName, organizationName, updateProperties, Context.NONE);
+ return this;
+ }
+
+ public OrganizationResource apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getOrganizations()
+ .update(resourceGroupName, organizationName, updateProperties, context);
+ return this;
+ }
+
+ OrganizationResourceImpl(OrganizationResourceInner innerObject,
+ com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}",
+ "resourceGroupName");
+ this.organizationName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}",
+ "organizationName");
+ }
+
+ public OrganizationResource refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getOrganizations()
+ .getByResourceGroupWithResponse(resourceGroupName, organizationName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public OrganizationResource refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getOrganizations()
+ .getByResourceGroupWithResponse(resourceGroupName, organizationName, context)
+ .getValue();
+ return this;
+ }
+
+ public Response listWorkspacesWithResponse(Context context) {
+ return serviceManager.organizations().listWorkspacesWithResponse(resourceGroupName, organizationName, context);
+ }
+
+ public ListWorkspacesResponse listWorkspaces() {
+ return serviceManager.organizations().listWorkspaces(resourceGroupName, organizationName);
+ }
+
+ public OrganizationResourceImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public OrganizationResourceImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public OrganizationResourceImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateProperties.withTags(tags);
+ return this;
+ }
+ }
+
+ public OrganizationResourceImpl withProperties(OrganizationProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public OrganizationResourceImpl withProperties(OrganizationPropertiesUpdate properties) {
+ this.updateProperties.withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel() == null || this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OrganizationsClientImpl.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OrganizationsClientImpl.java
new file mode 100644
index 0000000000000..fe5273ca2d04d
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OrganizationsClientImpl.java
@@ -0,0 +1,1285 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.koreaiartemis.fluent.OrganizationsClient;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.ListWorkspacesResponseInner;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.OrganizationResourceInner;
+import com.azure.resourcemanager.koreaiartemis.implementation.models.OrganizationResourceListResult;
+import com.azure.resourcemanager.koreaiartemis.models.OrganizationResourceUpdate;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in OrganizationsClient.
+ */
+public final class OrganizationsClientImpl implements OrganizationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final OrganizationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final KoreAIArtemisManagementClientImpl client;
+
+ /**
+ * Initializes an instance of OrganizationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OrganizationsClientImpl(KoreAIArtemisManagementClientImpl client) {
+ this.service
+ = RestProxy.create(OrganizationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for KoreAIArtemisManagementClientOrganizations to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "KoreAIArtemisManagementClientOrganizations")
+ public interface OrganizationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> create(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") OrganizationResourceInner resource,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") OrganizationResourceInner resource,
+ Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") OrganizationResourceUpdate properties,
+ Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") OrganizationResourceUpdate properties,
+ Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Kore.AgentPlatform/organizations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Kore.AgentPlatform/organizations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}/listWorkspaces")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listWorkspaces(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}/listWorkspaces")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listWorkspacesSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listBySubscriptionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get an Organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String organizationName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get an Organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String organizationName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, organizationName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get an Organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String organizationName, Context context) {
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context);
+ }
+
+ /**
+ * Get an Organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OrganizationResourceInner getByResourceGroup(String resourceGroupName, String organizationName) {
+ return getByResourceGroupWithResponse(resourceGroupName, organizationName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, contentType, accept, resource,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createWithResponse(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, contentType, accept, resource,
+ Context.NONE);
+ }
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createWithResponse(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, contentType, accept, resource,
+ context);
+ }
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, OrganizationResourceInner>
+ beginCreateAsync(String resourceGroupName, String organizationName, OrganizationResourceInner resource) {
+ Mono>> mono = createWithResponseAsync(resourceGroupName, organizationName, resource);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), OrganizationResourceInner.class, OrganizationResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, OrganizationResourceInner>
+ beginCreate(String resourceGroupName, String organizationName, OrganizationResourceInner resource) {
+ Response response = createWithResponse(resourceGroupName, organizationName, resource);
+ return this.client.getLroResult(response,
+ OrganizationResourceInner.class, OrganizationResourceInner.class, Context.NONE);
+ }
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, OrganizationResourceInner> beginCreate(
+ String resourceGroupName, String organizationName, OrganizationResourceInner resource, Context context) {
+ Response response = createWithResponse(resourceGroupName, organizationName, resource, context);
+ return this.client.getLroResult(response,
+ OrganizationResourceInner.class, OrganizationResourceInner.class, context);
+ }
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource) {
+ return beginCreateAsync(resourceGroupName, organizationName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OrganizationResourceInner create(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource) {
+ return beginCreate(resourceGroupName, organizationName, resource).getFinalResult();
+ }
+
+ /**
+ * Create or update an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OrganizationResourceInner create(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource, Context context) {
+ return beginCreate(resourceGroupName, organizationName, resource, context).getFinalResult();
+ }
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String organizationName,
+ OrganizationResourceUpdate properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, contentType, accept, properties,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String organizationName,
+ OrganizationResourceUpdate properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, contentType, accept, properties,
+ Context.NONE);
+ }
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String organizationName,
+ OrganizationResourceUpdate properties, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, contentType, accept, properties,
+ context);
+ }
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, OrganizationResourceInner>
+ beginUpdateAsync(String resourceGroupName, String organizationName, OrganizationResourceUpdate properties) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, organizationName, properties);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), OrganizationResourceInner.class, OrganizationResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, OrganizationResourceInner>
+ beginUpdate(String resourceGroupName, String organizationName, OrganizationResourceUpdate properties) {
+ Response response = updateWithResponse(resourceGroupName, organizationName, properties);
+ return this.client.getLroResult(response,
+ OrganizationResourceInner.class, OrganizationResourceInner.class, Context.NONE);
+ }
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, OrganizationResourceInner> beginUpdate(
+ String resourceGroupName, String organizationName, OrganizationResourceUpdate properties, Context context) {
+ Response response = updateWithResponse(resourceGroupName, organizationName, properties, context);
+ return this.client.getLroResult(response,
+ OrganizationResourceInner.class, OrganizationResourceInner.class, context);
+ }
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String organizationName,
+ OrganizationResourceUpdate properties) {
+ return beginUpdateAsync(resourceGroupName, organizationName, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OrganizationResourceInner update(String resourceGroupName, String organizationName,
+ OrganizationResourceUpdate properties) {
+ return beginUpdate(resourceGroupName, organizationName, properties).getFinalResult();
+ }
+
+ /**
+ * Update mutable properties of an Organization (long-running).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Organization resource in the Kore.AgentPlatform provider.
+ *
+ * Top-level tracked ARM resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OrganizationResourceInner update(String resourceGroupName, String organizationName,
+ OrganizationResourceUpdate properties, Context context) {
+ return beginUpdate(resourceGroupName, organizationName, properties, context).getFinalResult();
+ }
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String organizationName) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String organizationName) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, Context.NONE);
+ }
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String organizationName,
+ Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, context);
+ }
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, organizationName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName) {
+ Response response = deleteWithResponse(resourceGroupName, organizationName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
+ Context context) {
+ Response response = deleteWithResponse(resourceGroupName, organizationName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String organizationName) {
+ return beginDeleteAsync(resourceGroupName, organizationName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String organizationName) {
+ beginDelete(resourceGroupName, organizationName).getFinalResult();
+ }
+
+ /**
+ * Delete an Organization (long-running).
+ *
+ * Permanently removes the Organization and cascades the deletion to all
+ * child Workspaces at the partner. This operation is irreversible.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String organizationName, Context context) {
+ beginDelete(resourceGroupName, organizationName, context).getFinalResult();
+ }
+
+ /**
+ * List Organizations in a Resource Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List Organizations in a Resource Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Organizations in a Resource Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) {
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List Organizations in a Resource Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName,
+ Context context) {
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List Organizations in a Resource Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink));
+ }
+
+ /**
+ * List Organizations in a Resource Group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * List Organizations in a Subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List Organizations in a Subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Organizations in a Subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage() {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List Organizations in a Subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(Context context) {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List Organizations in a Subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink));
+ }
+
+ /**
+ * List Organizations in a Subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(() -> listSinglePage(context),
+ nextLink -> listBySubscriptionNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Lists all Workspaces in the Kore Organization, including Workspaces not managed through Liftr.
+ *
+ * This discovery operation uses POST because its response combines ARM-tracked
+ * Workspaces with Kore-only Workspaces that have no ARM resource ID and cannot
+ * be represented by the standard Workspaces collection GET.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response containing all Workspaces in a Kore Organization along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listWorkspacesWithResponseAsync(String resourceGroupName,
+ String organizationName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listWorkspaces(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Lists all Workspaces in the Kore Organization, including Workspaces not managed through Liftr.
+ *
+ * This discovery operation uses POST because its response combines ARM-tracked
+ * Workspaces with Kore-only Workspaces that have no ARM resource ID and cannot
+ * be represented by the standard Workspaces collection GET.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response containing all Workspaces in a Kore Organization on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listWorkspacesAsync(String resourceGroupName, String organizationName) {
+ return listWorkspacesWithResponseAsync(resourceGroupName, organizationName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Lists all Workspaces in the Kore Organization, including Workspaces not managed through Liftr.
+ *
+ * This discovery operation uses POST because its response combines ARM-tracked
+ * Workspaces with Kore-only Workspaces that have no ARM resource ID and cannot
+ * be represented by the standard Workspaces collection GET.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response containing all Workspaces in a Kore Organization along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listWorkspacesWithResponse(String resourceGroupName,
+ String organizationName, Context context) {
+ final String accept = "application/json";
+ return service.listWorkspacesSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context);
+ }
+
+ /**
+ * Lists all Workspaces in the Kore Organization, including Workspaces not managed through Liftr.
+ *
+ * This discovery operation uses POST because its response combines ARM-tracked
+ * Workspaces with Kore-only Workspaces that have no ARM resource ID and cannot
+ * be represented by the standard Workspaces collection GET.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response containing all Workspaces in a Kore Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ListWorkspacesResponseInner listWorkspaces(String resourceGroupName, String organizationName) {
+ return listWorkspacesWithResponse(resourceGroupName, organizationName, Context.NONE).getValue();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink,
+ Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OrganizationResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink,
+ Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OrganizationsImpl.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OrganizationsImpl.java
new file mode 100644
index 0000000000000..dc4a5f12eccba
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/OrganizationsImpl.java
@@ -0,0 +1,178 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.koreaiartemis.fluent.OrganizationsClient;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.ListWorkspacesResponseInner;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.OrganizationResourceInner;
+import com.azure.resourcemanager.koreaiartemis.models.ListWorkspacesResponse;
+import com.azure.resourcemanager.koreaiartemis.models.OrganizationResource;
+import com.azure.resourcemanager.koreaiartemis.models.Organizations;
+
+public final class OrganizationsImpl implements Organizations {
+ private static final ClientLogger LOGGER = new ClientLogger(OrganizationsImpl.class);
+
+ private final OrganizationsClient innerClient;
+
+ private final com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager serviceManager;
+
+ public OrganizationsImpl(OrganizationsClient innerClient,
+ com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String organizationName, Context context) {
+ Response inner
+ = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, organizationName, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new OrganizationResourceImpl(inner.getValue(), this.manager()));
+ }
+
+ public OrganizationResource getByResourceGroup(String resourceGroupName, String organizationName) {
+ OrganizationResourceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, organizationName);
+ if (inner != null) {
+ return new OrganizationResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String organizationName) {
+ this.serviceClient().delete(resourceGroupName, organizationName);
+ }
+
+ public void delete(String resourceGroupName, String organizationName, Context context) {
+ this.serviceClient().delete(resourceGroupName, organizationName, context);
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OrganizationResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ PagedIterable inner
+ = this.serviceClient().listByResourceGroup(resourceGroupName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OrganizationResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OrganizationResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OrganizationResourceImpl(inner1, this.manager()));
+ }
+
+ public Response listWorkspacesWithResponse(String resourceGroupName,
+ String organizationName, Context context) {
+ Response inner
+ = this.serviceClient().listWorkspacesWithResponse(resourceGroupName, organizationName, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ListWorkspacesResponseImpl(inner.getValue(), this.manager()));
+ }
+
+ public ListWorkspacesResponse listWorkspaces(String resourceGroupName, String organizationName) {
+ ListWorkspacesResponseInner inner = this.serviceClient().listWorkspaces(resourceGroupName, organizationName);
+ if (inner != null) {
+ return new ListWorkspacesResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public OrganizationResource getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}",
+ "resourceGroupName");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String organizationName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}",
+ "organizationName");
+ if (organizationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'organizations'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, organizationName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}",
+ "resourceGroupName");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String organizationName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}",
+ "organizationName");
+ if (organizationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'organizations'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, organizationName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}",
+ "resourceGroupName");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String organizationName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}",
+ "organizationName");
+ if (organizationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'organizations'.", id)));
+ }
+ this.delete(resourceGroupName, organizationName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}",
+ "resourceGroupName");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String organizationName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Kore.AgentPlatform/organizations/{organizationName}",
+ "organizationName");
+ if (organizationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'organizations'.", id)));
+ }
+ this.delete(resourceGroupName, organizationName, context);
+ }
+
+ private OrganizationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.koreaiartemis.KoreAIArtemisManager manager() {
+ return this.serviceManager;
+ }
+
+ public OrganizationResourceImpl define(String name) {
+ return new OrganizationResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/ResourceManagerUtils.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/ResourceManagerUtils.java
new file mode 100644
index 0000000000000..7f8f17f65b341
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/ResourceManagerUtils.java
@@ -0,0 +1,177 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.implementation;
+
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import reactor.core.publisher.Flux;
+
+final class ResourceManagerUtils {
+ private ResourceManagerUtils() {
+ }
+
+ static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) {
+ if (id == null || pathTemplate == null || parameterName == null) {
+ return null;
+ }
+ String[] idSegments = id.split("/", -1);
+ String[] pathSegments = pathTemplate.split("/", -1);
+ int idStart = idSegments[0].isEmpty() ? 1 : 0;
+ int pathStart = pathSegments[0].isEmpty() ? 1 : 0;
+ if (idStart == idSegments.length || pathStart == pathSegments.length) {
+ return null;
+ }
+ for (int i = idStart; i < idSegments.length; ++i) {
+ if (idSegments[i].isEmpty()) {
+ return null;
+ }
+ }
+ String parameterPlaceholder = "{" + parameterName + "}";
+ String value = null;
+ int idIndex = idSegments.length - 1;
+ for (int pathIndex = pathSegments.length - 1; pathIndex >= pathStart; --pathIndex, --idIndex) {
+ String pathSegment = pathSegments[pathIndex];
+ boolean isParameter = pathSegment.startsWith("{") && pathSegment.endsWith("}");
+ if (pathIndex == pathStart && isParameter) {
+ // A leading scope can span multiple segments, or be empty for tenant resources.
+ if (pathSegment.equalsIgnoreCase(parameterPlaceholder)) {
+ value = String.join("/", Arrays.copyOfRange(idSegments, idStart, idIndex + 1));
+ }
+ idIndex = idStart;
+ } else if (idIndex < idStart) {
+ return null;
+ } else if (!isParameter && !pathSegment.equalsIgnoreCase(idSegments[idIndex])) {
+ return null;
+ } else if (pathSegment.equalsIgnoreCase(parameterPlaceholder)) {
+ value = idSegments[idIndex];
+ }
+ }
+ return idIndex < idStart ? value : null;
+ }
+
+ static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) {
+ return new PagedIterableImpl<>(pageIterable, mapper);
+ }
+
+ private static final class PagedIterableImpl extends PagedIterable {
+
+ private final PagedIterable pagedIterable;
+ private final Function mapper;
+ private final Function, PagedResponse> pageMapper;
+
+ private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) {
+ super(PagedFlux.create(() -> (continuationToken, pageSize) -> Flux
+ .fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper)))));
+ this.pagedIterable = pagedIterable;
+ this.mapper = mapper;
+ this.pageMapper = getPageMapper(mapper);
+ }
+
+ private static Function, PagedResponse> getPageMapper(Function mapper) {
+ return page -> new PagedResponseBase(page.getRequest(), page.getStatusCode(), page.getHeaders(),
+ page.getElements().stream().map(mapper).collect(Collectors.toList()), page.getContinuationToken(),
+ null);
+ }
+
+ @Override
+ public Stream stream() {
+ return pagedIterable.stream().map(mapper);
+ }
+
+ @Override
+ public Stream> streamByPage() {
+ return pagedIterable.streamByPage().map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken) {
+ return pagedIterable.streamByPage(continuationToken).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(int preferredPageSize) {
+ return pagedIterable.streamByPage(preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken, int preferredPageSize) {
+ return pagedIterable.streamByPage(continuationToken, preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl<>(pagedIterable.iterator(), mapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage() {
+ return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(int preferredPageSize) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken, int preferredPageSize) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
+ }
+ }
+
+ private static final class IteratorImpl implements Iterator {
+
+ private final Iterator iterator;
+ private final Function mapper;
+
+ private IteratorImpl(Iterator iterator, Function mapper) {
+ this.iterator = iterator;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public boolean hasNext() {
+ return iterator.hasNext();
+ }
+
+ @Override
+ public S next() {
+ return mapper.apply(iterator.next());
+ }
+
+ @Override
+ public void remove() {
+ iterator.remove();
+ }
+ }
+
+ private static final class IterableImpl implements Iterable {
+
+ private final Iterable iterable;
+ private final Function mapper;
+
+ private IterableImpl(Iterable iterable, Function mapper) {
+ this.iterable = iterable;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl<>(iterable.iterator(), mapper);
+ }
+ }
+}
diff --git a/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/SaaSOperationGroupsClientImpl.java b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/SaaSOperationGroupsClientImpl.java
new file mode 100644
index 0000000000000..4711674d51780
--- /dev/null
+++ b/sdk/koreaiartemis/azure-resourcemanager-koreaiartemis/src/main/java/com/azure/resourcemanager/koreaiartemis/implementation/SaaSOperationGroupsClientImpl.java
@@ -0,0 +1,233 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.koreaiartemis.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.koreaiartemis.fluent.SaaSOperationGroupsClient;
+import com.azure.resourcemanager.koreaiartemis.fluent.models.SaaSResourceDetailsResponseInner;
+import com.azure.resourcemanager.koreaiartemis.models.ActivateSaaSParameterRequest;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in SaaSOperationGroupsClient.
+ */
+public final class SaaSOperationGroupsClientImpl implements SaaSOperationGroupsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final SaaSOperationGroupsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final KoreAIArtemisManagementClientImpl client;
+
+ /**
+ * Initializes an instance of SaaSOperationGroupsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ SaaSOperationGroupsClientImpl(KoreAIArtemisManagementClientImpl client) {
+ this.service = RestProxy.create(SaaSOperationGroupsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for KoreAIArtemisManagementClientSaaSOperationGroups to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "KoreAIArtemisManagementClientSaaSOperationGroups")
+ public interface SaaSOperationGroupsService {
+ @Post("/subscriptions/{subscriptionId}/providers/Kore.AgentPlatform/activateSaaS")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> activateResource(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ActivateSaaSParameterRequest body, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Kore.AgentPlatform/activateSaaS")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response activateResourceSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ActivateSaaSParameterRequest body, Context context);
+ }
+
+ /**
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource.
+ *
+ * @param body The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return marketplace SaaS resource details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> activateResourceWithResponseAsync(ActivateSaaSParameterRequest body) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.activateResource(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), contentType, accept, body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource.
+ *
+ * @param body The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return marketplace SaaS resource details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response activateResourceWithResponse(ActivateSaaSParameterRequest body) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.activateResourceSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), contentType, accept, body, Context.NONE);
+ }
+
+ /**
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource.
+ *
+ * @param body The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return marketplace SaaS resource details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response activateResourceWithResponse(ActivateSaaSParameterRequest body, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.activateResourceSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), contentType, accept, body, context);
+ }
+
+ /**
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource.
+ *
+ * @param body The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of marketplace SaaS resource details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, SaaSResourceDetailsResponseInner>
+ beginActivateResourceAsync(ActivateSaaSParameterRequest body) {
+ Mono>> mono = activateResourceWithResponseAsync(body);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), SaaSResourceDetailsResponseInner.class,
+ SaaSResourceDetailsResponseInner.class, this.client.getContext());
+ }
+
+ /**
+ * Resolve the token to get the SaaS resource ID and activate the SaaS resource.
+ *
+ * @param body The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of marketplace SaaS resource details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller