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 Mongo DB Atlas service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Mongo DB Atlas service API instance.
+ */
+ public MongoDBAtlasManager 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.mongodbatlas")
+ .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 MongoDBAtlasManager(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 wrapped service client MongoDBAtlasManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client MongoDBAtlasManagementClient.
+ */
+ public MongoDBAtlasManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/MongoDBAtlasManagementClient.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/MongoDBAtlasManagementClient.java
new file mode 100644
index 000000000000..0edc6d3f039a
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/MongoDBAtlasManagementClient.java
@@ -0,0 +1,62 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for MongoDBAtlasManagementClient class.
+ */
+public interface MongoDBAtlasManagementClient {
+ /**
+ * 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();
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/OperationsClient.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/OperationsClient.java
new file mode 100644
index 000000000000..e7982c93766b
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/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.mongodbatlas.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.mongodbatlas.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/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/OrganizationsClient.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/OrganizationsClient.java
new file mode 100644
index 000000000000..83eeb9219ca5
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/OrganizationsClient.java
@@ -0,0 +1,270 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.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.mongodbatlas.fluent.models.OrganizationResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OrganizationsClient.
+ */
+public interface OrganizationsClient {
+ /**
+ * Get a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 OrganizationResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String organizationName, Context context);
+
+ /**
+ * Get a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 OrganizationResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OrganizationResourceInner getByResourceGroup(String resourceGroupName, String organizationName);
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OrganizationResourceInner>
+ beginCreateOrUpdate(String resourceGroupName, String organizationName, OrganizationResourceInner resource);
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OrganizationResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String organizationName, OrganizationResourceInner resource, Context context);
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OrganizationResourceInner createOrUpdate(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource);
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OrganizationResourceInner createOrUpdate(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource, Context context);
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OrganizationResourceInner> beginUpdate(String resourceGroupName,
+ String organizationName, OrganizationResourceInner properties);
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OrganizationResourceInner> beginUpdate(String resourceGroupName,
+ String organizationName, OrganizationResourceInner properties, Context context);
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OrganizationResourceInner update(String resourceGroupName, String organizationName,
+ OrganizationResourceInner properties);
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OrganizationResourceInner update(String resourceGroupName, String organizationName,
+ OrganizationResourceInner properties, Context context);
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 OrganizationResource resources by 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 OrganizationResource resources by 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 OrganizationResource resources by subscription ID.
+ *
+ * @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 OrganizationResource resources by subscription ID.
+ *
+ * @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);
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/models/OperationInner.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..666a38999b4b
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/models/OperationInner.java
@@ -0,0 +1,161 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.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.mongodbatlas.models.ActionType;
+import com.azure.resourcemanager.mongodbatlas.models.OperationDisplay;
+import com.azure.resourcemanager.mongodbatlas.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;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+
+ /**
+ * {@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/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/models/OrganizationResourceInner.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/models/OrganizationResourceInner.java
new file mode 100644
index 000000000000..f0f150ac2a88
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/models/OrganizationResourceInner.java
@@ -0,0 +1,224 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.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.mongodbatlas.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * The resource model definition for an Azure Organization.
+ */
+@Fluent
+public final class OrganizationResourceInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private OrganizationProperties properties;
+
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * 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 identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the OrganizationResourceInner object itself.
+ */
+ public OrganizationResourceInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ 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;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ }
+
+ /**
+ * {@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);
+ jsonWriter.writeJsonField("identity", this.identity);
+ 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 ("identity".equals(fieldName)) {
+ deserializedOrganizationResourceInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedOrganizationResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOrganizationResourceInner;
+ });
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/models/package-info.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/models/package-info.java
new file mode 100644
index 000000000000..a124eb9f73a1
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/models/package-info.java
@@ -0,0 +1,8 @@
+// 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 MongoDBAtlas.
+ */
+package com.azure.resourcemanager.mongodbatlas.fluent.models;
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/package-info.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/package-info.java
new file mode 100644
index 000000000000..b6e8c15cf1c9
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/package-info.java
@@ -0,0 +1,8 @@
+// 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 MongoDBAtlas.
+ */
+package com.azure.resourcemanager.mongodbatlas.fluent;
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/MongoDBAtlasManagementClientBuilder.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/MongoDBAtlasManagementClientBuilder.java
new file mode 100644
index 000000000000..88bd1f084e6b
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/MongoDBAtlasManagementClientBuilder.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.mongodbatlas.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 MongoDBAtlasManagementClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { MongoDBAtlasManagementClientImpl.class })
+public final class MongoDBAtlasManagementClientBuilder {
+ /*
+ * Service host
+ */
+ private String endpoint;
+
+ /**
+ * Sets Service host.
+ *
+ * @param endpoint the endpoint value.
+ * @return the MongoDBAtlasManagementClientBuilder.
+ */
+ public MongoDBAtlasManagementClientBuilder 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 MongoDBAtlasManagementClientBuilder.
+ */
+ public MongoDBAtlasManagementClientBuilder 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 MongoDBAtlasManagementClientBuilder.
+ */
+ public MongoDBAtlasManagementClientBuilder 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 MongoDBAtlasManagementClientBuilder.
+ */
+ public MongoDBAtlasManagementClientBuilder 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 MongoDBAtlasManagementClientBuilder.
+ */
+ public MongoDBAtlasManagementClientBuilder 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 MongoDBAtlasManagementClientBuilder.
+ */
+ public MongoDBAtlasManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of MongoDBAtlasManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of MongoDBAtlasManagementClientImpl.
+ */
+ public MongoDBAtlasManagementClientImpl 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();
+ MongoDBAtlasManagementClientImpl client = new MongoDBAtlasManagementClientImpl(localPipeline,
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId);
+ return client;
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/MongoDBAtlasManagementClientImpl.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/MongoDBAtlasManagementClientImpl.java
new file mode 100644
index 000000000000..adef01310983
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/MongoDBAtlasManagementClientImpl.java
@@ -0,0 +1,304 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.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.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.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.mongodbatlas.fluent.MongoDBAtlasManagementClient;
+import com.azure.resourcemanager.mongodbatlas.fluent.OperationsClient;
+import com.azure.resourcemanager.mongodbatlas.fluent.OrganizationsClient;
+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 MongoDBAtlasManagementClientImpl type.
+ */
+@ServiceClient(builder = MongoDBAtlasManagementClientBuilder.class)
+public final class MongoDBAtlasManagementClientImpl implements MongoDBAtlasManagementClient {
+ /**
+ * 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;
+ }
+
+ /**
+ * Initializes an instance of MongoDBAtlasManagementClient 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.
+ */
+ MongoDBAtlasManagementClientImpl(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 = "2024-11-18-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.organizations = new OrganizationsClientImpl(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 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 ? null : 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(MongoDBAtlasManagementClientImpl.class);
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OperationImpl.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OperationImpl.java
new file mode 100644
index 000000000000..5a3077d85e4e
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/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.mongodbatlas.implementation;
+
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OperationInner;
+import com.azure.resourcemanager.mongodbatlas.models.ActionType;
+import com.azure.resourcemanager.mongodbatlas.models.Operation;
+import com.azure.resourcemanager.mongodbatlas.models.OperationDisplay;
+import com.azure.resourcemanager.mongodbatlas.models.Origin;
+
+public final class OperationImpl implements Operation {
+ private OperationInner innerObject;
+
+ private final com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager serviceManager;
+
+ OperationImpl(OperationInner innerObject,
+ com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager 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.mongodbatlas.MongoDBAtlasManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OperationsClientImpl.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OperationsClientImpl.java
new file mode 100644
index 000000000000..31ee267eab38
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OperationsClientImpl.java
@@ -0,0 +1,235 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.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.mongodbatlas.fluent.OperationsClient;
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OperationInner;
+import com.azure.resourcemanager.mongodbatlas.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 MongoDBAtlasManagementClientImpl client;
+
+ /**
+ * Initializes an instance of OperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OperationsClientImpl(MongoDBAtlasManagementClientImpl client) {
+ this.service
+ = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MongoDBAtlasManagementClientOperations to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "MongoDBAtlasManageme")
+ public interface OperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/MongoDB.Atlas/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("{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);
+ }
+
+ /**
+ * 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() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ 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.
+ *
+ * @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} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+
+ /**
+ * 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.
+ *
+ * @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 PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(context),
+ nextLink -> listNextSinglePageAsync(nextLink, 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 as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * 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<>(listAsync(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) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ 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.
+ * @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} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OperationsImpl.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OperationsImpl.java
new file mode 100644
index 000000000000..141a43f5fef6
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/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.mongodbatlas.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.mongodbatlas.fluent.OperationsClient;
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OperationInner;
+import com.azure.resourcemanager.mongodbatlas.models.Operation;
+import com.azure.resourcemanager.mongodbatlas.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.mongodbatlas.MongoDBAtlasManager serviceManager;
+
+ public OperationsImpl(OperationsClient innerClient,
+ com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager 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.mongodbatlas.MongoDBAtlasManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OrganizationResourceImpl.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OrganizationResourceImpl.java
new file mode 100644
index 000000000000..e42113dee05a
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OrganizationResourceImpl.java
@@ -0,0 +1,175 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OrganizationResourceInner;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationProperties;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationResource;
+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.mongodbatlas.MongoDBAtlasManager 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 ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ 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.mongodbatlas.MongoDBAtlasManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String organizationName;
+
+ public OrganizationResourceImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public OrganizationResource create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getOrganizations()
+ .createOrUpdate(resourceGroupName, organizationName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public OrganizationResource create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getOrganizations()
+ .createOrUpdate(resourceGroupName, organizationName, this.innerModel(), context);
+ return this;
+ }
+
+ OrganizationResourceImpl(String name, com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager serviceManager) {
+ this.innerObject = new OrganizationResourceInner();
+ this.serviceManager = serviceManager;
+ this.organizationName = name;
+ }
+
+ public OrganizationResourceImpl update() {
+ return this;
+ }
+
+ public OrganizationResource apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getOrganizations()
+ .update(resourceGroupName, organizationName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public OrganizationResource apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getOrganizations()
+ .update(resourceGroupName, organizationName, this.innerModel(), context);
+ return this;
+ }
+
+ OrganizationResourceImpl(OrganizationResourceInner innerObject,
+ com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.organizationName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "organizations");
+ }
+
+ 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 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) {
+ this.innerModel().withTags(tags);
+ return this;
+ }
+
+ public OrganizationResourceImpl withProperties(OrganizationProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public OrganizationResourceImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OrganizationsClientImpl.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OrganizationsClientImpl.java
new file mode 100644
index 000000000000..1f45bea5636d
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OrganizationsClientImpl.java
@@ -0,0 +1,1300 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.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.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.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.mongodbatlas.fluent.OrganizationsClient;
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OrganizationResourceInner;
+import com.azure.resourcemanager.mongodbatlas.implementation.models.OrganizationResourceListResult;
+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 MongoDBAtlasManagementClientImpl client;
+
+ /**
+ * Initializes an instance of OrganizationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OrganizationsClientImpl(MongoDBAtlasManagementClientImpl client) {
+ this.service
+ = RestProxy.create(OrganizationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MongoDBAtlasManagementClientOrganizations to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "MongoDBAtlasManageme")
+ public interface OrganizationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/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);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@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/MongoDB.Atlas/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") OrganizationResourceInner properties,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/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, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/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}/providers/MongoDB.Atlas/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("{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)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 OrganizationResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String organizationName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ 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 a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 OrganizationResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String organizationName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context);
+ }
+
+ /**
+ * Get a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 OrganizationResource 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 a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 OrganizationResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String organizationName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, organizationName, context).block();
+ }
+
+ /**
+ * Get a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 OrganizationResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OrganizationResourceInner getByResourceGroup(String resourceGroupName, String organizationName) {
+ return getByResourceGroupWithResponse(resourceGroupName, organizationName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String organizationName, OrganizationResourceInner resource) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(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 a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String organizationName, OrganizationResourceInner resource, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, contentType, accept, resource,
+ context);
+ }
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, OrganizationResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String organizationName, OrganizationResourceInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, organizationName, resource);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), OrganizationResourceInner.class, OrganizationResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 PollerFlux} for polling of the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, OrganizationResourceInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String organizationName, OrganizationResourceInner resource, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, organizationName, resource, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), OrganizationResourceInner.class, OrganizationResourceInner.class, context);
+ }
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, OrganizationResourceInner>
+ beginCreateOrUpdate(String resourceGroupName, String organizationName, OrganizationResourceInner resource) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, organizationName, resource).getSyncPoller();
+ }
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, OrganizationResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String organizationName, OrganizationResourceInner resource, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, organizationName, resource, context).getSyncPoller();
+ }
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, organizationName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, organizationName, resource, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OrganizationResourceInner createOrUpdate(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource) {
+ return createOrUpdateAsync(resourceGroupName, organizationName, resource).block();
+ }
+
+ /**
+ * Create a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OrganizationResourceInner createOrUpdate(String resourceGroupName, String organizationName,
+ OrganizationResourceInner resource, Context context) {
+ return createOrUpdateAsync(resourceGroupName, organizationName, resource, context).block();
+ }
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String organizationName,
+ OrganizationResourceInner properties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
+ 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 a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String organizationName,
+ OrganizationResourceInner properties, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, organizationName, contentType, accept, properties, context);
+ }
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, OrganizationResourceInner>
+ beginUpdateAsync(String resourceGroupName, String organizationName, OrganizationResourceInner properties) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, organizationName, properties);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), OrganizationResourceInner.class, OrganizationResourceInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 PollerFlux} for polling of the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, OrganizationResourceInner> beginUpdateAsync(
+ String resourceGroupName, String organizationName, OrganizationResourceInner properties, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, organizationName, properties, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), OrganizationResourceInner.class, OrganizationResourceInner.class, context);
+ }
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, OrganizationResourceInner>
+ beginUpdate(String resourceGroupName, String organizationName, OrganizationResourceInner properties) {
+ return this.beginUpdateAsync(resourceGroupName, organizationName, properties).getSyncPoller();
+ }
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 the resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, OrganizationResourceInner> beginUpdate(
+ String resourceGroupName, String organizationName, OrganizationResourceInner properties, Context context) {
+ return this.beginUpdateAsync(resourceGroupName, organizationName, properties, context).getSyncPoller();
+ }
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String organizationName,
+ OrganizationResourceInner properties) {
+ return beginUpdateAsync(resourceGroupName, organizationName, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String organizationName,
+ OrganizationResourceInner properties, Context context) {
+ return beginUpdateAsync(resourceGroupName, organizationName, properties, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OrganizationResourceInner update(String resourceGroupName, String organizationName,
+ OrganizationResourceInner properties) {
+ return updateAsync(resourceGroupName, organizationName, properties).block();
+ }
+
+ /**
+ * Update a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 resource model definition for an Azure Organization.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OrganizationResourceInner update(String resourceGroupName, String organizationName,
+ OrganizationResourceInner properties, Context context) {
+ return updateAsync(resourceGroupName, organizationName, properties, context).block();
+ }
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String organizationName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, organizationName, accept, context);
+ }
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, organizationName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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) {
+ return this.beginDeleteAsync(resourceGroupName, organizationName).getSyncPoller();
+ }
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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) {
+ return this.beginDeleteAsync(resourceGroupName, organizationName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String organizationName, Context context) {
+ return beginDeleteAsync(resourceGroupName, organizationName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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) {
+ deleteAsync(resourceGroupName, organizationName).block();
+ }
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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) {
+ deleteAsync(resourceGroupName, organizationName, context).block();
+ }
+
+ /**
+ * List OrganizationResource resources by 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) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ 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 OrganizationResource resources by 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} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+
+ /**
+ * List OrganizationResource resources by 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 OrganizationResource resources by 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 PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List OrganizationResource resources by 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<>(listByResourceGroupAsync(resourceGroupName));
+ }
+
+ /**
+ * List OrganizationResource resources by 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<>(listByResourceGroupAsync(resourceGroupName, context));
+ }
+
+ /**
+ * List OrganizationResource resources by subscription ID.
+ *
+ * @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() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ 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 OrganizationResource resources by subscription ID.
+ *
+ * @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} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+
+ /**
+ * List OrganizationResource resources by subscription ID.
+ *
+ * @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 OrganizationResource resources by subscription ID.
+ *
+ * @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 PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(context),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List OrganizationResource resources by subscription ID.
+ *
+ * @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<>(listAsync());
+ }
+
+ /**
+ * List OrganizationResource resources by subscription ID.
+ *
+ * @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<>(listAsync(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 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) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ 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.
+ * @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} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+
+ /**
+ * 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) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ 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.
+ * @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} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return 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));
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OrganizationsImpl.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OrganizationsImpl.java
new file mode 100644
index 000000000000..73b6eb36f5f0
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OrganizationsImpl.java
@@ -0,0 +1,147 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.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.mongodbatlas.fluent.OrganizationsClient;
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OrganizationResourceInner;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationResource;
+import com.azure.resourcemanager.mongodbatlas.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.mongodbatlas.MongoDBAtlasManager serviceManager;
+
+ public OrganizationsImpl(OrganizationsClient innerClient,
+ com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String organizationName, Context context) {
+ Response inner
+ = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, organizationName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new OrganizationResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ 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 OrganizationResource getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ 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.getValueFromIdByName(id, "organizations");
+ 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.getValueFromIdByName(id, "resourceGroups");
+ 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.getValueFromIdByName(id, "organizations");
+ 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.getValueFromIdByName(id, "resourceGroups");
+ 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.getValueFromIdByName(id, "organizations");
+ 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.getValueFromIdByName(id, "resourceGroups");
+ 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.getValueFromIdByName(id, "organizations");
+ 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.mongodbatlas.MongoDBAtlasManager manager() {
+ return this.serviceManager;
+ }
+
+ public OrganizationResourceImpl define(String name) {
+ return new OrganizationResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/ResourceManagerUtils.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/ResourceManagerUtils.java
new file mode 100644
index 000000000000..630224e0a670
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/ResourceManagerUtils.java
@@ -0,0 +1,195 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.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 com.azure.core.util.CoreUtils;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+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 getValueFromIdByName(String id, String name) {
+ if (id == null) {
+ return null;
+ }
+ Iterator itr = Arrays.stream(id.split("/")).iterator();
+ while (itr.hasNext()) {
+ String part = itr.next();
+ if (part != null && !part.trim().isEmpty()) {
+ if (part.equalsIgnoreCase(name)) {
+ if (itr.hasNext()) {
+ return itr.next();
+ } else {
+ return null;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) {
+ if (id == null || pathTemplate == null) {
+ return null;
+ }
+ String parameterNameParentheses = "{" + parameterName + "}";
+ List idSegmentsReverted = Arrays.asList(id.split("/"));
+ List pathSegments = Arrays.asList(pathTemplate.split("/"));
+ Collections.reverse(idSegmentsReverted);
+ Iterator idItrReverted = idSegmentsReverted.iterator();
+ int pathIndex = pathSegments.size();
+ while (idItrReverted.hasNext() && pathIndex > 0) {
+ String idSegment = idItrReverted.next();
+ String pathSegment = pathSegments.get(--pathIndex);
+ if (!CoreUtils.isNullOrEmpty(idSegment) && !CoreUtils.isNullOrEmpty(pathSegment)) {
+ if (pathSegment.equalsIgnoreCase(parameterNameParentheses)) {
+ if (pathIndex == 0 || (pathIndex == 1 && pathSegments.get(0).isEmpty())) {
+ List segments = new ArrayList<>();
+ segments.add(idSegment);
+ idItrReverted.forEachRemaining(segments::add);
+ Collections.reverse(segments);
+ if (!segments.isEmpty() && segments.get(0).isEmpty()) {
+ segments.remove(0);
+ }
+ return String.join("/", segments);
+ } else {
+ return idSegment;
+ }
+ }
+ }
+ }
+ return 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/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/models/OperationListResult.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/models/OperationListResult.java
new file mode 100644
index 000000000000..1310eec3859d
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/models/OperationListResult.java
@@ -0,0 +1,113 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.implementation.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OperationInner;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of
+ * results.
+ */
+@Immutable
+public final class OperationListResult implements JsonSerializable {
+ /*
+ * The Operation items on this page
+ */
+ private List value;
+
+ /*
+ * The link to the next page of items
+ */
+ private String nextLink;
+
+ /**
+ * Creates an instance of OperationListResult class.
+ */
+ private OperationListResult() {
+ }
+
+ /**
+ * Get the value property: The Operation items on this page.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: The link to the next page of items.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property value in model OperationListResult"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(OperationListResult.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationListResult from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationListResult 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 OperationListResult.
+ */
+ public static OperationListResult fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationListResult deserializedOperationListResult = new OperationListResult();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value = reader.readArray(reader1 -> OperationInner.fromJson(reader1));
+ deserializedOperationListResult.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedOperationListResult.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationListResult;
+ });
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/models/OrganizationResourceListResult.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/models/OrganizationResourceListResult.java
new file mode 100644
index 000000000000..2c177bc8aa95
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/models/OrganizationResourceListResult.java
@@ -0,0 +1,115 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.implementation.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OrganizationResourceInner;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response of a OrganizationResource list operation.
+ */
+@Immutable
+public final class OrganizationResourceListResult implements JsonSerializable {
+ /*
+ * The OrganizationResource items on this page
+ */
+ private List value;
+
+ /*
+ * The link to the next page of items
+ */
+ private String nextLink;
+
+ /**
+ * Creates an instance of OrganizationResourceListResult class.
+ */
+ private OrganizationResourceListResult() {
+ }
+
+ /**
+ * Get the value property: The OrganizationResource items on this page.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: The link to the next page of items.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property value in model OrganizationResourceListResult"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(OrganizationResourceListResult.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OrganizationResourceListResult from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OrganizationResourceListResult 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 OrganizationResourceListResult.
+ */
+ public static OrganizationResourceListResult fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OrganizationResourceListResult deserializedOrganizationResourceListResult
+ = new OrganizationResourceListResult();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> OrganizationResourceInner.fromJson(reader1));
+ deserializedOrganizationResourceListResult.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedOrganizationResourceListResult.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOrganizationResourceListResult;
+ });
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/package-info.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/package-info.java
new file mode 100644
index 000000000000..bc35e037db20
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/package-info.java
@@ -0,0 +1,8 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the implementations for MongoDBAtlas.
+ */
+package com.azure.resourcemanager.mongodbatlas.implementation;
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ActionType.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ActionType.java
new file mode 100644
index 000000000000..89252421d5fa
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ActionType.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+public final class ActionType extends ExpandableStringEnum {
+ /**
+ * Actions are for internal-only APIs.
+ */
+ public static final ActionType INTERNAL = fromString("Internal");
+
+ /**
+ * Creates a new instance of ActionType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ActionType() {
+ }
+
+ /**
+ * Creates or finds a ActionType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ActionType.
+ */
+ public static ActionType fromString(String name) {
+ return fromString(name, ActionType.class);
+ }
+
+ /**
+ * Gets known ActionType values.
+ *
+ * @return known ActionType values.
+ */
+ public static Collection values() {
+ return values(ActionType.class);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ManagedServiceIdentity.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ManagedServiceIdentity.java
new file mode 100644
index 000000000000..10c00069e21c
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ManagedServiceIdentity.java
@@ -0,0 +1,176 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Managed service identity (system assigned and/or user assigned identities).
+ */
+@Fluent
+public final class ManagedServiceIdentity implements JsonSerializable {
+ /*
+ * The service principal ID of the system assigned identity. This property will only be provided for a system
+ * assigned identity.
+ */
+ private String principalId;
+
+ /*
+ * The tenant ID of the system assigned identity. This property will only be provided for a system assigned
+ * identity.
+ */
+ private String tenantId;
+
+ /*
+ * The type of managed identity assigned to this resource.
+ */
+ private ManagedServiceIdentityType type;
+
+ /*
+ * The identities assigned to this resource by the user.
+ */
+ private Map userAssignedIdentities;
+
+ /**
+ * Creates an instance of ManagedServiceIdentity class.
+ */
+ public ManagedServiceIdentity() {
+ }
+
+ /**
+ * Get the principalId property: The service principal ID of the system assigned identity. This property will only
+ * be provided for a system assigned identity.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for
+ * a system assigned identity.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Get the type property: The type of managed identity assigned to this resource.
+ *
+ * @return the type value.
+ */
+ public ManagedServiceIdentityType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: The type of managed identity assigned to this resource.
+ *
+ * @param type the type value to set.
+ * @return the ManagedServiceIdentity object itself.
+ */
+ public ManagedServiceIdentity withType(ManagedServiceIdentityType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the userAssignedIdentities property: The identities assigned to this resource by the user.
+ *
+ * @return the userAssignedIdentities value.
+ */
+ public Map userAssignedIdentities() {
+ return this.userAssignedIdentities;
+ }
+
+ /**
+ * Set the userAssignedIdentities property: The identities assigned to this resource by the user.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set.
+ * @return the ManagedServiceIdentity object itself.
+ */
+ public ManagedServiceIdentity withUserAssignedIdentities(Map userAssignedIdentities) {
+ this.userAssignedIdentities = userAssignedIdentities;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (type() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property type in model ManagedServiceIdentity"));
+ }
+ if (userAssignedIdentities() != null) {
+ userAssignedIdentities().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ManagedServiceIdentity.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString());
+ jsonWriter.writeMapField("userAssignedIdentities", this.userAssignedIdentities,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ManagedServiceIdentity from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ManagedServiceIdentity 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 ManagedServiceIdentity.
+ */
+ public static ManagedServiceIdentity fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ManagedServiceIdentity deserializedManagedServiceIdentity = new ManagedServiceIdentity();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("type".equals(fieldName)) {
+ deserializedManagedServiceIdentity.type = ManagedServiceIdentityType.fromString(reader.getString());
+ } else if ("principalId".equals(fieldName)) {
+ deserializedManagedServiceIdentity.principalId = reader.getString();
+ } else if ("tenantId".equals(fieldName)) {
+ deserializedManagedServiceIdentity.tenantId = reader.getString();
+ } else if ("userAssignedIdentities".equals(fieldName)) {
+ Map userAssignedIdentities
+ = reader.readMap(reader1 -> UserAssignedIdentity.fromJson(reader1));
+ deserializedManagedServiceIdentity.userAssignedIdentities = userAssignedIdentities;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedManagedServiceIdentity;
+ });
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ManagedServiceIdentityType.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ManagedServiceIdentityType.java
new file mode 100644
index 000000000000..60d1a2ef3865
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ManagedServiceIdentityType.java
@@ -0,0 +1,62 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
+ */
+public final class ManagedServiceIdentityType extends ExpandableStringEnum {
+ /**
+ * No managed identity.
+ */
+ public static final ManagedServiceIdentityType NONE = fromString("None");
+
+ /**
+ * System assigned managed identity.
+ */
+ public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned");
+
+ /**
+ * User assigned managed identity.
+ */
+ public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned");
+
+ /**
+ * System and user assigned managed identity.
+ */
+ public static final ManagedServiceIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED
+ = fromString("SystemAssigned,UserAssigned");
+
+ /**
+ * Creates a new instance of ManagedServiceIdentityType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ManagedServiceIdentityType() {
+ }
+
+ /**
+ * Creates or finds a ManagedServiceIdentityType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ManagedServiceIdentityType.
+ */
+ public static ManagedServiceIdentityType fromString(String name) {
+ return fromString(name, ManagedServiceIdentityType.class);
+ }
+
+ /**
+ * Gets known ManagedServiceIdentityType values.
+ *
+ * @return known ManagedServiceIdentityType values.
+ */
+ public static Collection values() {
+ return values(ManagedServiceIdentityType.class);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/MarketplaceDetails.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/MarketplaceDetails.java
new file mode 100644
index 000000000000..a75654d8c02e
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/MarketplaceDetails.java
@@ -0,0 +1,154 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Marketplace details for an organization.
+ */
+@Fluent
+public final class MarketplaceDetails implements JsonSerializable {
+ /*
+ * Azure subscription id for the the marketplace offer is purchased from
+ */
+ private String subscriptionId;
+
+ /*
+ * Marketplace subscription status
+ */
+ private MarketplaceSubscriptionStatus subscriptionStatus;
+
+ /*
+ * Offer details for the marketplace that is selected by the user
+ */
+ private OfferDetails offerDetails;
+
+ /**
+ * Creates an instance of MarketplaceDetails class.
+ */
+ public MarketplaceDetails() {
+ }
+
+ /**
+ * Get the subscriptionId property: Azure subscription id for the the marketplace offer is purchased from.
+ *
+ * @return the subscriptionId value.
+ */
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Set the subscriptionId property: Azure subscription id for the the marketplace offer is purchased from.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the MarketplaceDetails object itself.
+ */
+ public MarketplaceDetails withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /**
+ * Get the subscriptionStatus property: Marketplace subscription status.
+ *
+ * @return the subscriptionStatus value.
+ */
+ public MarketplaceSubscriptionStatus subscriptionStatus() {
+ return this.subscriptionStatus;
+ }
+
+ /**
+ * Get the offerDetails property: Offer details for the marketplace that is selected by the user.
+ *
+ * @return the offerDetails value.
+ */
+ public OfferDetails offerDetails() {
+ return this.offerDetails;
+ }
+
+ /**
+ * Set the offerDetails property: Offer details for the marketplace that is selected by the user.
+ *
+ * @param offerDetails the offerDetails value to set.
+ * @return the MarketplaceDetails object itself.
+ */
+ public MarketplaceDetails withOfferDetails(OfferDetails offerDetails) {
+ this.offerDetails = offerDetails;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (subscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property subscriptionId in model MarketplaceDetails"));
+ }
+ if (offerDetails() == null) {
+ throw LOGGER.atError()
+ .log(
+ new IllegalArgumentException("Missing required property offerDetails in model MarketplaceDetails"));
+ } else {
+ offerDetails().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(MarketplaceDetails.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
+ jsonWriter.writeJsonField("offerDetails", this.offerDetails);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MarketplaceDetails from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MarketplaceDetails 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 MarketplaceDetails.
+ */
+ public static MarketplaceDetails fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MarketplaceDetails deserializedMarketplaceDetails = new MarketplaceDetails();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("subscriptionId".equals(fieldName)) {
+ deserializedMarketplaceDetails.subscriptionId = reader.getString();
+ } else if ("offerDetails".equals(fieldName)) {
+ deserializedMarketplaceDetails.offerDetails = OfferDetails.fromJson(reader);
+ } else if ("subscriptionStatus".equals(fieldName)) {
+ deserializedMarketplaceDetails.subscriptionStatus
+ = MarketplaceSubscriptionStatus.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMarketplaceDetails;
+ });
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/MarketplaceSubscriptionStatus.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/MarketplaceSubscriptionStatus.java
new file mode 100644
index 000000000000..025e2d5cae1f
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/MarketplaceSubscriptionStatus.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Marketplace subscription status of a resource.
+ */
+public final class MarketplaceSubscriptionStatus extends ExpandableStringEnum {
+ /**
+ * Purchased but not yet activated.
+ */
+ public static final MarketplaceSubscriptionStatus PENDING_FULFILLMENT_START = fromString("PendingFulfillmentStart");
+
+ /**
+ * Marketplace subscription is activated.
+ */
+ public static final MarketplaceSubscriptionStatus SUBSCRIBED = fromString("Subscribed");
+
+ /**
+ * This state indicates that a customer's payment for the Marketplace service was not received.
+ */
+ public static final MarketplaceSubscriptionStatus SUSPENDED = fromString("Suspended");
+
+ /**
+ * Customer has cancelled the subscription.
+ */
+ public static final MarketplaceSubscriptionStatus UNSUBSCRIBED = fromString("Unsubscribed");
+
+ /**
+ * Creates a new instance of MarketplaceSubscriptionStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public MarketplaceSubscriptionStatus() {
+ }
+
+ /**
+ * Creates or finds a MarketplaceSubscriptionStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding MarketplaceSubscriptionStatus.
+ */
+ public static MarketplaceSubscriptionStatus fromString(String name) {
+ return fromString(name, MarketplaceSubscriptionStatus.class);
+ }
+
+ /**
+ * Gets known MarketplaceSubscriptionStatus values.
+ *
+ * @return known MarketplaceSubscriptionStatus values.
+ */
+ public static Collection values() {
+ return values(MarketplaceSubscriptionStatus.class);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OfferDetails.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OfferDetails.java
new file mode 100644
index 000000000000..55fb5c1ee564
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OfferDetails.java
@@ -0,0 +1,249 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Offer details for the marketplace that is selected by the user.
+ */
+@Fluent
+public final class OfferDetails implements JsonSerializable {
+ /*
+ * Publisher Id for the marketplace offer
+ */
+ private String publisherId;
+
+ /*
+ * Offer Id for the marketplace offer
+ */
+ private String offerId;
+
+ /*
+ * Plan Id for the marketplace offer
+ */
+ private String planId;
+
+ /*
+ * Plan Name for the marketplace offer
+ */
+ private String planName;
+
+ /*
+ * Plan Display Name for the marketplace offer
+ */
+ private String termUnit;
+
+ /*
+ * Plan Display Name for the marketplace offer
+ */
+ private String termId;
+
+ /**
+ * Creates an instance of OfferDetails class.
+ */
+ public OfferDetails() {
+ }
+
+ /**
+ * Get the publisherId property: Publisher Id for the marketplace offer.
+ *
+ * @return the publisherId value.
+ */
+ public String publisherId() {
+ return this.publisherId;
+ }
+
+ /**
+ * Set the publisherId property: Publisher Id for the marketplace offer.
+ *
+ * @param publisherId the publisherId value to set.
+ * @return the OfferDetails object itself.
+ */
+ public OfferDetails withPublisherId(String publisherId) {
+ this.publisherId = publisherId;
+ return this;
+ }
+
+ /**
+ * Get the offerId property: Offer Id for the marketplace offer.
+ *
+ * @return the offerId value.
+ */
+ public String offerId() {
+ return this.offerId;
+ }
+
+ /**
+ * Set the offerId property: Offer Id for the marketplace offer.
+ *
+ * @param offerId the offerId value to set.
+ * @return the OfferDetails object itself.
+ */
+ public OfferDetails withOfferId(String offerId) {
+ this.offerId = offerId;
+ return this;
+ }
+
+ /**
+ * Get the planId property: Plan Id for the marketplace offer.
+ *
+ * @return the planId value.
+ */
+ public String planId() {
+ return this.planId;
+ }
+
+ /**
+ * Set the planId property: Plan Id for the marketplace offer.
+ *
+ * @param planId the planId value to set.
+ * @return the OfferDetails object itself.
+ */
+ public OfferDetails withPlanId(String planId) {
+ this.planId = planId;
+ return this;
+ }
+
+ /**
+ * Get the planName property: Plan Name for the marketplace offer.
+ *
+ * @return the planName value.
+ */
+ public String planName() {
+ return this.planName;
+ }
+
+ /**
+ * Set the planName property: Plan Name for the marketplace offer.
+ *
+ * @param planName the planName value to set.
+ * @return the OfferDetails object itself.
+ */
+ public OfferDetails withPlanName(String planName) {
+ this.planName = planName;
+ return this;
+ }
+
+ /**
+ * Get the termUnit property: Plan Display Name for the marketplace offer.
+ *
+ * @return the termUnit value.
+ */
+ public String termUnit() {
+ return this.termUnit;
+ }
+
+ /**
+ * Set the termUnit property: Plan Display Name for the marketplace offer.
+ *
+ * @param termUnit the termUnit value to set.
+ * @return the OfferDetails object itself.
+ */
+ public OfferDetails withTermUnit(String termUnit) {
+ this.termUnit = termUnit;
+ return this;
+ }
+
+ /**
+ * Get the termId property: Plan Display Name for the marketplace offer.
+ *
+ * @return the termId value.
+ */
+ public String termId() {
+ return this.termId;
+ }
+
+ /**
+ * Set the termId property: Plan Display Name for the marketplace offer.
+ *
+ * @param termId the termId value to set.
+ * @return the OfferDetails object itself.
+ */
+ public OfferDetails withTermId(String termId) {
+ this.termId = termId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (publisherId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property publisherId in model OfferDetails"));
+ }
+ if (offerId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property offerId in model OfferDetails"));
+ }
+ if (planId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property planId in model OfferDetails"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(OfferDetails.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("publisherId", this.publisherId);
+ jsonWriter.writeStringField("offerId", this.offerId);
+ jsonWriter.writeStringField("planId", this.planId);
+ jsonWriter.writeStringField("planName", this.planName);
+ jsonWriter.writeStringField("termUnit", this.termUnit);
+ jsonWriter.writeStringField("termId", this.termId);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OfferDetails from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OfferDetails 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 OfferDetails.
+ */
+ public static OfferDetails fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OfferDetails deserializedOfferDetails = new OfferDetails();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("publisherId".equals(fieldName)) {
+ deserializedOfferDetails.publisherId = reader.getString();
+ } else if ("offerId".equals(fieldName)) {
+ deserializedOfferDetails.offerId = reader.getString();
+ } else if ("planId".equals(fieldName)) {
+ deserializedOfferDetails.planId = reader.getString();
+ } else if ("planName".equals(fieldName)) {
+ deserializedOfferDetails.planName = reader.getString();
+ } else if ("termUnit".equals(fieldName)) {
+ deserializedOfferDetails.termUnit = reader.getString();
+ } else if ("termId".equals(fieldName)) {
+ deserializedOfferDetails.termId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOfferDetails;
+ });
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Operation.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Operation.java
new file mode 100644
index 000000000000..e95db28e519b
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Operation.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OperationInner;
+
+/**
+ * An immutable client-side representation of Operation.
+ */
+public interface Operation {
+ /**
+ * Gets 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.
+ */
+ String name();
+
+ /**
+ * Gets 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.
+ */
+ Boolean isDataAction();
+
+ /**
+ * Gets the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ OperationDisplay display();
+
+ /**
+ * Gets 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.
+ */
+ Origin origin();
+
+ /**
+ * Gets the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
+ *
+ * @return the actionType value.
+ */
+ ActionType actionType();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.mongodbatlas.fluent.models.OperationInner object.
+ *
+ * @return the inner object.
+ */
+ OperationInner innerModel();
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OperationDisplay.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OperationDisplay.java
new file mode 100644
index 000000000000..bbc8be2c151c
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OperationDisplay.java
@@ -0,0 +1,136 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.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 java.io.IOException;
+
+/**
+ * Localized display information for and operation.
+ */
+@Immutable
+public final class OperationDisplay implements JsonSerializable {
+ /*
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or
+ * "Microsoft Compute".
+ */
+ private String provider;
+
+ /*
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or
+ * "Job Schedule Collections".
+ */
+ private String resource;
+
+ /*
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g.
+ * "Create or Update Virtual Machine", "Restart Virtual Machine".
+ */
+ private String operation;
+
+ /*
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
+ */
+ private String description;
+
+ /**
+ * Creates an instance of OperationDisplay class.
+ */
+ private OperationDisplay() {
+ }
+
+ /**
+ * Get the provider property: The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring
+ * Insights" or "Microsoft Compute".
+ *
+ * @return the provider value.
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * Get the resource property: The localized friendly name of the resource type related to this operation. E.g.
+ * "Virtual Machines" or "Job Schedule Collections".
+ *
+ * @return the resource value.
+ */
+ public String resource() {
+ return this.resource;
+ }
+
+ /**
+ * Get the operation property: The concise, localized friendly name for the operation; suitable for dropdowns. E.g.
+ * "Create or Update Virtual Machine", "Restart Virtual Machine".
+ *
+ * @return the operation value.
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+ /**
+ * Get the description property: The short, localized friendly description of the operation; suitable for tool tips
+ * and detailed views.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationDisplay from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationDisplay 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 OperationDisplay.
+ */
+ public static OperationDisplay fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationDisplay deserializedOperationDisplay = new OperationDisplay();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("provider".equals(fieldName)) {
+ deserializedOperationDisplay.provider = reader.getString();
+ } else if ("resource".equals(fieldName)) {
+ deserializedOperationDisplay.resource = reader.getString();
+ } else if ("operation".equals(fieldName)) {
+ deserializedOperationDisplay.operation = reader.getString();
+ } else if ("description".equals(fieldName)) {
+ deserializedOperationDisplay.description = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationDisplay;
+ });
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Operations.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Operations.java
new file mode 100644
index 000000000000..a9b8912c9afc
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Operations.java
@@ -0,0 +1,35 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+
+/**
+ * Resource collection API of Operations.
+ */
+public interface Operations {
+ /**
+ * 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}.
+ */
+ 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}.
+ */
+ PagedIterable list(Context context);
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OrganizationProperties.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OrganizationProperties.java
new file mode 100644
index 000000000000..c979e8a7a3da
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OrganizationProperties.java
@@ -0,0 +1,186 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Properties specific to Organization.
+ */
+@Fluent
+public final class OrganizationProperties implements JsonSerializable {
+ /*
+ * Marketplace details of the resource.
+ */
+ private MarketplaceDetails marketplace;
+
+ /*
+ * Details of the user.
+ */
+ private UserDetails user;
+
+ /*
+ * Provisioning state of the resource.
+ */
+ private ResourceProvisioningState provisioningState;
+
+ /*
+ * MongoDB properties
+ */
+ private PartnerProperties partnerProperties;
+
+ /**
+ * Creates an instance of OrganizationProperties class.
+ */
+ public OrganizationProperties() {
+ }
+
+ /**
+ * Get the marketplace property: Marketplace details of the resource.
+ *
+ * @return the marketplace value.
+ */
+ public MarketplaceDetails marketplace() {
+ return this.marketplace;
+ }
+
+ /**
+ * Set the marketplace property: Marketplace details of the resource.
+ *
+ * @param marketplace the marketplace value to set.
+ * @return the OrganizationProperties object itself.
+ */
+ public OrganizationProperties withMarketplace(MarketplaceDetails marketplace) {
+ this.marketplace = marketplace;
+ return this;
+ }
+
+ /**
+ * Get the user property: Details of the user.
+ *
+ * @return the user value.
+ */
+ public UserDetails user() {
+ return this.user;
+ }
+
+ /**
+ * Set the user property: Details of the user.
+ *
+ * @param user the user value to set.
+ * @return the OrganizationProperties object itself.
+ */
+ public OrganizationProperties withUser(UserDetails user) {
+ this.user = user;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ResourceProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the partnerProperties property: MongoDB properties.
+ *
+ * @return the partnerProperties value.
+ */
+ public PartnerProperties partnerProperties() {
+ return this.partnerProperties;
+ }
+
+ /**
+ * Set the partnerProperties property: MongoDB properties.
+ *
+ * @param partnerProperties the partnerProperties value to set.
+ * @return the OrganizationProperties object itself.
+ */
+ public OrganizationProperties withPartnerProperties(PartnerProperties partnerProperties) {
+ this.partnerProperties = partnerProperties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (marketplace() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property marketplace in model OrganizationProperties"));
+ } else {
+ marketplace().validate();
+ }
+ if (user() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property user in model OrganizationProperties"));
+ } else {
+ user().validate();
+ }
+ if (partnerProperties() != null) {
+ partnerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(OrganizationProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("marketplace", this.marketplace);
+ jsonWriter.writeJsonField("user", this.user);
+ jsonWriter.writeJsonField("partnerProperties", this.partnerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OrganizationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OrganizationProperties 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 OrganizationProperties.
+ */
+ public static OrganizationProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OrganizationProperties deserializedOrganizationProperties = new OrganizationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("marketplace".equals(fieldName)) {
+ deserializedOrganizationProperties.marketplace = MarketplaceDetails.fromJson(reader);
+ } else if ("user".equals(fieldName)) {
+ deserializedOrganizationProperties.user = UserDetails.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedOrganizationProperties.provisioningState
+ = ResourceProvisioningState.fromString(reader.getString());
+ } else if ("partnerProperties".equals(fieldName)) {
+ deserializedOrganizationProperties.partnerProperties = PartnerProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOrganizationProperties;
+ });
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OrganizationResource.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OrganizationResource.java
new file mode 100644
index 000000000000..183b560ba26a
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/OrganizationResource.java
@@ -0,0 +1,299 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OrganizationResourceInner;
+import java.util.Map;
+
+/**
+ * An immutable client-side representation of OrganizationResource.
+ */
+public interface OrganizationResource {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * Gets the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * Gets the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ OrganizationProperties properties();
+
+ /**
+ * Gets the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ ManagedServiceIdentity identity();
+
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the region of the resource.
+ *
+ * @return the region of the resource.
+ */
+ Region region();
+
+ /**
+ * Gets the name of the resource region.
+ *
+ * @return the name of the resource region.
+ */
+ String regionName();
+
+ /**
+ * Gets the name of the resource group.
+ *
+ * @return the name of the resource group.
+ */
+ String resourceGroupName();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.mongodbatlas.fluent.models.OrganizationResourceInner object.
+ *
+ * @return the inner object.
+ */
+ OrganizationResourceInner innerModel();
+
+ /**
+ * The entirety of the OrganizationResource definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation,
+ DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * The OrganizationResource definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of the OrganizationResource definition.
+ */
+ interface Blank extends WithLocation {
+ }
+
+ /**
+ * The stage of the OrganizationResource definition allowing to specify location.
+ */
+ interface WithLocation {
+ /**
+ * Specifies the region for the resource.
+ *
+ * @param location The geo-location where the resource lives.
+ * @return the next definition stage.
+ */
+ WithResourceGroup withRegion(Region location);
+
+ /**
+ * Specifies the region for the resource.
+ *
+ * @param location The geo-location where the resource lives.
+ * @return the next definition stage.
+ */
+ WithResourceGroup withRegion(String location);
+ }
+
+ /**
+ * The stage of the OrganizationResource definition allowing to specify parent resource.
+ */
+ interface WithResourceGroup {
+ /**
+ * Specifies resourceGroupName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @return the next definition stage.
+ */
+ WithCreate withExistingResourceGroup(String resourceGroupName);
+ }
+
+ /**
+ * The stage of the OrganizationResource definition which contains all the minimum required properties for the
+ * resource to be created, but also allows for any other optional properties to be specified.
+ */
+ interface WithCreate
+ extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithIdentity {
+ /**
+ * Executes the create request.
+ *
+ * @return the created resource.
+ */
+ OrganizationResource create();
+
+ /**
+ * Executes the create request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the created resource.
+ */
+ OrganizationResource create(Context context);
+ }
+
+ /**
+ * The stage of the OrganizationResource definition allowing to specify tags.
+ */
+ interface WithTags {
+ /**
+ * Specifies the tags property: Resource tags..
+ *
+ * @param tags Resource tags.
+ * @return the next definition stage.
+ */
+ WithCreate withTags(Map tags);
+ }
+
+ /**
+ * The stage of the OrganizationResource definition allowing to specify properties.
+ */
+ interface WithProperties {
+ /**
+ * Specifies the properties property: The resource-specific properties for this resource..
+ *
+ * @param properties The resource-specific properties for this resource.
+ * @return the next definition stage.
+ */
+ WithCreate withProperties(OrganizationProperties properties);
+ }
+
+ /**
+ * The stage of the OrganizationResource definition allowing to specify identity.
+ */
+ interface WithIdentity {
+ /**
+ * Specifies the identity property: The managed service identities assigned to this resource..
+ *
+ * @param identity The managed service identities assigned to this resource.
+ * @return the next definition stage.
+ */
+ WithCreate withIdentity(ManagedServiceIdentity identity);
+ }
+ }
+
+ /**
+ * Begins update for the OrganizationResource resource.
+ *
+ * @return the stage of resource update.
+ */
+ OrganizationResource.Update update();
+
+ /**
+ * The template for OrganizationResource update.
+ */
+ interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties, UpdateStages.WithIdentity {
+ /**
+ * Executes the update request.
+ *
+ * @return the updated resource.
+ */
+ OrganizationResource apply();
+
+ /**
+ * Executes the update request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the updated resource.
+ */
+ OrganizationResource apply(Context context);
+ }
+
+ /**
+ * The OrganizationResource update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the OrganizationResource update allowing to specify tags.
+ */
+ interface WithTags {
+ /**
+ * Specifies the tags property: Resource tags..
+ *
+ * @param tags Resource tags.
+ * @return the next definition stage.
+ */
+ Update withTags(Map tags);
+ }
+
+ /**
+ * The stage of the OrganizationResource update allowing to specify properties.
+ */
+ interface WithProperties {
+ /**
+ * Specifies the properties property: The resource-specific properties for this resource..
+ *
+ * @param properties The resource-specific properties for this resource.
+ * @return the next definition stage.
+ */
+ Update withProperties(OrganizationProperties properties);
+ }
+
+ /**
+ * The stage of the OrganizationResource update allowing to specify identity.
+ */
+ interface WithIdentity {
+ /**
+ * Specifies the identity property: The managed service identities assigned to this resource..
+ *
+ * @param identity The managed service identities assigned to this resource.
+ * @return the next definition stage.
+ */
+ Update withIdentity(ManagedServiceIdentity identity);
+ }
+ }
+
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @return the refreshed resource.
+ */
+ OrganizationResource refresh();
+
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @param context The context to associate with this operation.
+ * @return the refreshed resource.
+ */
+ OrganizationResource refresh(Context context);
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Organizations.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Organizations.java
new file mode 100644
index 000000000000..b0784b89d85c
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Organizations.java
@@ -0,0 +1,158 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/**
+ * Resource collection API of Organizations.
+ */
+public interface Organizations {
+ /**
+ * Get a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 OrganizationResource along with {@link Response}.
+ */
+ Response getByResourceGroupWithResponse(String resourceGroupName, String organizationName,
+ Context context);
+
+ /**
+ * Get a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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 OrganizationResource.
+ */
+ OrganizationResource getByResourceGroup(String resourceGroupName, String organizationName);
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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.
+ */
+ void deleteByResourceGroup(String resourceGroupName, String organizationName);
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organization resource.
+ * @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.
+ */
+ void delete(String resourceGroupName, String organizationName, Context context);
+
+ /**
+ * List OrganizationResource resources by 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}.
+ */
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List OrganizationResource resources by 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}.
+ */
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List OrganizationResource resources by subscription ID.
+ *
+ * @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}.
+ */
+ PagedIterable list();
+
+ /**
+ * List OrganizationResource resources by subscription ID.
+ *
+ * @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}.
+ */
+ PagedIterable list(Context context);
+
+ /**
+ * Get a OrganizationResource.
+ *
+ * @param id the resource ID.
+ * @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 OrganizationResource along with {@link Response}.
+ */
+ OrganizationResource getById(String id);
+
+ /**
+ * Get a OrganizationResource.
+ *
+ * @param id the resource ID.
+ * @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 OrganizationResource along with {@link Response}.
+ */
+ Response getByIdWithResponse(String id, Context context);
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param id the resource ID.
+ * @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.
+ */
+ void deleteById(String id);
+
+ /**
+ * Delete a OrganizationResource.
+ *
+ * @param id the resource ID.
+ * @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.
+ */
+ void deleteByIdWithResponse(String id, Context context);
+
+ /**
+ * Begins definition for a new OrganizationResource resource.
+ *
+ * @param name resource name.
+ * @return the first stage of the new OrganizationResource definition.
+ */
+ OrganizationResource.DefinitionStages.Blank define(String name);
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Origin.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Origin.java
new file mode 100644
index 000000000000..8da2d8f390c2
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/Origin.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value
+ * is "user,system".
+ */
+public final class Origin extends ExpandableStringEnum {
+ /**
+ * Indicates the operation is initiated by a user.
+ */
+ public static final Origin USER = fromString("user");
+
+ /**
+ * Indicates the operation is initiated by a system.
+ */
+ public static final Origin SYSTEM = fromString("system");
+
+ /**
+ * Indicates the operation is initiated by a user or system.
+ */
+ public static final Origin USER_SYSTEM = fromString("user,system");
+
+ /**
+ * Creates a new instance of Origin value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public Origin() {
+ }
+
+ /**
+ * Creates or finds a Origin from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding Origin.
+ */
+ public static Origin fromString(String name) {
+ return fromString(name, Origin.class);
+ }
+
+ /**
+ * Gets known Origin values.
+ *
+ * @return known Origin values.
+ */
+ public static Collection values() {
+ return values(Origin.class);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/PartnerProperties.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/PartnerProperties.java
new file mode 100644
index 000000000000..30570e732e21
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/PartnerProperties.java
@@ -0,0 +1,158 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * MongoDB specific Properties.
+ */
+@Fluent
+public final class PartnerProperties implements JsonSerializable {
+ /*
+ * Organization Id in MongoDB system
+ */
+ private String organizationId;
+
+ /*
+ * Redirect URL for the MongoDB
+ */
+ private String redirectUrl;
+
+ /*
+ * Organization name in MongoDB system
+ */
+ private String organizationName;
+
+ /**
+ * Creates an instance of PartnerProperties class.
+ */
+ public PartnerProperties() {
+ }
+
+ /**
+ * Get the organizationId property: Organization Id in MongoDB system.
+ *
+ * @return the organizationId value.
+ */
+ public String organizationId() {
+ return this.organizationId;
+ }
+
+ /**
+ * Set the organizationId property: Organization Id in MongoDB system.
+ *
+ * @param organizationId the organizationId value to set.
+ * @return the PartnerProperties object itself.
+ */
+ public PartnerProperties withOrganizationId(String organizationId) {
+ this.organizationId = organizationId;
+ return this;
+ }
+
+ /**
+ * Get the redirectUrl property: Redirect URL for the MongoDB.
+ *
+ * @return the redirectUrl value.
+ */
+ public String redirectUrl() {
+ return this.redirectUrl;
+ }
+
+ /**
+ * Set the redirectUrl property: Redirect URL for the MongoDB.
+ *
+ * @param redirectUrl the redirectUrl value to set.
+ * @return the PartnerProperties object itself.
+ */
+ public PartnerProperties withRedirectUrl(String redirectUrl) {
+ this.redirectUrl = redirectUrl;
+ return this;
+ }
+
+ /**
+ * Get the organizationName property: Organization name in MongoDB system.
+ *
+ * @return the organizationName value.
+ */
+ public String organizationName() {
+ return this.organizationName;
+ }
+
+ /**
+ * Set the organizationName property: Organization name in MongoDB system.
+ *
+ * @param organizationName the organizationName value to set.
+ * @return the PartnerProperties object itself.
+ */
+ public PartnerProperties withOrganizationName(String organizationName) {
+ this.organizationName = organizationName;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (organizationName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property organizationName in model PartnerProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(PartnerProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("organizationName", this.organizationName);
+ jsonWriter.writeStringField("organizationId", this.organizationId);
+ jsonWriter.writeStringField("redirectUrl", this.redirectUrl);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PartnerProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerProperties 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 PartnerProperties.
+ */
+ public static PartnerProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerProperties deserializedPartnerProperties = new PartnerProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("organizationName".equals(fieldName)) {
+ deserializedPartnerProperties.organizationName = reader.getString();
+ } else if ("organizationId".equals(fieldName)) {
+ deserializedPartnerProperties.organizationId = reader.getString();
+ } else if ("redirectUrl".equals(fieldName)) {
+ deserializedPartnerProperties.redirectUrl = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerProperties;
+ });
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ResourceProvisioningState.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ResourceProvisioningState.java
new file mode 100644
index 000000000000..87a075fc0e74
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/ResourceProvisioningState.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The provisioning state of a resource type.
+ */
+public final class ResourceProvisioningState extends ExpandableStringEnum {
+ /**
+ * Resource has been created.
+ */
+ public static final ResourceProvisioningState SUCCEEDED = fromString("Succeeded");
+
+ /**
+ * Resource creation failed.
+ */
+ public static final ResourceProvisioningState FAILED = fromString("Failed");
+
+ /**
+ * Resource creation was canceled.
+ */
+ public static final ResourceProvisioningState CANCELED = fromString("Canceled");
+
+ /**
+ * Creates a new instance of ResourceProvisioningState value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ResourceProvisioningState() {
+ }
+
+ /**
+ * Creates or finds a ResourceProvisioningState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ResourceProvisioningState.
+ */
+ public static ResourceProvisioningState fromString(String name) {
+ return fromString(name, ResourceProvisioningState.class);
+ }
+
+ /**
+ * Gets known ResourceProvisioningState values.
+ *
+ * @return known ResourceProvisioningState values.
+ */
+ public static Collection values() {
+ return values(ResourceProvisioningState.class);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/UserAssignedIdentity.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/UserAssignedIdentity.java
new file mode 100644
index 000000000000..7892766bbead
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/UserAssignedIdentity.java
@@ -0,0 +1,97 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.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 java.io.IOException;
+
+/**
+ * User assigned identity properties.
+ */
+@Immutable
+public final class UserAssignedIdentity implements JsonSerializable {
+ /*
+ * The principal ID of the assigned identity.
+ */
+ private String principalId;
+
+ /*
+ * The client ID of the assigned identity.
+ */
+ private String clientId;
+
+ /**
+ * Creates an instance of UserAssignedIdentity class.
+ */
+ public UserAssignedIdentity() {
+ }
+
+ /**
+ * Get the principalId property: The principal ID of the assigned identity.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Get the clientId property: The client ID of the assigned identity.
+ *
+ * @return the clientId value.
+ */
+ public String clientId() {
+ return this.clientId;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of UserAssignedIdentity from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of UserAssignedIdentity 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 UserAssignedIdentity.
+ */
+ public static UserAssignedIdentity fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ UserAssignedIdentity deserializedUserAssignedIdentity = new UserAssignedIdentity();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("principalId".equals(fieldName)) {
+ deserializedUserAssignedIdentity.principalId = reader.getString();
+ } else if ("clientId".equals(fieldName)) {
+ deserializedUserAssignedIdentity.clientId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedUserAssignedIdentity;
+ });
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/UserDetails.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/UserDetails.java
new file mode 100644
index 000000000000..d6df1708cbc5
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/UserDetails.java
@@ -0,0 +1,249 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * User details for an organization.
+ */
+@Fluent
+public final class UserDetails implements JsonSerializable {
+ /*
+ * First name of the user
+ */
+ private String firstName;
+
+ /*
+ * Last name of the user
+ */
+ private String lastName;
+
+ /*
+ * Email address of the user
+ */
+ private String emailAddress;
+
+ /*
+ * User's principal name
+ */
+ private String upn;
+
+ /*
+ * User's phone number
+ */
+ private String phoneNumber;
+
+ /*
+ * Company Name
+ */
+ private String companyName;
+
+ /**
+ * Creates an instance of UserDetails class.
+ */
+ public UserDetails() {
+ }
+
+ /**
+ * Get the firstName property: First name of the user.
+ *
+ * @return the firstName value.
+ */
+ public String firstName() {
+ return this.firstName;
+ }
+
+ /**
+ * Set the firstName property: First name of the user.
+ *
+ * @param firstName the firstName value to set.
+ * @return the UserDetails object itself.
+ */
+ public UserDetails withFirstName(String firstName) {
+ this.firstName = firstName;
+ return this;
+ }
+
+ /**
+ * Get the lastName property: Last name of the user.
+ *
+ * @return the lastName value.
+ */
+ public String lastName() {
+ return this.lastName;
+ }
+
+ /**
+ * Set the lastName property: Last name of the user.
+ *
+ * @param lastName the lastName value to set.
+ * @return the UserDetails object itself.
+ */
+ public UserDetails withLastName(String lastName) {
+ this.lastName = lastName;
+ return this;
+ }
+
+ /**
+ * Get the emailAddress property: Email address of the user.
+ *
+ * @return the emailAddress value.
+ */
+ public String emailAddress() {
+ return this.emailAddress;
+ }
+
+ /**
+ * Set the emailAddress property: Email address of the user.
+ *
+ * @param emailAddress the emailAddress value to set.
+ * @return the UserDetails object itself.
+ */
+ public UserDetails withEmailAddress(String emailAddress) {
+ this.emailAddress = emailAddress;
+ return this;
+ }
+
+ /**
+ * Get the upn property: User's principal name.
+ *
+ * @return the upn value.
+ */
+ public String upn() {
+ return this.upn;
+ }
+
+ /**
+ * Set the upn property: User's principal name.
+ *
+ * @param upn the upn value to set.
+ * @return the UserDetails object itself.
+ */
+ public UserDetails withUpn(String upn) {
+ this.upn = upn;
+ return this;
+ }
+
+ /**
+ * Get the phoneNumber property: User's phone number.
+ *
+ * @return the phoneNumber value.
+ */
+ public String phoneNumber() {
+ return this.phoneNumber;
+ }
+
+ /**
+ * Set the phoneNumber property: User's phone number.
+ *
+ * @param phoneNumber the phoneNumber value to set.
+ * @return the UserDetails object itself.
+ */
+ public UserDetails withPhoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ return this;
+ }
+
+ /**
+ * Get the companyName property: Company Name.
+ *
+ * @return the companyName value.
+ */
+ public String companyName() {
+ return this.companyName;
+ }
+
+ /**
+ * Set the companyName property: Company Name.
+ *
+ * @param companyName the companyName value to set.
+ * @return the UserDetails object itself.
+ */
+ public UserDetails withCompanyName(String companyName) {
+ this.companyName = companyName;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (firstName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property firstName in model UserDetails"));
+ }
+ if (lastName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property lastName in model UserDetails"));
+ }
+ if (emailAddress() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property emailAddress in model UserDetails"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(UserDetails.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("firstName", this.firstName);
+ jsonWriter.writeStringField("lastName", this.lastName);
+ jsonWriter.writeStringField("emailAddress", this.emailAddress);
+ jsonWriter.writeStringField("upn", this.upn);
+ jsonWriter.writeStringField("phoneNumber", this.phoneNumber);
+ jsonWriter.writeStringField("companyName", this.companyName);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of UserDetails from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of UserDetails 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 UserDetails.
+ */
+ public static UserDetails fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ UserDetails deserializedUserDetails = new UserDetails();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("firstName".equals(fieldName)) {
+ deserializedUserDetails.firstName = reader.getString();
+ } else if ("lastName".equals(fieldName)) {
+ deserializedUserDetails.lastName = reader.getString();
+ } else if ("emailAddress".equals(fieldName)) {
+ deserializedUserDetails.emailAddress = reader.getString();
+ } else if ("upn".equals(fieldName)) {
+ deserializedUserDetails.upn = reader.getString();
+ } else if ("phoneNumber".equals(fieldName)) {
+ deserializedUserDetails.phoneNumber = reader.getString();
+ } else if ("companyName".equals(fieldName)) {
+ deserializedUserDetails.companyName = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedUserDetails;
+ });
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/package-info.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/package-info.java
new file mode 100644
index 000000000000..53e7921cb7c2
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/models/package-info.java
@@ -0,0 +1,8 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the data models for MongoDBAtlas.
+ */
+package com.azure.resourcemanager.mongodbatlas.models;
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/package-info.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/package-info.java
new file mode 100644
index 000000000000..582d5ad10729
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/package-info.java
@@ -0,0 +1,8 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the classes for MongoDBAtlas.
+ */
+package com.azure.resourcemanager.mongodbatlas;
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/module-info.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/module-info.java
new file mode 100644
index 000000000000..37119d236913
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/module-info.java
@@ -0,0 +1,16 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+module com.azure.resourcemanager.mongodbatlas {
+ requires transitive com.azure.core.management;
+
+ exports com.azure.resourcemanager.mongodbatlas;
+ exports com.azure.resourcemanager.mongodbatlas.fluent;
+ exports com.azure.resourcemanager.mongodbatlas.fluent.models;
+ exports com.azure.resourcemanager.mongodbatlas.models;
+
+ opens com.azure.resourcemanager.mongodbatlas.fluent.models to com.azure.core;
+ opens com.azure.resourcemanager.mongodbatlas.models to com.azure.core;
+ opens com.azure.resourcemanager.mongodbatlas.implementation.models to com.azure.core;
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-mongodbatlas/proxy-config.json b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-mongodbatlas/proxy-config.json
new file mode 100644
index 000000000000..432ca1b05c40
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-mongodbatlas/proxy-config.json
@@ -0,0 +1 @@
+[["com.azure.resourcemanager.mongodbatlas.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.mongodbatlas.implementation.OrganizationsClientImpl$OrganizationsService"]]
\ No newline at end of file
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-mongodbatlas/reflect-config.json b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-mongodbatlas/reflect-config.json
new file mode 100644
index 000000000000..0637a088a01e
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-mongodbatlas/reflect-config.json
@@ -0,0 +1 @@
+[]
\ No newline at end of file
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/resources/azure-resourcemanager-mongodbatlas.properties b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/resources/azure-resourcemanager-mongodbatlas.properties
new file mode 100644
index 000000000000..defbd48204e4
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/resources/azure-resourcemanager-mongodbatlas.properties
@@ -0,0 +1 @@
+version=${project.version}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OperationsListSamples.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OperationsListSamples.java
new file mode 100644
index 000000000000..1bba34acc784
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OperationsListSamples.java
@@ -0,0 +1,34 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+/**
+ * Samples for Operations List.
+ */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: 2024-11-18-preview/Operations_List_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: Operations_List_MinimumSet.
+ *
+ * @param manager Entry point to MongoDBAtlasManager.
+ */
+ public static void operationsListMinimumSet(com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2024-11-18-preview/Operations_List_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Operations_List_MaximumSet.
+ *
+ * @param manager Entry point to MongoDBAtlasManager.
+ */
+ public static void operationsListMaximumSet(com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsCreateOrUpdateSamples.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsCreateOrUpdateSamples.java
new file mode 100644
index 000000000000..a065d2a6124f
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsCreateOrUpdateSamples.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.mongodbatlas.models.MarketplaceDetails;
+import com.azure.resourcemanager.mongodbatlas.models.OfferDetails;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationProperties;
+import com.azure.resourcemanager.mongodbatlas.models.PartnerProperties;
+import com.azure.resourcemanager.mongodbatlas.models.UserDetails;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Organizations CreateOrUpdate.
+ */
+public final class OrganizationsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2024-11-18-preview/Organizations_CreateOrUpdate_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Organizations_CreateOrUpdate_MaximumSet.
+ *
+ * @param manager Entry point to MongoDBAtlasManager.
+ */
+ public static void
+ organizationsCreateOrUpdateMaximumSet(com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager manager) {
+ manager.organizations()
+ .define("U.1-:7")
+ .withRegion("wobqn")
+ .withExistingResourceGroup("rgopenapi")
+ .withTags(mapOf())
+ .withProperties(new OrganizationProperties()
+ .withMarketplace(new MarketplaceDetails().withSubscriptionId("o")
+ .withOfferDetails(new OfferDetails().withPublisherId("rxglearenxsgpwzlsxmiicynks")
+ .withOfferId("ohnquleylybvjrtnpjupvwlk")
+ .withPlanId("obhxnhvrtbcnoovgofbs")
+ .withPlanName("lkwdzpfhvjezjusrqzyftcikxdt")
+ .withTermUnit("omkxrnburbnruglwqgjlahvjmbfcse")
+ .withTermId("bqmmltwmtpdcdeszbka")))
+ .withUser(new UserDetails().withFirstName("aslybvdwwddqxwazxvxhjrs")
+ .withLastName("cnuitqoqpcyvmuqowgnxpwxjcveyr")
+ .withEmailAddress(".K_@e7N-g1.xjqnbPs")
+ .withUpn("howdzmfy")
+ .withPhoneNumber("ilypntsrbmbbbexbasuu")
+ .withCompanyName("oxdcwwl"))
+ .withPartnerProperties(new PartnerProperties().withOrganizationId("lyombjlhvwxithkiy")
+ .withRedirectUrl("cbxwtehraetlluocdihfgchvjzockn")
+ .withOrganizationName("U.1-:7")))
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf()))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsDeleteSamples.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsDeleteSamples.java
new file mode 100644
index 000000000000..af6f9891c527
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsDeleteSamples.java
@@ -0,0 +1,23 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+/**
+ * Samples for Organizations Delete.
+ */
+public final class OrganizationsDeleteSamples {
+ /*
+ * x-ms-original-file: 2024-11-18-preview/Organizations_Delete_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Organizations_Delete_MaximumSet.
+ *
+ * @param manager Entry point to MongoDBAtlasManager.
+ */
+ public static void
+ organizationsDeleteMaximumSet(com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager manager) {
+ manager.organizations().delete("rgopenapi", "U.1-:7", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsGetByResourceGroupSamples.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsGetByResourceGroupSamples.java
new file mode 100644
index 000000000000..263ad8d997cb
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsGetByResourceGroupSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+/**
+ * Samples for Organizations GetByResourceGroup.
+ */
+public final class OrganizationsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2024-11-18-preview/Organizations_Get_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Organizations_Get_MaximumSet.
+ *
+ * @param manager Entry point to MongoDBAtlasManager.
+ */
+ public static void organizationsGetMaximumSet(com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager manager) {
+ manager.organizations().getByResourceGroupWithResponse("rgopenapi", "U.1-:7", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListByResourceGroupSamples.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListByResourceGroupSamples.java
new file mode 100644
index 000000000000..1fe64938d0df
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListByResourceGroupSamples.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+/**
+ * Samples for Organizations ListByResourceGroup.
+ */
+public final class OrganizationsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2024-11-18-preview/Organizations_ListByResourceGroup_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Organizations_ListByResourceGroup_MaximumSet.
+ *
+ * @param manager Entry point to MongoDBAtlasManager.
+ */
+ public static void
+ organizationsListByResourceGroupMaximumSet(com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager manager) {
+ manager.organizations().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2024-11-18-preview/Organizations_ListByResourceGroup_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: Organizations_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule.
+ *
+ * @param manager Entry point to MongoDBAtlasManager.
+ */
+ public static void organizationsListByResourceGroupMaximumSetGeneratedByMinimumSetRule(
+ com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager manager) {
+ manager.organizations().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListSamples.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListSamples.java
new file mode 100644
index 000000000000..7512aeec8fa0
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListSamples.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+/**
+ * Samples for Organizations List.
+ */
+public final class OrganizationsListSamples {
+ /*
+ * x-ms-original-file: 2024-11-18-preview/Organizations_ListBySubscription_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Organizations_ListBySubscription_MaximumSet.
+ *
+ * @param manager Entry point to MongoDBAtlasManager.
+ */
+ public static void
+ organizationsListBySubscriptionMaximumSet(com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager manager) {
+ manager.organizations().list(com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2024-11-18-preview/Organizations_ListBySubscription_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: Organizations_ListBySubscription_MaximumSet - generated by [MinimumSet] rule.
+ *
+ * @param manager Entry point to MongoDBAtlasManager.
+ */
+ public static void organizationsListBySubscriptionMaximumSetGeneratedByMinimumSetRule(
+ com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager manager) {
+ manager.organizations().list(com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsUpdateSamples.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsUpdateSamples.java
new file mode 100644
index 000000000000..a576ebd5e4b9
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/samples/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsUpdateSamples.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationProperties;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationResource;
+import com.azure.resourcemanager.mongodbatlas.models.PartnerProperties;
+import com.azure.resourcemanager.mongodbatlas.models.UserDetails;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Organizations Update.
+ */
+public final class OrganizationsUpdateSamples {
+ /*
+ * x-ms-original-file: 2024-11-18-preview/Organizations_Update_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Organizations_Update_MaximumSet.
+ *
+ * @param manager Entry point to MongoDBAtlasManager.
+ */
+ public static void
+ organizationsUpdateMaximumSet(com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager manager) {
+ OrganizationResource resource = manager.organizations()
+ .getByResourceGroupWithResponse("rgopenapi", "U.1-:7", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withTags(mapOf())
+ .withProperties(new OrganizationProperties()
+ .withUser(new UserDetails().withFirstName("btyhwmlbzzihjfimviefebg")
+ .withLastName("xx")
+ .withEmailAddress(".K_@e7N-g1.xjqnbPs")
+ .withUpn("mxtbogd")
+ .withPhoneNumber("isvc")
+ .withCompanyName("oztteysco"))
+ .withPartnerProperties(new PartnerProperties().withOrganizationId("vugtqrobendjkinziswxlqueouo")
+ .withRedirectUrl("cbxwtehraetlluocdihfgchvjzockn")
+ .withOrganizationName("U.1-:7")))
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf()))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/ManagedServiceIdentityTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/ManagedServiceIdentityTests.java
new file mode 100644
index 000000000000..652688ae5b44
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/ManagedServiceIdentityTests.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.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.mongodbatlas.models.UserAssignedIdentity;
+import java.util.HashMap;
+import java.util.Map;
+import org.junit.jupiter.api.Assertions;
+
+public final class ManagedServiceIdentityTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ ManagedServiceIdentity model = BinaryData.fromString(
+ "{\"principalId\":\"pbhtqqrolfpfpsa\",\"tenantId\":\"bquxigjy\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"xilnerku\":{\"principalId\":\"o\",\"clientId\":\"hr\"},\"fqawrlyxw\":{\"principalId\":\"s\",\"clientId\":\"eju\"},\"vpys\":{\"principalId\":\"cpr\",\"clientId\":\"wbxgjvt\"}}}")
+ .toObject(ManagedServiceIdentity.class);
+ Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type());
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ ManagedServiceIdentity model
+ = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("xilnerku", new UserAssignedIdentity(), "fqawrlyxw",
+ new UserAssignedIdentity(), "vpys", new UserAssignedIdentity()));
+ model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class);
+ Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type());
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/MarketplaceDetailsTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/MarketplaceDetailsTests.java
new file mode 100644
index 000000000000..0a33d187b07e
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/MarketplaceDetailsTests.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.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.models.MarketplaceDetails;
+import com.azure.resourcemanager.mongodbatlas.models.OfferDetails;
+import org.junit.jupiter.api.Assertions;
+
+public final class MarketplaceDetailsTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ MarketplaceDetails model = BinaryData.fromString(
+ "{\"subscriptionId\":\"feusnhut\",\"subscriptionStatus\":\"Subscribed\",\"offerDetails\":{\"publisherId\":\"tmrldhugjzzdatq\",\"offerId\":\"hocdgeab\",\"planId\":\"gphuticndvka\",\"planName\":\"wyiftyhxhur\",\"termUnit\":\"ftyxolniw\",\"termId\":\"cukjf\"}}")
+ .toObject(MarketplaceDetails.class);
+ Assertions.assertEquals("feusnhut", model.subscriptionId());
+ Assertions.assertEquals("tmrldhugjzzdatq", model.offerDetails().publisherId());
+ Assertions.assertEquals("hocdgeab", model.offerDetails().offerId());
+ Assertions.assertEquals("gphuticndvka", model.offerDetails().planId());
+ Assertions.assertEquals("wyiftyhxhur", model.offerDetails().planName());
+ Assertions.assertEquals("ftyxolniw", model.offerDetails().termUnit());
+ Assertions.assertEquals("cukjf", model.offerDetails().termId());
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ MarketplaceDetails model = new MarketplaceDetails().withSubscriptionId("feusnhut")
+ .withOfferDetails(new OfferDetails().withPublisherId("tmrldhugjzzdatq")
+ .withOfferId("hocdgeab")
+ .withPlanId("gphuticndvka")
+ .withPlanName("wyiftyhxhur")
+ .withTermUnit("ftyxolniw")
+ .withTermId("cukjf"));
+ model = BinaryData.fromObject(model).toObject(MarketplaceDetails.class);
+ Assertions.assertEquals("feusnhut", model.subscriptionId());
+ Assertions.assertEquals("tmrldhugjzzdatq", model.offerDetails().publisherId());
+ Assertions.assertEquals("hocdgeab", model.offerDetails().offerId());
+ Assertions.assertEquals("gphuticndvka", model.offerDetails().planId());
+ Assertions.assertEquals("wyiftyhxhur", model.offerDetails().planName());
+ Assertions.assertEquals("ftyxolniw", model.offerDetails().termUnit());
+ Assertions.assertEquals("cukjf", model.offerDetails().termId());
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OfferDetailsTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OfferDetailsTests.java
new file mode 100644
index 000000000000..759e8f9f0bff
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OfferDetailsTests.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.models.OfferDetails;
+import org.junit.jupiter.api.Assertions;
+
+public final class OfferDetailsTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ OfferDetails model = BinaryData.fromString(
+ "{\"publisherId\":\"giawx\",\"offerId\":\"lryplwckbasyy\",\"planId\":\"nddhsgcbacph\",\"planName\":\"koty\",\"termUnit\":\"gou\",\"termId\":\"ndlik\"}")
+ .toObject(OfferDetails.class);
+ Assertions.assertEquals("giawx", model.publisherId());
+ Assertions.assertEquals("lryplwckbasyy", model.offerId());
+ Assertions.assertEquals("nddhsgcbacph", model.planId());
+ Assertions.assertEquals("koty", model.planName());
+ Assertions.assertEquals("gou", model.termUnit());
+ Assertions.assertEquals("ndlik", model.termId());
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ OfferDetails model = new OfferDetails().withPublisherId("giawx")
+ .withOfferId("lryplwckbasyy")
+ .withPlanId("nddhsgcbacph")
+ .withPlanName("koty")
+ .withTermUnit("gou")
+ .withTermId("ndlik");
+ model = BinaryData.fromObject(model).toObject(OfferDetails.class);
+ Assertions.assertEquals("giawx", model.publisherId());
+ Assertions.assertEquals("lryplwckbasyy", model.offerId());
+ Assertions.assertEquals("nddhsgcbacph", model.planId());
+ Assertions.assertEquals("koty", model.planName());
+ Assertions.assertEquals("gou", model.termUnit());
+ Assertions.assertEquals("ndlik", model.termId());
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationDisplayTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationDisplayTests.java
new file mode 100644
index 000000000000..3660652da527
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationDisplayTests.java
@@ -0,0 +1,17 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.models.OperationDisplay;
+
+public final class OperationDisplayTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ OperationDisplay model = BinaryData.fromString(
+ "{\"provider\":\"cdm\",\"resource\":\"rcryuanzwuxzdxta\",\"operation\":\"lhmwhfpmrqobm\",\"description\":\"kknryrtihf\"}")
+ .toObject(OperationDisplay.class);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationInnerTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationInnerTests.java
new file mode 100644
index 000000000000..2d4c0e7b8db9
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationInnerTests.java
@@ -0,0 +1,17 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OperationInner;
+
+public final class OperationInnerTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ OperationInner model = BinaryData.fromString(
+ "{\"name\":\"nygj\",\"isDataAction\":true,\"display\":{\"provider\":\"eqsrdeupewnwreit\",\"resource\":\"yflusarhmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}")
+ .toObject(OperationInner.class);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationListResultTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationListResultTests.java
new file mode 100644
index 000000000000..17191b272ea9
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationListResultTests.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 com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.implementation.models.OperationListResult;
+import org.junit.jupiter.api.Assertions;
+
+public final class OperationListResultTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ OperationListResult model = BinaryData.fromString(
+ "{\"value\":[{\"name\":\"hq\",\"isDataAction\":true,\"display\":{\"provider\":\"pybczmehmtzopb\",\"resource\":\"h\",\"operation\":\"pidgsybbejhphoyc\",\"description\":\"xaobhdxbmtqioqjz\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"fpownoizhwlr\",\"isDataAction\":false,\"display\":{\"provider\":\"oqijgkdmbpaz\",\"resource\":\"bc\",\"operation\":\"pdznrbtcqqjnqgl\",\"description\":\"gnufoooj\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"esaagdfm\",\"isDataAction\":true,\"display\":{\"provider\":\"j\",\"resource\":\"ifkwmrvktsizntoc\",\"operation\":\"a\",\"description\":\"ajpsquc\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"kfo\"}")
+ .toObject(OperationListResult.class);
+ Assertions.assertEquals("kfo", model.nextLink());
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationsListMockTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationsListMockTests.java
new file mode 100644
index 000000000000..8064f187170a
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OperationsListMockTests.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.credential.AccessToken;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
+import com.azure.core.test.http.MockHttpResponse;
+import com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager;
+import com.azure.resourcemanager.mongodbatlas.models.Operation;
+import java.nio.charset.StandardCharsets;
+import java.time.OffsetDateTime;
+import org.junit.jupiter.api.Test;
+import reactor.core.publisher.Mono;
+
+public final class OperationsListMockTests {
+ @Test
+ public void testList() throws Exception {
+ String responseStr
+ = "{\"value\":[{\"name\":\"w\",\"isDataAction\":true,\"display\":{\"provider\":\"tgzfbishcbkh\",\"resource\":\"deyeamdphagalpbu\",\"operation\":\"gipwhonowkg\",\"description\":\"wankixzbi\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}";
+
+ HttpClient httpClient
+ = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
+ MongoDBAtlasManager manager = MongoDBAtlasManager.configure()
+ .withHttpClient(httpClient)
+ .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
+
+ PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE);
+
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationPropertiesTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationPropertiesTests.java
new file mode 100644
index 000000000000..29b1801a78cd
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationPropertiesTests.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.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.models.MarketplaceDetails;
+import com.azure.resourcemanager.mongodbatlas.models.OfferDetails;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationProperties;
+import com.azure.resourcemanager.mongodbatlas.models.PartnerProperties;
+import com.azure.resourcemanager.mongodbatlas.models.UserDetails;
+import org.junit.jupiter.api.Assertions;
+
+public final class OrganizationPropertiesTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ OrganizationProperties model = BinaryData.fromString(
+ "{\"marketplace\":{\"subscriptionId\":\"zrnf\",\"subscriptionStatus\":\"Unsubscribed\",\"offerDetails\":{\"publisherId\":\"gispemvtzfkufubl\",\"offerId\":\"ofx\",\"planId\":\"eofjaeqjh\",\"planName\":\"b\",\"termUnit\":\"v\",\"termId\":\"mjqulngsn\"}},\"user\":{\"firstName\":\"nbybkzgcwrwcl\",\"lastName\":\"xwrljdouskcqvkoc\",\"emailAddress\":\"cjdkwtnhxbnjbi\",\"upn\":\"qrglssainqpjwn\",\"phoneNumber\":\"ljfmppee\",\"companyName\":\"mgxsab\"},\"provisioningState\":\"Canceled\",\"partnerProperties\":{\"organizationId\":\"ujitcjcz\",\"redirectUrl\":\"evndh\",\"organizationName\":\"rwpdappdsbdkvwrw\"}}")
+ .toObject(OrganizationProperties.class);
+ Assertions.assertEquals("zrnf", model.marketplace().subscriptionId());
+ Assertions.assertEquals("gispemvtzfkufubl", model.marketplace().offerDetails().publisherId());
+ Assertions.assertEquals("ofx", model.marketplace().offerDetails().offerId());
+ Assertions.assertEquals("eofjaeqjh", model.marketplace().offerDetails().planId());
+ Assertions.assertEquals("b", model.marketplace().offerDetails().planName());
+ Assertions.assertEquals("v", model.marketplace().offerDetails().termUnit());
+ Assertions.assertEquals("mjqulngsn", model.marketplace().offerDetails().termId());
+ Assertions.assertEquals("nbybkzgcwrwcl", model.user().firstName());
+ Assertions.assertEquals("xwrljdouskcqvkoc", model.user().lastName());
+ Assertions.assertEquals("cjdkwtnhxbnjbi", model.user().emailAddress());
+ Assertions.assertEquals("qrglssainqpjwn", model.user().upn());
+ Assertions.assertEquals("ljfmppee", model.user().phoneNumber());
+ Assertions.assertEquals("mgxsab", model.user().companyName());
+ Assertions.assertEquals("ujitcjcz", model.partnerProperties().organizationId());
+ Assertions.assertEquals("evndh", model.partnerProperties().redirectUrl());
+ Assertions.assertEquals("rwpdappdsbdkvwrw", model.partnerProperties().organizationName());
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ OrganizationProperties model = new OrganizationProperties()
+ .withMarketplace(new MarketplaceDetails().withSubscriptionId("zrnf")
+ .withOfferDetails(new OfferDetails().withPublisherId("gispemvtzfkufubl")
+ .withOfferId("ofx")
+ .withPlanId("eofjaeqjh")
+ .withPlanName("b")
+ .withTermUnit("v")
+ .withTermId("mjqulngsn")))
+ .withUser(new UserDetails().withFirstName("nbybkzgcwrwcl")
+ .withLastName("xwrljdouskcqvkoc")
+ .withEmailAddress("cjdkwtnhxbnjbi")
+ .withUpn("qrglssainqpjwn")
+ .withPhoneNumber("ljfmppee")
+ .withCompanyName("mgxsab"))
+ .withPartnerProperties(new PartnerProperties().withOrganizationId("ujitcjcz")
+ .withRedirectUrl("evndh")
+ .withOrganizationName("rwpdappdsbdkvwrw"));
+ model = BinaryData.fromObject(model).toObject(OrganizationProperties.class);
+ Assertions.assertEquals("zrnf", model.marketplace().subscriptionId());
+ Assertions.assertEquals("gispemvtzfkufubl", model.marketplace().offerDetails().publisherId());
+ Assertions.assertEquals("ofx", model.marketplace().offerDetails().offerId());
+ Assertions.assertEquals("eofjaeqjh", model.marketplace().offerDetails().planId());
+ Assertions.assertEquals("b", model.marketplace().offerDetails().planName());
+ Assertions.assertEquals("v", model.marketplace().offerDetails().termUnit());
+ Assertions.assertEquals("mjqulngsn", model.marketplace().offerDetails().termId());
+ Assertions.assertEquals("nbybkzgcwrwcl", model.user().firstName());
+ Assertions.assertEquals("xwrljdouskcqvkoc", model.user().lastName());
+ Assertions.assertEquals("cjdkwtnhxbnjbi", model.user().emailAddress());
+ Assertions.assertEquals("qrglssainqpjwn", model.user().upn());
+ Assertions.assertEquals("ljfmppee", model.user().phoneNumber());
+ Assertions.assertEquals("mgxsab", model.user().companyName());
+ Assertions.assertEquals("ujitcjcz", model.partnerProperties().organizationId());
+ Assertions.assertEquals("evndh", model.partnerProperties().redirectUrl());
+ Assertions.assertEquals("rwpdappdsbdkvwrw", model.partnerProperties().organizationName());
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationResourceInnerTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationResourceInnerTests.java
new file mode 100644
index 000000000000..b330aea7aeb8
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationResourceInnerTests.java
@@ -0,0 +1,106 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.fluent.models.OrganizationResourceInner;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.mongodbatlas.models.MarketplaceDetails;
+import com.azure.resourcemanager.mongodbatlas.models.OfferDetails;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationProperties;
+import com.azure.resourcemanager.mongodbatlas.models.PartnerProperties;
+import com.azure.resourcemanager.mongodbatlas.models.UserAssignedIdentity;
+import com.azure.resourcemanager.mongodbatlas.models.UserDetails;
+import java.util.HashMap;
+import java.util.Map;
+import org.junit.jupiter.api.Assertions;
+
+public final class OrganizationResourceInnerTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ OrganizationResourceInner model = BinaryData.fromString(
+ "{\"properties\":{\"marketplace\":{\"subscriptionId\":\"ijbpzvgnwzsymgl\",\"subscriptionStatus\":\"Unsubscribed\",\"offerDetails\":{\"publisherId\":\"cyzkohdbihanuf\",\"offerId\":\"fcbjysagithxqha\",\"planId\":\"ifpikxwczby\",\"planName\":\"npqxuh\",\"termUnit\":\"y\",\"termId\":\"iwbybrkxvdumjg\"}},\"user\":{\"firstName\":\"tfwvukxgaudc\",\"lastName\":\"snhsjcnyejhkryh\",\"emailAddress\":\"napczwlokjy\",\"upn\":\"kkvnipjox\",\"phoneNumber\":\"nchgej\",\"companyName\":\"odmailzyd\"},\"provisioningState\":\"Succeeded\",\"partnerProperties\":{\"organizationId\":\"yahux\",\"redirectUrl\":\"pmqnja\",\"organizationName\":\"wixjsprozvcp\"}},\"identity\":{\"principalId\":\"gjvw\",\"tenantId\":\"datscmd\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"jdpvwryo\":{\"principalId\":\"lsuuvmkjozkrwfnd\",\"clientId\":\"djpslw\"},\"yffdfdos\":{\"principalId\":\"soacctazakl\",\"clientId\":\"ahbc\"},\"vdphlxaolthqtr\":{\"principalId\":\"expa\",\"clientId\":\"akhmsbzjhcrz\"},\"tfell\":{\"principalId\":\"jbp\",\"clientId\":\"fsinzgvfcjrwzoxx\"}}},\"location\":\"fziton\",\"tags\":{\"vhpfxxypininmay\":\"fpjkjlxofp\",\"oginuvamiheognar\":\"uybbkpodep\"},\"id\":\"zxtheotusivyevcc\",\"name\":\"qi\",\"type\":\"nhungbw\"}")
+ .toObject(OrganizationResourceInner.class);
+ Assertions.assertEquals("fziton", model.location());
+ Assertions.assertEquals("fpjkjlxofp", model.tags().get("vhpfxxypininmay"));
+ Assertions.assertEquals("ijbpzvgnwzsymgl", model.properties().marketplace().subscriptionId());
+ Assertions.assertEquals("cyzkohdbihanuf", model.properties().marketplace().offerDetails().publisherId());
+ Assertions.assertEquals("fcbjysagithxqha", model.properties().marketplace().offerDetails().offerId());
+ Assertions.assertEquals("ifpikxwczby", model.properties().marketplace().offerDetails().planId());
+ Assertions.assertEquals("npqxuh", model.properties().marketplace().offerDetails().planName());
+ Assertions.assertEquals("y", model.properties().marketplace().offerDetails().termUnit());
+ Assertions.assertEquals("iwbybrkxvdumjg", model.properties().marketplace().offerDetails().termId());
+ Assertions.assertEquals("tfwvukxgaudc", model.properties().user().firstName());
+ Assertions.assertEquals("snhsjcnyejhkryh", model.properties().user().lastName());
+ Assertions.assertEquals("napczwlokjy", model.properties().user().emailAddress());
+ Assertions.assertEquals("kkvnipjox", model.properties().user().upn());
+ Assertions.assertEquals("nchgej", model.properties().user().phoneNumber());
+ Assertions.assertEquals("odmailzyd", model.properties().user().companyName());
+ Assertions.assertEquals("yahux", model.properties().partnerProperties().organizationId());
+ Assertions.assertEquals("pmqnja", model.properties().partnerProperties().redirectUrl());
+ Assertions.assertEquals("wixjsprozvcp", model.properties().partnerProperties().organizationName());
+ Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.identity().type());
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ OrganizationResourceInner model = new OrganizationResourceInner().withLocation("fziton")
+ .withTags(mapOf("vhpfxxypininmay", "fpjkjlxofp", "oginuvamiheognar", "uybbkpodep"))
+ .withProperties(new OrganizationProperties()
+ .withMarketplace(new MarketplaceDetails().withSubscriptionId("ijbpzvgnwzsymgl")
+ .withOfferDetails(new OfferDetails().withPublisherId("cyzkohdbihanuf")
+ .withOfferId("fcbjysagithxqha")
+ .withPlanId("ifpikxwczby")
+ .withPlanName("npqxuh")
+ .withTermUnit("y")
+ .withTermId("iwbybrkxvdumjg")))
+ .withUser(new UserDetails().withFirstName("tfwvukxgaudc")
+ .withLastName("snhsjcnyejhkryh")
+ .withEmailAddress("napczwlokjy")
+ .withUpn("kkvnipjox")
+ .withPhoneNumber("nchgej")
+ .withCompanyName("odmailzyd"))
+ .withPartnerProperties(new PartnerProperties().withOrganizationId("yahux")
+ .withRedirectUrl("pmqnja")
+ .withOrganizationName("wixjsprozvcp")))
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf("jdpvwryo", new UserAssignedIdentity(), "yffdfdos", new UserAssignedIdentity(),
+ "vdphlxaolthqtr", new UserAssignedIdentity(), "tfell", new UserAssignedIdentity())));
+ model = BinaryData.fromObject(model).toObject(OrganizationResourceInner.class);
+ Assertions.assertEquals("fziton", model.location());
+ Assertions.assertEquals("fpjkjlxofp", model.tags().get("vhpfxxypininmay"));
+ Assertions.assertEquals("ijbpzvgnwzsymgl", model.properties().marketplace().subscriptionId());
+ Assertions.assertEquals("cyzkohdbihanuf", model.properties().marketplace().offerDetails().publisherId());
+ Assertions.assertEquals("fcbjysagithxqha", model.properties().marketplace().offerDetails().offerId());
+ Assertions.assertEquals("ifpikxwczby", model.properties().marketplace().offerDetails().planId());
+ Assertions.assertEquals("npqxuh", model.properties().marketplace().offerDetails().planName());
+ Assertions.assertEquals("y", model.properties().marketplace().offerDetails().termUnit());
+ Assertions.assertEquals("iwbybrkxvdumjg", model.properties().marketplace().offerDetails().termId());
+ Assertions.assertEquals("tfwvukxgaudc", model.properties().user().firstName());
+ Assertions.assertEquals("snhsjcnyejhkryh", model.properties().user().lastName());
+ Assertions.assertEquals("napczwlokjy", model.properties().user().emailAddress());
+ Assertions.assertEquals("kkvnipjox", model.properties().user().upn());
+ Assertions.assertEquals("nchgej", model.properties().user().phoneNumber());
+ Assertions.assertEquals("odmailzyd", model.properties().user().companyName());
+ Assertions.assertEquals("yahux", model.properties().partnerProperties().organizationId());
+ Assertions.assertEquals("pmqnja", model.properties().partnerProperties().redirectUrl());
+ Assertions.assertEquals("wixjsprozvcp", model.properties().partnerProperties().organizationName());
+ Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.identity().type());
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationResourceListResultTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationResourceListResultTests.java
new file mode 100644
index 000000000000..3b2902438330
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationResourceListResultTests.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.implementation.models.OrganizationResourceListResult;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentityType;
+import org.junit.jupiter.api.Assertions;
+
+public final class OrganizationResourceListResultTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ OrganizationResourceListResult model = BinaryData.fromString(
+ "{\"value\":[{\"properties\":{\"marketplace\":{\"subscriptionId\":\"uitnwuiz\",\"subscriptionStatus\":\"Subscribed\",\"offerDetails\":{\"publisherId\":\"x\",\"offerId\":\"fizuckyf\",\"planId\":\"hr\",\"planName\":\"dfvzwdzuhty\",\"termUnit\":\"isdkfthwxmnteiw\",\"termId\":\"pvkmijcmmxdcuf\"}},\"user\":{\"firstName\":\"fsrpymzidnse\",\"lastName\":\"cxtbzsg\",\"emailAddress\":\"yc\",\"upn\":\"newmdwzjeiachbo\",\"phoneNumber\":\"flnrosfqpteehzz\",\"companyName\":\"pyqr\"},\"provisioningState\":\"Succeeded\",\"partnerProperties\":{\"organizationId\":\"pvswjdkirso\",\"redirectUrl\":\"qxhcrmn\",\"organizationName\":\"hjtckwhd\"}},\"identity\":{\"principalId\":\"fiyipjxsqwpgrj\",\"tenantId\":\"norcjxvsnbyxqab\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"jmkljavbqidtqajz\":{\"principalId\":\"cyshurzafbljjgp\",\"clientId\":\"oq\"}}},\"location\":\"l\",\"tags\":{\"rlkhbzhfepgzgq\":\"dj\"},\"id\":\"xzlocxscp\",\"name\":\"ierhhbcsglummaj\",\"type\":\"j\"},{\"properties\":{\"marketplace\":{\"subscriptionId\":\"dxob\",\"subscriptionStatus\":\"Subscribed\",\"offerDetails\":{\"publisherId\":\"xkqpxo\",\"offerId\":\"ajionpimexgstxg\",\"planId\":\"po\",\"planName\":\"maajrmvdjwzrlo\",\"termUnit\":\"clwhijcoejctbz\",\"termId\":\"s\"}},\"user\":{\"firstName\":\"sycbkbfk\",\"lastName\":\"ukdkexxppofmxa\",\"emailAddress\":\"c\",\"upn\":\"pg\",\"phoneNumber\":\"toc\",\"companyName\":\"xhvpmoue\"},\"provisioningState\":\"Failed\",\"partnerProperties\":{\"organizationId\":\"i\",\"redirectUrl\":\"eojnxqbzvddn\",\"organizationName\":\"wndeicbtwnp\"}},\"identity\":{\"principalId\":\"qvuhrhcffcyddglm\",\"tenantId\":\"hjq\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"xuigdtopbobj\":{\"principalId\":\"icxm\",\"clientId\":\"iwqvhkh\"},\"m\":{\"principalId\":\"hm\",\"clientId\":\"u\"},\"efgugnxk\":{\"principalId\":\"hrzayvvtpgvdf\",\"clientId\":\"otkftutqxlngx\"},\"hjybigehoqfbo\":{\"principalId\":\"dqmidtt\",\"clientId\":\"rvqdra\"}}},\"location\":\"kanyktzlcuiywg\",\"tags\":{\"gpphrcgyn\":\"gndrvynh\",\"fsxlzevgbmqjqa\":\"ocpecfvmmco\",\"pmivkwlzu\":\"c\",\"ebxetqgtzxdp\":\"ccfwnfnbacfion\"},\"id\":\"qbqqwxr\",\"name\":\"feallnwsu\",\"type\":\"isnjampmngnz\"},{\"properties\":{\"marketplace\":{\"subscriptionId\":\"xaqwoochcbonqv\",\"subscriptionStatus\":\"Unsubscribed\",\"offerDetails\":{\"publisherId\":\"lrxnjeaseiphe\",\"offerId\":\"f\",\"planId\":\"okeyyienj\",\"planName\":\"lwtgrhpdj\",\"termUnit\":\"umasxazjpq\",\"termId\":\"gual\"}},\"user\":{\"firstName\":\"b\",\"lastName\":\"xhejjzzvdud\",\"emailAddress\":\"wdslfhotwmcy\",\"upn\":\"wlbjnpgacftade\",\"phoneNumber\":\"nltyfsoppusuesnz\",\"companyName\":\"ej\"},\"provisioningState\":\"Succeeded\",\"partnerProperties\":{\"organizationId\":\"xzdmohctb\",\"redirectUrl\":\"udwxdndnvowguj\",\"organizationName\":\"ugw\"}},\"identity\":{\"principalId\":\"glhslazj\",\"tenantId\":\"ggd\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"fwhybcibvy\":{\"principalId\":\"b\",\"clientId\":\"ofqweykhmenevfye\"},\"scjeypv\":{\"principalId\":\"c\",\"clientId\":\"tynnaamdectehfi\"}}},\"location\":\"zrkgqhcjrefovg\",\"tags\":{\"yvxyqjp\":\"sle\"},\"id\":\"cattpngjcrcczsq\",\"name\":\"jh\",\"type\":\"mdajv\"},{\"properties\":{\"marketplace\":{\"subscriptionId\":\"sounqecanoaeu\",\"subscriptionStatus\":\"PendingFulfillmentStart\",\"offerDetails\":{\"publisherId\":\"yhltrpmopjmcm\",\"offerId\":\"tuo\",\"planId\":\"thfuiuaodsfcpkvx\",\"planName\":\"puozmyzydag\",\"termUnit\":\"axbezyiuo\",\"termId\":\"twhrdxwzywqsm\"}},\"user\":{\"firstName\":\"surex\",\"lastName\":\"moryocfsfksym\",\"emailAddress\":\"dystkiiuxhqyud\",\"upn\":\"rrqnbpoczvyifqrv\",\"phoneNumber\":\"vjsllrmvvdfw\",\"companyName\":\"kpnpulexxbczwtr\"},\"provisioningState\":\"Succeeded\",\"partnerProperties\":{\"organizationId\":\"bq\",\"redirectUrl\":\"sovmyokacspkwl\",\"organizationName\":\"zdobpxjmflbvvnch\"}},\"identity\":{\"principalId\":\"ciwwzjuqkhr\",\"tenantId\":\"jiwkuofoskghsau\",\"type\":\"None\",\"userAssignedIdentities\":{\"y\":{\"principalId\":\"vxieduugidyj\",\"clientId\":\"f\"},\"gz\":{\"principalId\":\"svexcsonpclhoco\",\"clientId\":\"lkevle\"}}},\"location\":\"u\",\"tags\":{\"vmezy\":\"vfaxkffeiith\",\"burvjxxjnspy\":\"shxmzsbbzoggigrx\",\"udwtiukbl\":\"ptkoenkoukn\",\"o\":\"ngkpocipazy\"},\"id\":\"gukgjnpiucgygevq\",\"name\":\"ntypmrbpizcdrqj\",\"type\":\"dpydn\"}],\"nextLink\":\"hxdeoejz\"}")
+ .toObject(OrganizationResourceListResult.class);
+ Assertions.assertEquals("l", model.value().get(0).location());
+ Assertions.assertEquals("dj", model.value().get(0).tags().get("rlkhbzhfepgzgq"));
+ Assertions.assertEquals("uitnwuiz", model.value().get(0).properties().marketplace().subscriptionId());
+ Assertions.assertEquals("x", model.value().get(0).properties().marketplace().offerDetails().publisherId());
+ Assertions.assertEquals("fizuckyf", model.value().get(0).properties().marketplace().offerDetails().offerId());
+ Assertions.assertEquals("hr", model.value().get(0).properties().marketplace().offerDetails().planId());
+ Assertions.assertEquals("dfvzwdzuhty",
+ model.value().get(0).properties().marketplace().offerDetails().planName());
+ Assertions.assertEquals("isdkfthwxmnteiw",
+ model.value().get(0).properties().marketplace().offerDetails().termUnit());
+ Assertions.assertEquals("pvkmijcmmxdcuf",
+ model.value().get(0).properties().marketplace().offerDetails().termId());
+ Assertions.assertEquals("fsrpymzidnse", model.value().get(0).properties().user().firstName());
+ Assertions.assertEquals("cxtbzsg", model.value().get(0).properties().user().lastName());
+ Assertions.assertEquals("yc", model.value().get(0).properties().user().emailAddress());
+ Assertions.assertEquals("newmdwzjeiachbo", model.value().get(0).properties().user().upn());
+ Assertions.assertEquals("flnrosfqpteehzz", model.value().get(0).properties().user().phoneNumber());
+ Assertions.assertEquals("pyqr", model.value().get(0).properties().user().companyName());
+ Assertions.assertEquals("pvswjdkirso", model.value().get(0).properties().partnerProperties().organizationId());
+ Assertions.assertEquals("qxhcrmn", model.value().get(0).properties().partnerProperties().redirectUrl());
+ Assertions.assertEquals("hjtckwhd", model.value().get(0).properties().partnerProperties().organizationName());
+ Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.value().get(0).identity().type());
+ Assertions.assertEquals("hxdeoejz", model.nextLink());
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsCreateOrUpdateMockTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsCreateOrUpdateMockTests.java
new file mode 100644
index 000000000000..ed053da693f7
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsCreateOrUpdateMockTests.java
@@ -0,0 +1,104 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.credential.AccessToken;
+import com.azure.core.http.HttpClient;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
+import com.azure.core.test.http.MockHttpResponse;
+import com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.mongodbatlas.models.MarketplaceDetails;
+import com.azure.resourcemanager.mongodbatlas.models.OfferDetails;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationProperties;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationResource;
+import com.azure.resourcemanager.mongodbatlas.models.PartnerProperties;
+import com.azure.resourcemanager.mongodbatlas.models.UserAssignedIdentity;
+import com.azure.resourcemanager.mongodbatlas.models.UserDetails;
+import java.nio.charset.StandardCharsets;
+import java.time.OffsetDateTime;
+import java.util.HashMap;
+import java.util.Map;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import reactor.core.publisher.Mono;
+
+public final class OrganizationsCreateOrUpdateMockTests {
+ @Test
+ public void testCreateOrUpdate() throws Exception {
+ String responseStr
+ = "{\"properties\":{\"marketplace\":{\"subscriptionId\":\"xisxyawjoyaqcsl\",\"subscriptionStatus\":\"PendingFulfillmentStart\",\"offerDetails\":{\"publisherId\":\"kiidzyex\",\"offerId\":\"nelixhnrztfo\",\"planId\":\"hb\",\"planName\":\"knalaulppg\",\"termUnit\":\"tpnapnyiropuhpig\",\"termId\":\"gylgqgitxmedjvcs\"}},\"user\":{\"firstName\":\"ynqwwncwzzhxgk\",\"lastName\":\"rmgucnap\",\"emailAddress\":\"t\",\"upn\":\"ellwptfdy\",\"phoneNumber\":\"fqbuaceopzf\",\"companyName\":\"hhuao\"},\"provisioningState\":\"Succeeded\",\"partnerProperties\":{\"organizationId\":\"eqx\",\"redirectUrl\":\"z\",\"organizationName\":\"ahzxctobgbk\"}},\"identity\":{\"principalId\":\"izpost\",\"tenantId\":\"rcfbunrm\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"u\":{\"principalId\":\"kxbpvj\",\"clientId\":\"jhxxjyn\"},\"j\":{\"principalId\":\"vkr\",\"clientId\":\"wbxqzvszjfau\"}}},\"location\":\"xxivetv\",\"tags\":{\"wvxysl\":\"aqtdoqmcbx\",\"ytkblmpew\":\"bhsfxob\",\"shqjohxcrsbf\":\"wfbkrvrns\",\"sqfsubcgjbirxb\":\"vasrruvwb\"},\"id\":\"ybsrfbjfdtwss\",\"name\":\"t\",\"type\":\"tpvjzbexilzznfqq\"}";
+
+ HttpClient httpClient
+ = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
+ MongoDBAtlasManager manager = MongoDBAtlasManager.configure()
+ .withHttpClient(httpClient)
+ .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
+
+ OrganizationResource response = manager.organizations()
+ .define("xcug")
+ .withRegion("jvzunluthnnp")
+ .withExistingResourceGroup("hashsfwxosow")
+ .withTags(
+ mapOf("eilpjzuaejxdu", "i", "pwo", "tskzbbtdzumveek", "fpbsjyofdxl", "uh", "ttouwaboekqvkel", "us"))
+ .withProperties(new OrganizationProperties()
+ .withMarketplace(new MarketplaceDetails().withSubscriptionId("jooxdjebw")
+ .withOfferDetails(new OfferDetails().withPublisherId("wwfvov")
+ .withOfferId("vmeueci")
+ .withPlanId("yhz")
+ .withPlanName("uojgj")
+ .withTermUnit("jueiotwmcdytd")
+ .withTermId("it")))
+ .withUser(new UserDetails().withFirstName("nrjawgqwg")
+ .withLastName("hniskxfbkpyc")
+ .withEmailAddress("klwndnhjdauwhv")
+ .withUpn("wzbtdhxu")
+ .withPhoneNumber("nbmpowuwprzq")
+ .withCompanyName("eualupjmkhf"))
+ .withPartnerProperties(new PartnerProperties().withOrganizationId("sw")
+ .withRedirectUrl("tjrip")
+ .withOrganizationName("rbpbewtghfgblcg")))
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(
+ mapOf("txon", new UserAssignedIdentity(), "uvriuhprwm", new UserAssignedIdentity(),
+ "nmefqsgzvahapj", new UserAssignedIdentity(), "xkvugfhzov", new UserAssignedIdentity())))
+ .create();
+
+ Assertions.assertEquals("xxivetv", response.location());
+ Assertions.assertEquals("aqtdoqmcbx", response.tags().get("wvxysl"));
+ Assertions.assertEquals("xisxyawjoyaqcsl", response.properties().marketplace().subscriptionId());
+ Assertions.assertEquals("kiidzyex", response.properties().marketplace().offerDetails().publisherId());
+ Assertions.assertEquals("nelixhnrztfo", response.properties().marketplace().offerDetails().offerId());
+ Assertions.assertEquals("hb", response.properties().marketplace().offerDetails().planId());
+ Assertions.assertEquals("knalaulppg", response.properties().marketplace().offerDetails().planName());
+ Assertions.assertEquals("tpnapnyiropuhpig", response.properties().marketplace().offerDetails().termUnit());
+ Assertions.assertEquals("gylgqgitxmedjvcs", response.properties().marketplace().offerDetails().termId());
+ Assertions.assertEquals("ynqwwncwzzhxgk", response.properties().user().firstName());
+ Assertions.assertEquals("rmgucnap", response.properties().user().lastName());
+ Assertions.assertEquals("t", response.properties().user().emailAddress());
+ Assertions.assertEquals("ellwptfdy", response.properties().user().upn());
+ Assertions.assertEquals("fqbuaceopzf", response.properties().user().phoneNumber());
+ Assertions.assertEquals("hhuao", response.properties().user().companyName());
+ Assertions.assertEquals("eqx", response.properties().partnerProperties().organizationId());
+ Assertions.assertEquals("z", response.properties().partnerProperties().redirectUrl());
+ Assertions.assertEquals("ahzxctobgbk", response.properties().partnerProperties().organizationName());
+ Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.identity().type());
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsGetByResourceGroupWithResponseMockTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsGetByResourceGroupWithResponseMockTests.java
new file mode 100644
index 000000000000..50ead46d44a1
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsGetByResourceGroupWithResponseMockTests.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.credential.AccessToken;
+import com.azure.core.http.HttpClient;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
+import com.azure.core.test.http.MockHttpResponse;
+import com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationResource;
+import java.nio.charset.StandardCharsets;
+import java.time.OffsetDateTime;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import reactor.core.publisher.Mono;
+
+public final class OrganizationsGetByResourceGroupWithResponseMockTests {
+ @Test
+ public void testGetByResourceGroupWithResponse() throws Exception {
+ String responseStr
+ = "{\"properties\":{\"marketplace\":{\"subscriptionId\":\"vyxlwhzlsicohoqq\",\"subscriptionStatus\":\"Unsubscribed\",\"offerDetails\":{\"publisherId\":\"lryav\",\"offerId\":\"hheunmmqhgyx\",\"planId\":\"konocu\",\"planName\":\"klyaxuconu\",\"termUnit\":\"zf\",\"termId\":\"eyp\"}},\"user\":{\"firstName\":\"wrmjmwvvjektc\",\"lastName\":\"senhwlrs\",\"emailAddress\":\"frzpwvlqdqgb\",\"upn\":\"ylihkaetckt\",\"phoneNumber\":\"civfsnkymuctq\",\"companyName\":\"fbebrjcxer\"},\"provisioningState\":\"Failed\",\"partnerProperties\":{\"organizationId\":\"ttxfvjr\",\"redirectUrl\":\"rp\",\"organizationName\":\"xepcyvahfn\"}},\"identity\":{\"principalId\":\"yq\",\"tenantId\":\"vuujq\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"jhtxfvgxbfsmxne\":{\"principalId\":\"gjljyoxgvc\",\"clientId\":\"bgsncghkjeszzhb\"}}},\"location\":\"pvecxgodeb\",\"tags\":{\"ukgri\":\"krbm\"},\"id\":\"flz\",\"name\":\"fbxzpuzycisp\",\"type\":\"qzahmgkbrp\"}";
+
+ HttpClient httpClient
+ = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
+ MongoDBAtlasManager manager = MongoDBAtlasManager.configure()
+ .withHttpClient(httpClient)
+ .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
+
+ OrganizationResource response = manager.organizations()
+ .getByResourceGroupWithResponse("ttmrywnuzoqf", "iyqzrnk", com.azure.core.util.Context.NONE)
+ .getValue();
+
+ Assertions.assertEquals("pvecxgodeb", response.location());
+ Assertions.assertEquals("krbm", response.tags().get("ukgri"));
+ Assertions.assertEquals("vyxlwhzlsicohoqq", response.properties().marketplace().subscriptionId());
+ Assertions.assertEquals("lryav", response.properties().marketplace().offerDetails().publisherId());
+ Assertions.assertEquals("hheunmmqhgyx", response.properties().marketplace().offerDetails().offerId());
+ Assertions.assertEquals("konocu", response.properties().marketplace().offerDetails().planId());
+ Assertions.assertEquals("klyaxuconu", response.properties().marketplace().offerDetails().planName());
+ Assertions.assertEquals("zf", response.properties().marketplace().offerDetails().termUnit());
+ Assertions.assertEquals("eyp", response.properties().marketplace().offerDetails().termId());
+ Assertions.assertEquals("wrmjmwvvjektc", response.properties().user().firstName());
+ Assertions.assertEquals("senhwlrs", response.properties().user().lastName());
+ Assertions.assertEquals("frzpwvlqdqgb", response.properties().user().emailAddress());
+ Assertions.assertEquals("ylihkaetckt", response.properties().user().upn());
+ Assertions.assertEquals("civfsnkymuctq", response.properties().user().phoneNumber());
+ Assertions.assertEquals("fbebrjcxer", response.properties().user().companyName());
+ Assertions.assertEquals("ttxfvjr", response.properties().partnerProperties().organizationId());
+ Assertions.assertEquals("rp", response.properties().partnerProperties().redirectUrl());
+ Assertions.assertEquals("xepcyvahfn", response.properties().partnerProperties().organizationName());
+ Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.identity().type());
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListByResourceGroupMockTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListByResourceGroupMockTests.java
new file mode 100644
index 000000000000..e2abb7b5469c
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListByResourceGroupMockTests.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.credential.AccessToken;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
+import com.azure.core.test.http.MockHttpResponse;
+import com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationResource;
+import java.nio.charset.StandardCharsets;
+import java.time.OffsetDateTime;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import reactor.core.publisher.Mono;
+
+public final class OrganizationsListByResourceGroupMockTests {
+ @Test
+ public void testListByResourceGroup() throws Exception {
+ String responseStr
+ = "{\"value\":[{\"properties\":{\"marketplace\":{\"subscriptionId\":\"ibnuqqkpik\",\"subscriptionStatus\":\"Subscribed\",\"offerDetails\":{\"publisherId\":\"gvtqagnbuynh\",\"offerId\":\"jggmebfsiarbu\",\"planId\":\"rcvpnazzmhjrunmp\",\"planName\":\"tdbhrbnla\",\"termUnit\":\"xmyskp\",\"termId\":\"enbtkcxywny\"}},\"user\":{\"firstName\":\"nrs\",\"lastName\":\"nlqidybyxczf\",\"emailAddress\":\"lhaaxdbabp\",\"upn\":\"wrqlfktsthsuco\",\"phoneNumber\":\"nyyazttbtwwrqpue\",\"companyName\":\"kzywbiex\"},\"provisioningState\":\"Failed\",\"partnerProperties\":{\"organizationId\":\"eaxib\",\"redirectUrl\":\"jwbhqwalmuz\",\"organizationName\":\"oxaepd\"}},\"identity\":{\"principalId\":\"ancuxrhd\",\"tenantId\":\"avxbniwdjswztsdb\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"lcuhxwtctyqiklb\":{\"principalId\":\"txhp\",\"clientId\":\"bzpfzab\"},\"uosvmkfssxqukk\":{\"principalId\":\"vplwzbhv\",\"clientId\":\"u\"},\"opwi\":{\"principalId\":\"l\",\"clientId\":\"gsxnkjzkdeslpv\"}}},\"location\":\"ghxpkdw\",\"tags\":{\"upedeojnabckhs\":\"iuebbaumny\",\"ie\":\"txp\",\"jdhtldwkyzxu\":\"tfhvpesapskrdqmh\",\"svlxotogtwrup\":\"tkncwsc\"},\"id\":\"sx\",\"name\":\"nmic\",\"type\":\"kvceoveilovnotyf\"}]}";
+
+ HttpClient httpClient
+ = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
+ MongoDBAtlasManager manager = MongoDBAtlasManager.configure()
+ .withHttpClient(httpClient)
+ .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
+
+ PagedIterable response
+ = manager.organizations().listByResourceGroup("y", com.azure.core.util.Context.NONE);
+
+ Assertions.assertEquals("ghxpkdw", response.iterator().next().location());
+ Assertions.assertEquals("iuebbaumny", response.iterator().next().tags().get("upedeojnabckhs"));
+ Assertions.assertEquals("ibnuqqkpik", response.iterator().next().properties().marketplace().subscriptionId());
+ Assertions.assertEquals("gvtqagnbuynh",
+ response.iterator().next().properties().marketplace().offerDetails().publisherId());
+ Assertions.assertEquals("jggmebfsiarbu",
+ response.iterator().next().properties().marketplace().offerDetails().offerId());
+ Assertions.assertEquals("rcvpnazzmhjrunmp",
+ response.iterator().next().properties().marketplace().offerDetails().planId());
+ Assertions.assertEquals("tdbhrbnla",
+ response.iterator().next().properties().marketplace().offerDetails().planName());
+ Assertions.assertEquals("xmyskp",
+ response.iterator().next().properties().marketplace().offerDetails().termUnit());
+ Assertions.assertEquals("enbtkcxywny",
+ response.iterator().next().properties().marketplace().offerDetails().termId());
+ Assertions.assertEquals("nrs", response.iterator().next().properties().user().firstName());
+ Assertions.assertEquals("nlqidybyxczf", response.iterator().next().properties().user().lastName());
+ Assertions.assertEquals("lhaaxdbabp", response.iterator().next().properties().user().emailAddress());
+ Assertions.assertEquals("wrqlfktsthsuco", response.iterator().next().properties().user().upn());
+ Assertions.assertEquals("nyyazttbtwwrqpue", response.iterator().next().properties().user().phoneNumber());
+ Assertions.assertEquals("kzywbiex", response.iterator().next().properties().user().companyName());
+ Assertions.assertEquals("eaxib", response.iterator().next().properties().partnerProperties().organizationId());
+ Assertions.assertEquals("jwbhqwalmuz",
+ response.iterator().next().properties().partnerProperties().redirectUrl());
+ Assertions.assertEquals("oxaepd",
+ response.iterator().next().properties().partnerProperties().organizationName());
+ Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.iterator().next().identity().type());
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListMockTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListMockTests.java
new file mode 100644
index 000000000000..19966196f7c9
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/OrganizationsListMockTests.java
@@ -0,0 +1,63 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.credential.AccessToken;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
+import com.azure.core.test.http.MockHttpResponse;
+import com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager;
+import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.mongodbatlas.models.OrganizationResource;
+import java.nio.charset.StandardCharsets;
+import java.time.OffsetDateTime;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import reactor.core.publisher.Mono;
+
+public final class OrganizationsListMockTests {
+ @Test
+ public void testList() throws Exception {
+ String responseStr
+ = "{\"value\":[{\"properties\":{\"marketplace\":{\"subscriptionId\":\"cnjbkcnxdhbt\",\"subscriptionStatus\":\"Subscribed\",\"offerDetails\":{\"publisherId\":\"h\",\"offerId\":\"wpn\",\"planId\":\"jtoqne\",\"planName\":\"clfp\",\"termUnit\":\"hoxus\",\"termId\":\"pabgyeps\"}},\"user\":{\"firstName\":\"jta\",\"lastName\":\"qugxywpmueefjzwf\",\"emailAddress\":\"kqujidsuyono\",\"upn\":\"laocqxtccmg\",\"phoneNumber\":\"dxyt\",\"companyName\":\"oyrxvwfudwpzntxh\"},\"provisioningState\":\"Succeeded\",\"partnerProperties\":{\"organizationId\":\"qj\",\"redirectUrl\":\"ck\",\"organizationName\":\"rlhrxs\"}},\"identity\":{\"principalId\":\"vpycanuzbp\",\"tenantId\":\"afkuwb\",\"type\":\"None\",\"userAssignedIdentities\":{\"elmqk\":{\"principalId\":\"mehhseyvjusrtsl\",\"clientId\":\"pkdeemaofmxagkvt\"}}},\"location\":\"ahvljuaha\",\"tags\":{\"hmdua\":\"c\",\"pvfadmwsrcr\":\"aex\",\"fmisg\":\"vxpvgomz\"},\"id\":\"bnbbeldawkz\",\"name\":\"ali\",\"type\":\"urqhaka\"}]}";
+
+ HttpClient httpClient
+ = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
+ MongoDBAtlasManager manager = MongoDBAtlasManager.configure()
+ .withHttpClient(httpClient)
+ .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
+
+ PagedIterable response = manager.organizations().list(com.azure.core.util.Context.NONE);
+
+ Assertions.assertEquals("ahvljuaha", response.iterator().next().location());
+ Assertions.assertEquals("c", response.iterator().next().tags().get("hmdua"));
+ Assertions.assertEquals("cnjbkcnxdhbt", response.iterator().next().properties().marketplace().subscriptionId());
+ Assertions.assertEquals("h",
+ response.iterator().next().properties().marketplace().offerDetails().publisherId());
+ Assertions.assertEquals("wpn", response.iterator().next().properties().marketplace().offerDetails().offerId());
+ Assertions.assertEquals("jtoqne",
+ response.iterator().next().properties().marketplace().offerDetails().planId());
+ Assertions.assertEquals("clfp",
+ response.iterator().next().properties().marketplace().offerDetails().planName());
+ Assertions.assertEquals("hoxus",
+ response.iterator().next().properties().marketplace().offerDetails().termUnit());
+ Assertions.assertEquals("pabgyeps",
+ response.iterator().next().properties().marketplace().offerDetails().termId());
+ Assertions.assertEquals("jta", response.iterator().next().properties().user().firstName());
+ Assertions.assertEquals("qugxywpmueefjzwf", response.iterator().next().properties().user().lastName());
+ Assertions.assertEquals("kqujidsuyono", response.iterator().next().properties().user().emailAddress());
+ Assertions.assertEquals("laocqxtccmg", response.iterator().next().properties().user().upn());
+ Assertions.assertEquals("dxyt", response.iterator().next().properties().user().phoneNumber());
+ Assertions.assertEquals("oyrxvwfudwpzntxh", response.iterator().next().properties().user().companyName());
+ Assertions.assertEquals("qj", response.iterator().next().properties().partnerProperties().organizationId());
+ Assertions.assertEquals("ck", response.iterator().next().properties().partnerProperties().redirectUrl());
+ Assertions.assertEquals("rlhrxs",
+ response.iterator().next().properties().partnerProperties().organizationName());
+ Assertions.assertEquals(ManagedServiceIdentityType.NONE, response.iterator().next().identity().type());
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/PartnerPropertiesTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/PartnerPropertiesTests.java
new file mode 100644
index 000000000000..ef13268cd1e8
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/PartnerPropertiesTests.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.models.PartnerProperties;
+import org.junit.jupiter.api.Assertions;
+
+public final class PartnerPropertiesTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ PartnerProperties model = BinaryData.fromString(
+ "{\"organizationId\":\"utduqktapspwgcu\",\"redirectUrl\":\"tumkdosvqwhbm\",\"organizationName\":\"gbbjfddgmbmbe\"}")
+ .toObject(PartnerProperties.class);
+ Assertions.assertEquals("utduqktapspwgcu", model.organizationId());
+ Assertions.assertEquals("tumkdosvqwhbm", model.redirectUrl());
+ Assertions.assertEquals("gbbjfddgmbmbe", model.organizationName());
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ PartnerProperties model = new PartnerProperties().withOrganizationId("utduqktapspwgcu")
+ .withRedirectUrl("tumkdosvqwhbm")
+ .withOrganizationName("gbbjfddgmbmbe");
+ model = BinaryData.fromObject(model).toObject(PartnerProperties.class);
+ Assertions.assertEquals("utduqktapspwgcu", model.organizationId());
+ Assertions.assertEquals("tumkdosvqwhbm", model.redirectUrl());
+ Assertions.assertEquals("gbbjfddgmbmbe", model.organizationName());
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/UserAssignedIdentityTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/UserAssignedIdentityTests.java
new file mode 100644
index 000000000000..ce433b4d964a
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/UserAssignedIdentityTests.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.models.UserAssignedIdentity;
+
+public final class UserAssignedIdentityTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"dnrujqguhmuouqfp\",\"clientId\":\"zw\"}")
+ .toObject(UserAssignedIdentity.class);
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ UserAssignedIdentity model = new UserAssignedIdentity();
+ model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class);
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/UserDetailsTests.java b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/UserDetailsTests.java
new file mode 100644
index 000000000000..21e80eb05882
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/test/java/com/azure/resourcemanager/mongodbatlas/generated/UserDetailsTests.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.mongodbatlas.generated;
+
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.mongodbatlas.models.UserDetails;
+import org.junit.jupiter.api.Assertions;
+
+public final class UserDetailsTests {
+ @org.junit.jupiter.api.Test
+ public void testDeserialize() throws Exception {
+ UserDetails model = BinaryData.fromString(
+ "{\"firstName\":\"yqkgfg\",\"lastName\":\"bmadgak\",\"emailAddress\":\"qsrxybzqqed\",\"upn\":\"tbciqfouflmm\",\"phoneNumber\":\"zsm\",\"companyName\":\"mglougpbkw\"}")
+ .toObject(UserDetails.class);
+ Assertions.assertEquals("yqkgfg", model.firstName());
+ Assertions.assertEquals("bmadgak", model.lastName());
+ Assertions.assertEquals("qsrxybzqqed", model.emailAddress());
+ Assertions.assertEquals("tbciqfouflmm", model.upn());
+ Assertions.assertEquals("zsm", model.phoneNumber());
+ Assertions.assertEquals("mglougpbkw", model.companyName());
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ UserDetails model = new UserDetails().withFirstName("yqkgfg")
+ .withLastName("bmadgak")
+ .withEmailAddress("qsrxybzqqed")
+ .withUpn("tbciqfouflmm")
+ .withPhoneNumber("zsm")
+ .withCompanyName("mglougpbkw");
+ model = BinaryData.fromObject(model).toObject(UserDetails.class);
+ Assertions.assertEquals("yqkgfg", model.firstName());
+ Assertions.assertEquals("bmadgak", model.lastName());
+ Assertions.assertEquals("qsrxybzqqed", model.emailAddress());
+ Assertions.assertEquals("tbciqfouflmm", model.upn());
+ Assertions.assertEquals("zsm", model.phoneNumber());
+ Assertions.assertEquals("mglougpbkw", model.companyName());
+ }
+}
diff --git a/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/tsp-location.yaml b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/tsp-location.yaml
new file mode 100644
index 000000000000..aec8b1327401
--- /dev/null
+++ b/sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/tsp-location.yaml
@@ -0,0 +1,4 @@
+directory: specification/liftrmongodb/MongoDB.Atlas.Management
+commit: 85751d3c78d7ac6d5308c3bf9403bce6e761294d
+repo: Azure/azure-rest-api-specs
+additionalDirectories:
diff --git a/sdk/mongodbatlas/ci.yml b/sdk/mongodbatlas/ci.yml
new file mode 100644
index 000000000000..616d32b0c3ab
--- /dev/null
+++ b/sdk/mongodbatlas/ci.yml
@@ -0,0 +1,46 @@
+# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
+
+trigger:
+ branches:
+ include:
+ - main
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/mongodbatlas/ci.yml
+ - sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/
+ exclude:
+ - sdk/mongodbatlas/pom.xml
+ - sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/pom.xml
+
+pr:
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/mongodbatlas/ci.yml
+ - sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/
+ exclude:
+ - sdk/mongodbatlas/pom.xml
+ - sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/pom.xml
+
+parameters:
+ - name: release_azureresourcemanagermongodbatlas
+ displayName: azure-resourcemanager-mongodbatlas
+ type: boolean
+ default: false
+
+extends:
+ template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
+ parameters:
+ ServiceDirectory: mongodbatlas
+ Artifacts:
+ - name: azure-resourcemanager-mongodbatlas
+ groupId: com.azure.resourcemanager
+ safeName: azureresourcemanagermongodbatlas
+ releaseInBatch: ${{ parameters.release_azureresourcemanagermongodbatlas }}
diff --git a/sdk/mongodbatlas/pom.xml b/sdk/mongodbatlas/pom.xml
new file mode 100644
index 000000000000..dac0d08db271
--- /dev/null
+++ b/sdk/mongodbatlas/pom.xml
@@ -0,0 +1,15 @@
+
+
+ 4.0.0
+ com.azure
+ azure-mongodbatlas-service
+ pom
+ 1.0.0
+
+
+ azure-resourcemanager-mongodbatlas
+
+