diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index ad9720e1fac93..62696f8ded182 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -340,6 +340,7 @@ com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.1;1.
com.azure.resourcemanager:azure-resourcemanager-oep;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-dnsresolver;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-mobilenetwork;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-managedservices;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
com.azure.tools:azure-sdk-build-tool;1.0.0-beta.1;1.0.0-beta.1
diff --git a/pom.xml b/pom.xml
index 0ce586ceb6e74..552b64a4e7c88 100644
--- a/pom.xml
+++ b/pom.xml
@@ -918,6 +918,7 @@
sdk/machinelearningservices
sdk/maintenance
sdk/managedapplications
+ sdk/managedservices
sdk/maps
sdk/mariadb
sdk/marketplaceordering
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/CHANGELOG.md b/sdk/managedservices/azure-resourcemanager-managedservices/CHANGELOG.md
new file mode 100644
index 0000000000000..cefbf24eab2d0
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-03-15)
+
+- Azure Resource Manager ManagedServices client library for Java. This package contains Microsoft Azure SDK for ManagedServices Management SDK. The specification for ManagedServices. Package tag package-preview-2022-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/README.md b/sdk/managedservices/azure-resourcemanager-managedservices/README.md
new file mode 100644
index 0000000000000..0459ea87e9873
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager ManagedServices client library for Java
+
+Azure Resource Manager ManagedServices client library for Java.
+
+This package contains Microsoft Azure SDK for ManagedServices Management SDK. The specification for ManagedServices. Package tag package-preview-2022-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-managedservices;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-managedservices
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+ManagedServicesManager manager = ManagedServicesManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/managedservices/azure-resourcemanager-managedservices/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/SAMPLE.md b/sdk/managedservices/azure-resourcemanager-managedservices/SAMPLE.md
new file mode 100644
index 0000000000000..9327719b89027
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/SAMPLE.md
@@ -0,0 +1,519 @@
+# Code snippets and samples
+
+
+## MarketplaceRegistrationDefinitions
+
+- [Get](#marketplaceregistrationdefinitions_get)
+- [List](#marketplaceregistrationdefinitions_list)
+
+## MarketplaceRegistrationDefinitionsWithoutScope
+
+- [Get](#marketplaceregistrationdefinitionswithoutscope_get)
+- [List](#marketplaceregistrationdefinitionswithoutscope_list)
+
+## Operations
+
+- [List](#operations_list)
+
+## OperationsWithScope
+
+- [List](#operationswithscope_list)
+
+## RegistrationAssignments
+
+- [CreateOrUpdate](#registrationassignments_createorupdate)
+- [Delete](#registrationassignments_delete)
+- [Get](#registrationassignments_get)
+- [List](#registrationassignments_list)
+
+## RegistrationDefinitions
+
+- [CreateOrUpdate](#registrationdefinitions_createorupdate)
+- [Delete](#registrationdefinitions_delete)
+- [Get](#registrationdefinitions_get)
+- [List](#registrationdefinitions_list)
+### MarketplaceRegistrationDefinitions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MarketplaceRegistrationDefinitions Get. */
+public final class MarketplaceRegistrationDefinitionsGetSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetMarketplaceRegistrationDefinition.json
+ */
+ /**
+ * Sample code: Get Registration Definitions.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationDefinitions(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .marketplaceRegistrationDefinitions()
+ .getWithResponse(
+ "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "publisher.product.planName.version",
+ Context.NONE);
+ }
+}
+```
+
+### MarketplaceRegistrationDefinitions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MarketplaceRegistrationDefinitions List. */
+public final class MarketplaceRegistrationDefinitionsListSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetMarketplaceRegistrationDefinitions.json
+ */
+ /**
+ * Sample code: Get Registration Definitions.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationDefinitions(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .marketplaceRegistrationDefinitions()
+ .list(
+ "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "planIdentifier eq 'publisher.offerIdentifier.planName.version'",
+ Context.NONE);
+ }
+}
+```
+
+### MarketplaceRegistrationDefinitionsWithoutScope_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MarketplaceRegistrationDefinitionsWithoutScope Get. */
+public final class MarketplaceRegistrationDefinitionsWithoutScopeGetSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetMarketplaceRegistrationDefinitionAtTenantScope.json
+ */
+ /**
+ * Sample code: Get Marketplace Registration Definition At Tenant Scope.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getMarketplaceRegistrationDefinitionAtTenantScope(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .marketplaceRegistrationDefinitionsWithoutScopes()
+ .getWithResponse("publisher.product.planName.version", Context.NONE);
+ }
+}
+```
+
+### MarketplaceRegistrationDefinitionsWithoutScope_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MarketplaceRegistrationDefinitionsWithoutScope List. */
+public final class MarketplaceRegistrationDefinitionsWithoutScopeListSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetMarketplaceRegistrationDefinitionsAtTenantScope.json
+ */
+ /**
+ * Sample code: Get Marketplace Registration Definitions At Tenant Scope.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getMarketplaceRegistrationDefinitionsAtTenantScope(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .marketplaceRegistrationDefinitionsWithoutScopes()
+ .list("planIdentifier eq 'publisher.offerIdentifier.planName.version'", Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetOperations.json
+ */
+ /**
+ * Sample code: Get Registration Operations.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationOperations(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager.operations().listWithResponse(Context.NONE);
+ }
+}
+```
+
+### OperationsWithScope_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for OperationsWithScope List. */
+public final class OperationsWithScopeListSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetOperationsWithScope.json
+ */
+ /**
+ * Sample code: Get Registration Operations.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationOperations(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .operationsWithScopes()
+ .listWithResponse("subscription/0afefe50-734e-4610-8a82-a144ahf49dea", Context.NONE);
+ }
+}
+```
+
+### RegistrationAssignments_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.managedservices.models.RegistrationAssignmentProperties;
+
+/** Samples for RegistrationAssignments CreateOrUpdate. */
+public final class RegistrationAssignmentsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/PutRegistrationAssignment.json
+ */
+ /**
+ * Sample code: Put Registration Assignment.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void putRegistrationAssignment(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .registrationAssignments()
+ .define("26c128c2-fefa-4340-9bb1-6e081c90ada2")
+ .withExistingScope("subscription/0afefe50-734e-4610-8a82-a144ahf49dea")
+ .withProperties(
+ new RegistrationAssignmentProperties()
+ .withRegistrationDefinitionId(
+ "/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2"))
+ .create();
+ }
+}
+```
+
+### RegistrationAssignments_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistrationAssignments Delete. */
+public final class RegistrationAssignmentsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/DeleteRegistrationAssignment.json
+ */
+ /**
+ * Sample code: Delete Registration Assignment.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void deleteRegistrationAssignment(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .registrationAssignments()
+ .delete(
+ "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ Context.NONE);
+ }
+}
+```
+
+### RegistrationAssignments_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistrationAssignments Get. */
+public final class RegistrationAssignmentsGetSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetRegistrationAssignment.json
+ */
+ /**
+ * Sample code: Get Registration Assignment.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationAssignment(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .registrationAssignments()
+ .getWithResponse(
+ "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ null,
+ Context.NONE);
+ }
+}
+```
+
+### RegistrationAssignments_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistrationAssignments List. */
+public final class RegistrationAssignmentsListSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetRegistrationAssignmentsWithManagedByTenantIdEqFilter.json
+ */
+ /**
+ * Sample code: Get Registration Assignments with ManagedByTenantId eq filter.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationAssignmentsWithManagedByTenantIdEqFilter(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .registrationAssignments()
+ .list(
+ "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ null,
+ "$filter=managedByTenantId eq '83abe5cd-bcc3-441a-bd86-e6a75360cecc'",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetRegistrationAssignments.json
+ */
+ /**
+ * Sample code: Get Registration Assignments.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationAssignments(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .registrationAssignments()
+ .list("subscription/0afefe50-734e-4610-8a82-a144ahf49dea", null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetRegistrationAssignmentsWithManagedByTenantIdInFilter.json
+ */
+ /**
+ * Sample code: Get Registration Assignments with ManagedByTenantId in filter.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationAssignmentsWithManagedByTenantIdInFilter(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .registrationAssignments()
+ .list(
+ "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ null,
+ "$filter=managedByTenantId in (83abe5cd-bcc3-441a-bd86-e6a75360cec,"
+ + " de83f4a9-a76a-4025-a91a-91171923eac7)",
+ Context.NONE);
+ }
+}
+```
+
+### RegistrationDefinitions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.managedservices.models.Authorization;
+import com.azure.resourcemanager.managedservices.models.EligibleApprover;
+import com.azure.resourcemanager.managedservices.models.EligibleAuthorization;
+import com.azure.resourcemanager.managedservices.models.JustInTimeAccessPolicy;
+import com.azure.resourcemanager.managedservices.models.MultiFactorAuthProvider;
+import com.azure.resourcemanager.managedservices.models.Plan;
+import com.azure.resourcemanager.managedservices.models.RegistrationDefinitionProperties;
+import java.time.Duration;
+import java.util.Arrays;
+import java.util.UUID;
+
+/** Samples for RegistrationDefinitions CreateOrUpdate. */
+public final class RegistrationDefinitionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/PutRegistrationDefinition.json
+ */
+ /**
+ * Sample code: Put Registration Definition.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void putRegistrationDefinition(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .registrationDefinitions()
+ .define("26c128c2-fefa-4340-9bb1-6e081c90ada2")
+ .withExistingScope("subscription/0afefe50-734e-4610-8a82-a144ahf49dea")
+ .withProperties(
+ new RegistrationDefinitionProperties()
+ .withDescription("Tes1t")
+ .withAuthorizations(
+ Arrays
+ .asList(
+ new Authorization()
+ .withPrincipalId("f98d86a2-4cc4-4e9d-ad47-b3e80a1bcdfc")
+ .withPrincipalIdDisplayName("Support User")
+ .withRoleDefinitionId("acdd72a7-3385-48ef-bd42-f606fba81ae7"),
+ new Authorization()
+ .withPrincipalId("f98d86a2-4cc4-4e9d-ad47-b3e80a1bcdfc")
+ .withPrincipalIdDisplayName("User Access Administrator")
+ .withRoleDefinitionId("18d7d88d-d35e-4fb5-a5c3-7773c20a72d9")
+ .withDelegatedRoleDefinitionIds(
+ Arrays.asList(UUID.fromString("b24988ac-6180-42a0-ab88-20f7382dd24c")))))
+ .withEligibleAuthorizations(
+ Arrays
+ .asList(
+ new EligibleAuthorization()
+ .withPrincipalId("3e0ed8c6-e902-4fc5-863c-e3ddbb2ae2a2")
+ .withPrincipalIdDisplayName("Support User")
+ .withRoleDefinitionId("ae349356-3a1b-4a5e-921d-050484c6347e")
+ .withJustInTimeAccessPolicy(
+ new JustInTimeAccessPolicy()
+ .withMultiFactorAuthProvider(MultiFactorAuthProvider.AZURE)
+ .withMaximumActivationDuration(Duration.parse("PT8H"))
+ .withManagedByTenantApprovers(
+ Arrays
+ .asList(
+ new EligibleApprover()
+ .withPrincipalId("d9b22cd6-6407-43cc-8c60-07c56df0b51a")
+ .withPrincipalIdDisplayName("Approver Group"))))))
+ .withRegistrationDefinitionName("DefinitionName")
+ .withManagedByTenantId("83abe5cd-bcc3-441a-bd86-e6a75360cecc"))
+ .withPlan(
+ new Plan()
+ .withName("addesai-plan")
+ .withPublisher("marketplace-test")
+ .withProduct("test")
+ .withVersion("1.0.0"))
+ .create();
+ }
+}
+```
+
+### RegistrationDefinitions_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistrationDefinitions Delete. */
+public final class RegistrationDefinitionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/DeleteRegistrationDefinition.json
+ */
+ /**
+ * Sample code: Delete Registration Definition.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void deleteRegistrationDefinition(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .registrationDefinitions()
+ .deleteWithResponse(
+ "26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ Context.NONE);
+ }
+}
+```
+
+### RegistrationDefinitions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistrationDefinitions Get. */
+public final class RegistrationDefinitionsGetSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetRegistrationDefinition.json
+ */
+ /**
+ * Sample code: Get Registration Definition.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationDefinition(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .registrationDefinitions()
+ .getWithResponse(
+ "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ Context.NONE);
+ }
+}
+```
+
+### RegistrationDefinitions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegistrationDefinitions List. */
+public final class RegistrationDefinitionsListSamples {
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetRegistrationDefinitionsWithManagedByTenantIdEqFilter.json
+ */
+ /**
+ * Sample code: Get Registration Definitions with ManagedByTenantId eq filter.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationDefinitionsWithManagedByTenantIdEqFilter(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .registrationDefinitions()
+ .list(
+ "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "$filter=managedByTenantId eq '83ace5cd-bcc3-441a-hd86-e6a75360cecc'",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetRegistrationDefinitions.json
+ */
+ /**
+ * Sample code: Get Registration Definitions.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationDefinitions(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager.registrationDefinitions().list("subscription/0afefe50-734e-4610-8a82-a144ahf49dea", null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2022-01-01-preview/examples/GetRegistrationDefinitionsWithManagedByTenantIdInFilter.json
+ */
+ /**
+ * Sample code: Get Registration Definitions with ManagedByTenantId in filter.
+ *
+ * @param manager Entry point to ManagedServicesManager.
+ */
+ public static void getRegistrationDefinitionsWithManagedByTenantIdInFilter(
+ com.azure.resourcemanager.managedservices.ManagedServicesManager manager) {
+ manager
+ .registrationDefinitions()
+ .list(
+ "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "$filter=managedByTenantId in (83ace5cd-bcc3-441a-hd86-e6a75360cecc,"
+ + " de83f4a9-a76a-4025-a91a-91171923eac7)",
+ Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/pom.xml b/sdk/managedservices/azure-resourcemanager-managedservices/pom.xml
new file mode 100644
index 0000000000000..f4a17e475223c
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/pom.xml
@@ -0,0 +1,55 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-managedservices
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for ManagedServices Management
+ This package contains Microsoft Azure SDK for ManagedServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The specification for ManagedServices. Package tag package-preview-2022-01.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.26.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.3
+
+
+
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/ManagedServicesManager.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/ManagedServicesManager.java
new file mode 100644
index 0000000000000..b70c6024aaaa6
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/ManagedServicesManager.java
@@ -0,0 +1,308 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.managedservices.fluent.ManagedServicesClient;
+import com.azure.resourcemanager.managedservices.implementation.ManagedServicesClientBuilder;
+import com.azure.resourcemanager.managedservices.implementation.MarketplaceRegistrationDefinitionsImpl;
+import com.azure.resourcemanager.managedservices.implementation.MarketplaceRegistrationDefinitionsWithoutScopesImpl;
+import com.azure.resourcemanager.managedservices.implementation.OperationsImpl;
+import com.azure.resourcemanager.managedservices.implementation.OperationsWithScopesImpl;
+import com.azure.resourcemanager.managedservices.implementation.RegistrationAssignmentsImpl;
+import com.azure.resourcemanager.managedservices.implementation.RegistrationDefinitionsImpl;
+import com.azure.resourcemanager.managedservices.models.MarketplaceRegistrationDefinitions;
+import com.azure.resourcemanager.managedservices.models.MarketplaceRegistrationDefinitionsWithoutScopes;
+import com.azure.resourcemanager.managedservices.models.Operations;
+import com.azure.resourcemanager.managedservices.models.OperationsWithScopes;
+import com.azure.resourcemanager.managedservices.models.RegistrationAssignments;
+import com.azure.resourcemanager.managedservices.models.RegistrationDefinitions;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+/** Entry point to ManagedServicesManager. The specification for ManagedServices. */
+public final class ManagedServicesManager {
+ private RegistrationDefinitions registrationDefinitions;
+
+ private RegistrationAssignments registrationAssignments;
+
+ private MarketplaceRegistrationDefinitions marketplaceRegistrationDefinitions;
+
+ private MarketplaceRegistrationDefinitionsWithoutScopes marketplaceRegistrationDefinitionsWithoutScopes;
+
+ private Operations operations;
+
+ private OperationsWithScopes operationsWithScopes;
+
+ private final ManagedServicesClient clientObject;
+
+ private ManagedServicesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new ManagedServicesClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of ManagedServices service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ManagedServices service API instance.
+ */
+ public static ManagedServicesManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create ManagedServicesManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new ManagedServicesManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ 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 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 ManagedServices service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the ManagedServices service API instance.
+ */
+ public ManagedServicesManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.managedservices")
+ .append("/")
+ .append("1.0.0-beta.1");
+ 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) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ 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 ArmChallengeAuthenticationPolicy(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 ManagedServicesManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of RegistrationDefinitions. */
+ public RegistrationDefinitions registrationDefinitions() {
+ if (this.registrationDefinitions == null) {
+ this.registrationDefinitions =
+ new RegistrationDefinitionsImpl(clientObject.getRegistrationDefinitions(), this);
+ }
+ return registrationDefinitions;
+ }
+
+ /** @return Resource collection API of RegistrationAssignments. */
+ public RegistrationAssignments registrationAssignments() {
+ if (this.registrationAssignments == null) {
+ this.registrationAssignments =
+ new RegistrationAssignmentsImpl(clientObject.getRegistrationAssignments(), this);
+ }
+ return registrationAssignments;
+ }
+
+ /** @return Resource collection API of MarketplaceRegistrationDefinitions. */
+ public MarketplaceRegistrationDefinitions marketplaceRegistrationDefinitions() {
+ if (this.marketplaceRegistrationDefinitions == null) {
+ this.marketplaceRegistrationDefinitions =
+ new MarketplaceRegistrationDefinitionsImpl(clientObject.getMarketplaceRegistrationDefinitions(), this);
+ }
+ return marketplaceRegistrationDefinitions;
+ }
+
+ /** @return Resource collection API of MarketplaceRegistrationDefinitionsWithoutScopes. */
+ public MarketplaceRegistrationDefinitionsWithoutScopes marketplaceRegistrationDefinitionsWithoutScopes() {
+ if (this.marketplaceRegistrationDefinitionsWithoutScopes == null) {
+ this.marketplaceRegistrationDefinitionsWithoutScopes =
+ new MarketplaceRegistrationDefinitionsWithoutScopesImpl(
+ clientObject.getMarketplaceRegistrationDefinitionsWithoutScopes(), this);
+ }
+ return marketplaceRegistrationDefinitionsWithoutScopes;
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of OperationsWithScopes. */
+ public OperationsWithScopes operationsWithScopes() {
+ if (this.operationsWithScopes == null) {
+ this.operationsWithScopes = new OperationsWithScopesImpl(clientObject.getOperationsWithScopes(), this);
+ }
+ return operationsWithScopes;
+ }
+
+ /**
+ * @return Wrapped service client ManagedServicesClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ */
+ public ManagedServicesClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/ManagedServicesClient.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/ManagedServicesClient.java
new file mode 100644
index 0000000000000..0fde0e809f0a2
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/ManagedServicesClient.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for ManagedServicesClient class. */
+public interface ManagedServicesClient {
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * 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 RegistrationDefinitionsClient object to access its operations.
+ *
+ * @return the RegistrationDefinitionsClient object.
+ */
+ RegistrationDefinitionsClient getRegistrationDefinitions();
+
+ /**
+ * Gets the RegistrationAssignmentsClient object to access its operations.
+ *
+ * @return the RegistrationAssignmentsClient object.
+ */
+ RegistrationAssignmentsClient getRegistrationAssignments();
+
+ /**
+ * Gets the MarketplaceRegistrationDefinitionsClient object to access its operations.
+ *
+ * @return the MarketplaceRegistrationDefinitionsClient object.
+ */
+ MarketplaceRegistrationDefinitionsClient getMarketplaceRegistrationDefinitions();
+
+ /**
+ * Gets the MarketplaceRegistrationDefinitionsWithoutScopesClient object to access its operations.
+ *
+ * @return the MarketplaceRegistrationDefinitionsWithoutScopesClient object.
+ */
+ MarketplaceRegistrationDefinitionsWithoutScopesClient getMarketplaceRegistrationDefinitionsWithoutScopes();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the OperationsWithScopesClient object to access its operations.
+ *
+ * @return the OperationsWithScopesClient object.
+ */
+ OperationsWithScopesClient getOperationsWithScopes();
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/MarketplaceRegistrationDefinitionsClient.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/MarketplaceRegistrationDefinitionsClient.java
new file mode 100644
index 0000000000000..d2d46a5abf550
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/MarketplaceRegistrationDefinitionsClient.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.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.util.Context;
+import com.azure.resourcemanager.managedservices.fluent.models.MarketplaceRegistrationDefinitionInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in MarketplaceRegistrationDefinitionsClient.
+ */
+public interface MarketplaceRegistrationDefinitionsClient {
+ /**
+ * Gets a list of the marketplace registration definitions for the marketplace identifier.
+ *
+ * @param scope The scope of the 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 list of the marketplace registration definitions for the marketplace identifier as paginated response
+ * with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope);
+
+ /**
+ * Gets a list of the marketplace registration definitions for the marketplace identifier.
+ *
+ * @param scope The scope of the resource.
+ * @param filter The filter query parameter to filter managed services resources by.
+ * @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 the marketplace registration definitions for the marketplace identifier as paginated response
+ * with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope, String filter, Context context);
+
+ /**
+ * Get the marketplace registration definition for the marketplace identifier.
+ *
+ * @param scope The scope of the resource.
+ * @param marketplaceIdentifier The Azure Marketplace identifier. Expected formats:
+ * {publisher}.{product[-preview]}.{planName}.{version} or {publisher}.{product[-preview]}.{planName} or
+ * {publisher}.{product[-preview]} or {publisher}).
+ * @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 marketplace registration definition for the marketplace identifier.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MarketplaceRegistrationDefinitionInner get(String scope, String marketplaceIdentifier);
+
+ /**
+ * Get the marketplace registration definition for the marketplace identifier.
+ *
+ * @param scope The scope of the resource.
+ * @param marketplaceIdentifier The Azure Marketplace identifier. Expected formats:
+ * {publisher}.{product[-preview]}.{planName}.{version} or {publisher}.{product[-preview]}.{planName} or
+ * {publisher}.{product[-preview]} or {publisher}).
+ * @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 marketplace registration definition for the marketplace identifier along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String scope, String marketplaceIdentifier, Context context);
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/MarketplaceRegistrationDefinitionsWithoutScopesClient.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/MarketplaceRegistrationDefinitionsWithoutScopesClient.java
new file mode 100644
index 0000000000000..fa8c287281324
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/MarketplaceRegistrationDefinitionsWithoutScopesClient.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.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.util.Context;
+import com.azure.resourcemanager.managedservices.fluent.models.MarketplaceRegistrationDefinitionInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * MarketplaceRegistrationDefinitionsWithoutScopesClient.
+ */
+public interface MarketplaceRegistrationDefinitionsWithoutScopesClient {
+ /**
+ * Gets a list of the marketplace registration definitions for the marketplace identifier.
+ *
+ * @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 the marketplace registration definitions for the marketplace identifier as paginated response
+ * with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets a list of the marketplace registration definitions for the marketplace identifier.
+ *
+ * @param filter The filter query parameter to filter managed services resources by.
+ * @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 the marketplace registration definitions for the marketplace identifier as paginated response
+ * with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Context context);
+
+ /**
+ * Get the marketplace registration definition for the marketplace identifier.
+ *
+ * @param marketplaceIdentifier The Azure Marketplace identifier. Expected formats:
+ * {publisher}.{product[-preview]}.{planName}.{version} or {publisher}.{product[-preview]}.{planName} or
+ * {publisher}.{product[-preview]} or {publisher}).
+ * @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 marketplace registration definition for the marketplace identifier.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MarketplaceRegistrationDefinitionInner get(String marketplaceIdentifier);
+
+ /**
+ * Get the marketplace registration definition for the marketplace identifier.
+ *
+ * @param marketplaceIdentifier The Azure Marketplace identifier. Expected formats:
+ * {publisher}.{product[-preview]}.{planName}.{version} or {publisher}.{product[-preview]}.{planName} or
+ * {publisher}.{product[-preview]} or {publisher}).
+ * @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 marketplace registration definition for the marketplace identifier along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String marketplaceIdentifier, Context context);
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/OperationsClient.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..24da9bc0c894c
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.managedservices.fluent.models.OperationListInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Gets a list of the operations.
+ *
+ * @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 the operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationListInner list();
+
+ /**
+ * Gets a list of the operations.
+ *
+ * @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 the operations along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(Context context);
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/OperationsWithScopesClient.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/OperationsWithScopesClient.java
new file mode 100644
index 0000000000000..4e7bbddfab06d
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/OperationsWithScopesClient.java
@@ -0,0 +1,39 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.managedservices.fluent.models.OperationListInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsWithScopesClient. */
+public interface OperationsWithScopesClient {
+ /**
+ * Gets a list of the operations with the scope.
+ *
+ * @param scope The scope of the 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 list of the operations with the scope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationListInner list(String scope);
+
+ /**
+ * Gets a list of the operations with the scope.
+ *
+ * @param scope The scope of the 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 list of the operations with the scope along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(String scope, Context context);
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/RegistrationAssignmentsClient.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/RegistrationAssignmentsClient.java
new file mode 100644
index 0000000000000..fff118bb663dc
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/RegistrationAssignmentsClient.java
@@ -0,0 +1,190 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.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.managedservices.fluent.models.RegistrationAssignmentInner;
+
+/** An instance of this class provides access to all the operations defined in RegistrationAssignmentsClient. */
+public interface RegistrationAssignmentsClient {
+ /**
+ * Gets the details of the specified registration assignment.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationAssignmentId The GUID of the registration assignment.
+ * @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 details of the specified registration assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistrationAssignmentInner get(String scope, String registrationAssignmentId);
+
+ /**
+ * Gets the details of the specified registration assignment.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationAssignmentId The GUID of the registration assignment.
+ * @param expandRegistrationDefinition The flag indicating whether to return the registration definition details
+ * along with the registration assignment details.
+ * @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 details of the specified registration assignment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String scope, String registrationAssignmentId, Boolean expandRegistrationDefinition, Context context);
+
+ /**
+ * Deletes the specified registration assignment.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationAssignmentId The GUID of the registration assignment.
+ * @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 scope, String registrationAssignmentId);
+
+ /**
+ * Deletes the specified registration assignment.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationAssignmentId The GUID of the registration assignment.
+ * @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 scope, String registrationAssignmentId, Context context);
+
+ /**
+ * Deletes the specified registration assignment.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationAssignmentId The GUID of the registration assignment.
+ * @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 scope, String registrationAssignmentId);
+
+ /**
+ * Deletes the specified registration assignment.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationAssignmentId The GUID of the registration assignment.
+ * @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 scope, String registrationAssignmentId, Context context);
+
+ /**
+ * Creates or updates a registration assignment.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationAssignmentId The GUID of the registration assignment.
+ * @param requestBody The parameters required to create new registration assignment.
+ * @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 registration assignment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RegistrationAssignmentInner> beginCreateOrUpdate(
+ String scope, String registrationAssignmentId, RegistrationAssignmentInner requestBody);
+
+ /**
+ * Creates or updates a registration assignment.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationAssignmentId The GUID of the registration assignment.
+ * @param requestBody The parameters required to create new registration assignment.
+ * @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 registration assignment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RegistrationAssignmentInner> beginCreateOrUpdate(
+ String scope, String registrationAssignmentId, RegistrationAssignmentInner requestBody, Context context);
+
+ /**
+ * Creates or updates a registration assignment.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationAssignmentId The GUID of the registration assignment.
+ * @param requestBody The parameters required to create new registration assignment.
+ * @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 registration assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistrationAssignmentInner createOrUpdate(
+ String scope, String registrationAssignmentId, RegistrationAssignmentInner requestBody);
+
+ /**
+ * Creates or updates a registration assignment.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationAssignmentId The GUID of the registration assignment.
+ * @param requestBody The parameters required to create new registration assignment.
+ * @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 registration assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistrationAssignmentInner createOrUpdate(
+ String scope, String registrationAssignmentId, RegistrationAssignmentInner requestBody, Context context);
+
+ /**
+ * Gets a list of the registration assignments.
+ *
+ * @param scope The scope of the 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 list of the registration assignments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope);
+
+ /**
+ * Gets a list of the registration assignments.
+ *
+ * @param scope The scope of the resource.
+ * @param expandRegistrationDefinition The flag indicating whether to return the registration definition details
+ * along with the registration assignment details.
+ * @param filter The filter query parameter to filter managed services resources by.
+ * @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 the registration assignments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String scope, Boolean expandRegistrationDefinition, String filter, Context context);
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/RegistrationDefinitionsClient.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/RegistrationDefinitionsClient.java
new file mode 100644
index 0000000000000..6bffa2c0aa0ad
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/RegistrationDefinitionsClient.java
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.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.managedservices.fluent.models.RegistrationDefinitionInner;
+
+/** An instance of this class provides access to all the operations defined in RegistrationDefinitionsClient. */
+public interface RegistrationDefinitionsClient {
+ /**
+ * Gets the registration definition details.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationDefinitionId The GUID of the registration definition.
+ * @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 registration definition details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistrationDefinitionInner get(String scope, String registrationDefinitionId);
+
+ /**
+ * Gets the registration definition details.
+ *
+ * @param scope The scope of the resource.
+ * @param registrationDefinitionId The GUID of the registration definition.
+ * @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 registration definition details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String scope, String registrationDefinitionId, Context context);
+
+ /**
+ * Deletes the registration definition.
+ *
+ * @param registrationDefinitionId The GUID of the registration definition.
+ * @param scope The scope of the 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 registrationDefinitionId, String scope);
+
+ /**
+ * Deletes the registration definition.
+ *
+ * @param registrationDefinitionId The GUID of the registration definition.
+ * @param scope The scope of the 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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String registrationDefinitionId, String scope, Context context);
+
+ /**
+ * Creates or updates a registration definition.
+ *
+ * @param registrationDefinitionId The GUID of the registration definition.
+ * @param scope The scope of the resource.
+ * @param requestBody The parameters required to create a new registration definition.
+ * @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 registration definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RegistrationDefinitionInner> beginCreateOrUpdate(
+ String registrationDefinitionId, String scope, RegistrationDefinitionInner requestBody);
+
+ /**
+ * Creates or updates a registration definition.
+ *
+ * @param registrationDefinitionId The GUID of the registration definition.
+ * @param scope The scope of the resource.
+ * @param requestBody The parameters required to create a new registration definition.
+ * @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 registration definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RegistrationDefinitionInner> beginCreateOrUpdate(
+ String registrationDefinitionId, String scope, RegistrationDefinitionInner requestBody, Context context);
+
+ /**
+ * Creates or updates a registration definition.
+ *
+ * @param registrationDefinitionId The GUID of the registration definition.
+ * @param scope The scope of the resource.
+ * @param requestBody The parameters required to create a new registration definition.
+ * @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 registration definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistrationDefinitionInner createOrUpdate(
+ String registrationDefinitionId, String scope, RegistrationDefinitionInner requestBody);
+
+ /**
+ * Creates or updates a registration definition.
+ *
+ * @param registrationDefinitionId The GUID of the registration definition.
+ * @param scope The scope of the resource.
+ * @param requestBody The parameters required to create a new registration definition.
+ * @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 registration definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegistrationDefinitionInner createOrUpdate(
+ String registrationDefinitionId, String scope, RegistrationDefinitionInner requestBody, Context context);
+
+ /**
+ * Gets a list of the registration definitions.
+ *
+ * @param scope The scope of the 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 list of the registration definitions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope);
+
+ /**
+ * Gets a list of the registration definitions.
+ *
+ * @param scope The scope of the resource.
+ * @param filter The filter query parameter to filter managed services resources by.
+ * @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 the registration definitions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String scope, String filter, Context context);
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/MarketplaceRegistrationDefinitionInner.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/MarketplaceRegistrationDefinitionInner.java
new file mode 100644
index 0000000000000..747ba8b578e01
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/MarketplaceRegistrationDefinitionInner.java
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.managedservices.models.MarketplaceRegistrationDefinitionProperties;
+import com.azure.resourcemanager.managedservices.models.Plan;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The MarketplaceRegistrationDefinition model. */
+@Fluent
+public final class MarketplaceRegistrationDefinitionInner extends ProxyResource {
+ /*
+ * The properties of the marketplace registration definition.
+ */
+ @JsonProperty(value = "properties")
+ private MarketplaceRegistrationDefinitionProperties properties;
+
+ /*
+ * The details for the Managed Services offer’s plan in Azure Marketplace.
+ */
+ @JsonProperty(value = "plan")
+ private Plan plan;
+
+ /**
+ * Get the properties property: The properties of the marketplace registration definition.
+ *
+ * @return the properties value.
+ */
+ public MarketplaceRegistrationDefinitionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The properties of the marketplace registration definition.
+ *
+ * @param properties the properties value to set.
+ * @return the MarketplaceRegistrationDefinitionInner object itself.
+ */
+ public MarketplaceRegistrationDefinitionInner withProperties(
+ MarketplaceRegistrationDefinitionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the plan property: The details for the Managed Services offer’s plan in Azure Marketplace.
+ *
+ * @return the plan value.
+ */
+ public Plan plan() {
+ return this.plan;
+ }
+
+ /**
+ * Set the plan property: The details for the Managed Services offer’s plan in Azure Marketplace.
+ *
+ * @param plan the plan value to set.
+ * @return the MarketplaceRegistrationDefinitionInner object itself.
+ */
+ public MarketplaceRegistrationDefinitionInner withPlan(Plan plan) {
+ this.plan = plan;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ if (plan() != null) {
+ plan().validate();
+ }
+ }
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/OperationListInner.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/OperationListInner.java
new file mode 100644
index 0000000000000..f61a820143bde
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/OperationListInner.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.managedservices.models.Operation;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The list of the operations. */
+@Immutable
+public final class OperationListInner {
+ /*
+ * The list of Microsoft.ManagedServices operations.
+ */
+ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
+ private List value;
+
+ /**
+ * Get the value property: The list of Microsoft.ManagedServices operations.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/RegistrationAssignmentInner.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/RegistrationAssignmentInner.java
new file mode 100644
index 0000000000000..bb7a9a9c6268c
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/RegistrationAssignmentInner.java
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.managedservices.models.RegistrationAssignmentProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The registration assignment. */
+@Fluent
+public final class RegistrationAssignmentInner extends ProxyResource {
+ /*
+ * The properties of a registration assignment.
+ */
+ @JsonProperty(value = "properties")
+ private RegistrationAssignmentProperties properties;
+
+ /*
+ * The metadata for the registration assignment resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: The properties of a registration assignment.
+ *
+ * @return the properties value.
+ */
+ public RegistrationAssignmentProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The properties of a registration assignment.
+ *
+ * @param properties the properties value to set.
+ * @return the RegistrationAssignmentInner object itself.
+ */
+ public RegistrationAssignmentInner withProperties(RegistrationAssignmentProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: The metadata for the registration assignment resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/RegistrationDefinitionInner.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/RegistrationDefinitionInner.java
new file mode 100644
index 0000000000000..6becfde69e5d6
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/RegistrationDefinitionInner.java
@@ -0,0 +1,97 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.managedservices.models.Plan;
+import com.azure.resourcemanager.managedservices.models.RegistrationDefinitionProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The registration definition. */
+@Fluent
+public final class RegistrationDefinitionInner extends ProxyResource {
+ /*
+ * The properties of a registration definition.
+ */
+ @JsonProperty(value = "properties")
+ private RegistrationDefinitionProperties properties;
+
+ /*
+ * The details for the Managed Services offer’s plan in Azure Marketplace.
+ */
+ @JsonProperty(value = "plan")
+ private Plan plan;
+
+ /*
+ * The metadata for the registration assignment resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: The properties of a registration definition.
+ *
+ * @return the properties value.
+ */
+ public RegistrationDefinitionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The properties of a registration definition.
+ *
+ * @param properties the properties value to set.
+ * @return the RegistrationDefinitionInner object itself.
+ */
+ public RegistrationDefinitionInner withProperties(RegistrationDefinitionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the plan property: The details for the Managed Services offer’s plan in Azure Marketplace.
+ *
+ * @return the plan value.
+ */
+ public Plan plan() {
+ return this.plan;
+ }
+
+ /**
+ * Set the plan property: The details for the Managed Services offer’s plan in Azure Marketplace.
+ *
+ * @param plan the plan value to set.
+ * @return the RegistrationDefinitionInner object itself.
+ */
+ public RegistrationDefinitionInner withPlan(Plan plan) {
+ this.plan = plan;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: The metadata for the registration assignment resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ if (plan() != null) {
+ plan().validate();
+ }
+ }
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/package-info.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/package-info.java
new file mode 100644
index 0000000000000..de64906447bd7
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the inner data models for ManagedServicesClient. The specification for ManagedServices. */
+package com.azure.resourcemanager.managedservices.fluent.models;
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/package-info.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/package-info.java
new file mode 100644
index 0000000000000..af4a9b5447c8d
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/fluent/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the service clients for ManagedServicesClient. The specification for ManagedServices. */
+package com.azure.resourcemanager.managedservices.fluent;
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/implementation/ManagedServicesClientBuilder.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/implementation/ManagedServicesClientBuilder.java
new file mode 100644
index 0000000000000..912d90ca31e84
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/implementation/ManagedServicesClientBuilder.java
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.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.CookiePolicy;
+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 ManagedServicesClientImpl type. */
+@ServiceClientBuilder(serviceClients = {ManagedServicesClientImpl.class})
+public final class ManagedServicesClientBuilder {
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the ManagedServicesClientBuilder.
+ */
+ public ManagedServicesClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the ManagedServicesClientBuilder.
+ */
+ public ManagedServicesClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ 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 ManagedServicesClientBuilder.
+ */
+ public ManagedServicesClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ 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 ManagedServicesClientBuilder.
+ */
+ public ManagedServicesClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ 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 ManagedServicesClientBuilder.
+ */
+ public ManagedServicesClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of ManagedServicesClientImpl with the provided parameters.
+ *
+ * @return an instance of ManagedServicesClientImpl.
+ */
+ public ManagedServicesClientImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ ManagedServicesClientImpl client =
+ new ManagedServicesClientImpl(pipeline, serializerAdapter, defaultPollInterval, environment, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/implementation/ManagedServicesClientImpl.java b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/implementation/ManagedServicesClientImpl.java
new file mode 100644
index 0000000000000..1e3e81dfbbbf7
--- /dev/null
+++ b/sdk/managedservices/azure-resourcemanager-managedservices/src/main/java/com/azure/resourcemanager/managedservices/implementation/ManagedServicesClientImpl.java
@@ -0,0 +1,349 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.managedservices.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+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.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.managedservices.fluent.ManagedServicesClient;
+import com.azure.resourcemanager.managedservices.fluent.MarketplaceRegistrationDefinitionsClient;
+import com.azure.resourcemanager.managedservices.fluent.MarketplaceRegistrationDefinitionsWithoutScopesClient;
+import com.azure.resourcemanager.managedservices.fluent.OperationsClient;
+import com.azure.resourcemanager.managedservices.fluent.OperationsWithScopesClient;
+import com.azure.resourcemanager.managedservices.fluent.RegistrationAssignmentsClient;
+import com.azure.resourcemanager.managedservices.fluent.RegistrationDefinitionsClient;
+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 java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the ManagedServicesClientImpl type. */
+@ServiceClient(builder = ManagedServicesClientBuilder.class)
+public final class ManagedServicesClientImpl implements ManagedServicesClient {
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** 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 RegistrationDefinitionsClient object to access its operations. */
+ private final RegistrationDefinitionsClient registrationDefinitions;
+
+ /**
+ * Gets the RegistrationDefinitionsClient object to access its operations.
+ *
+ * @return the RegistrationDefinitionsClient object.
+ */
+ public RegistrationDefinitionsClient getRegistrationDefinitions() {
+ return this.registrationDefinitions;
+ }
+
+ /** The RegistrationAssignmentsClient object to access its operations. */
+ private final RegistrationAssignmentsClient registrationAssignments;
+
+ /**
+ * Gets the RegistrationAssignmentsClient object to access its operations.
+ *
+ * @return the RegistrationAssignmentsClient object.
+ */
+ public RegistrationAssignmentsClient getRegistrationAssignments() {
+ return this.registrationAssignments;
+ }
+
+ /** The MarketplaceRegistrationDefinitionsClient object to access its operations. */
+ private final MarketplaceRegistrationDefinitionsClient marketplaceRegistrationDefinitions;
+
+ /**
+ * Gets the MarketplaceRegistrationDefinitionsClient object to access its operations.
+ *
+ * @return the MarketplaceRegistrationDefinitionsClient object.
+ */
+ public MarketplaceRegistrationDefinitionsClient getMarketplaceRegistrationDefinitions() {
+ return this.marketplaceRegistrationDefinitions;
+ }
+
+ /** The MarketplaceRegistrationDefinitionsWithoutScopesClient object to access its operations. */
+ private final MarketplaceRegistrationDefinitionsWithoutScopesClient marketplaceRegistrationDefinitionsWithoutScopes;
+
+ /**
+ * Gets the MarketplaceRegistrationDefinitionsWithoutScopesClient object to access its operations.
+ *
+ * @return the MarketplaceRegistrationDefinitionsWithoutScopesClient object.
+ */
+ public MarketplaceRegistrationDefinitionsWithoutScopesClient getMarketplaceRegistrationDefinitionsWithoutScopes() {
+ return this.marketplaceRegistrationDefinitionsWithoutScopes;
+ }
+
+ /** 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 OperationsWithScopesClient object to access its operations. */
+ private final OperationsWithScopesClient operationsWithScopes;
+
+ /**
+ * Gets the OperationsWithScopesClient object to access its operations.
+ *
+ * @return the OperationsWithScopesClient object.
+ */
+ public OperationsWithScopesClient getOperationsWithScopes() {
+ return this.operationsWithScopes;
+ }
+
+ /**
+ * Initializes an instance of ManagedServicesClient 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 server parameter.
+ */
+ ManagedServicesClientImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.endpoint = endpoint;
+ this.apiVersion = "2022-01-01-preview";
+ this.registrationDefinitions = new RegistrationDefinitionsClientImpl(this);
+ this.registrationAssignments = new RegistrationAssignmentsClientImpl(this);
+ this.marketplaceRegistrationDefinitions = new MarketplaceRegistrationDefinitionsClientImpl(this);
+ this.marketplaceRegistrationDefinitionsWithoutScopes =
+ new MarketplaceRegistrationDefinitionsWithoutScopesClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
+ this.operationsWithScopes = new OperationsWithScopesClientImpl(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) {
+ for (Map.Entry