diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/CHANGELOG.md b/sdk/mixedreality/azure-resourcemanager-mixedreality/CHANGELOG.md
index bc414fd07f8d..5357082a75ee 100644
--- a/sdk/mixedreality/azure-resourcemanager-mixedreality/CHANGELOG.md
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/CHANGELOG.md
@@ -1,6 +1,7 @@
# Release History
-## 1.0.0-beta.1 (2021-04-22)
+## 1.0.0-beta.1 (2021-04-26)
+- Azure Resource Manager MixedReality client library for Java. This package contains Microsoft Azure SDK for MixedReality Management SDK. Mixed Reality Client. Package tag package-2021-03-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
- Azure Resource Manager MixedReality client library for Java. This package contains Microsoft Azure SDK for MixedReality Management SDK. Mixed Reality Client. Package tag package-2021-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/mixedreality/azure-resourcemanager-mixedreality/README.md b/sdk/mixedreality/azure-resourcemanager-mixedreality/README.md
index 6c3e245ff86f..cfa4a42b35d4 100644
--- a/sdk/mixedreality/azure-resourcemanager-mixedreality/README.md
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager MixedReality client library for Java.
-This package contains Microsoft Azure SDK for MixedReality Management SDK. Mixed Reality Client. Package tag package-2021-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for MixedReality Management SDK. Mixed Reality Client. Package tag package-2021-03-01-preview. 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
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/pom.xml b/sdk/mixedreality/azure-resourcemanager-mixedreality/pom.xml
index 7f44847f9667..11b9428f0516 100644
--- a/sdk/mixedreality/azure-resourcemanager-mixedreality/pom.xml
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for MixedReality Management
- This package contains Microsoft Azure SDK for MixedReality Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Mixed Reality Client. Package tag package-2021-01.
+ This package contains Microsoft Azure SDK for MixedReality Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Mixed Reality Client. Package tag package-2021-03-01-preview.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/MixedRealityManager.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/MixedRealityManager.java
index 030f4b2c5911..ceb7015af21b 100644
--- a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/MixedRealityManager.java
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/MixedRealityManager.java
@@ -22,10 +22,12 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mixedreality.fluent.MixedRealityClient;
import com.azure.resourcemanager.mixedreality.implementation.MixedRealityClientBuilder;
+import com.azure.resourcemanager.mixedreality.implementation.ObjectAnchorsAccountsImpl;
import com.azure.resourcemanager.mixedreality.implementation.OperationsImpl;
import com.azure.resourcemanager.mixedreality.implementation.RemoteRenderingAccountsImpl;
import com.azure.resourcemanager.mixedreality.implementation.ResourceProvidersImpl;
import com.azure.resourcemanager.mixedreality.implementation.SpatialAnchorsAccountsImpl;
+import com.azure.resourcemanager.mixedreality.models.ObjectAnchorsAccounts;
import com.azure.resourcemanager.mixedreality.models.Operations;
import com.azure.resourcemanager.mixedreality.models.RemoteRenderingAccounts;
import com.azure.resourcemanager.mixedreality.models.ResourceProviders;
@@ -46,6 +48,8 @@ public final class MixedRealityManager {
private RemoteRenderingAccounts remoteRenderingAccounts;
+ private ObjectAnchorsAccounts objectAnchorsAccounts;
+
private final MixedRealityClient clientObject;
private MixedRealityManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -243,6 +247,14 @@ public RemoteRenderingAccounts remoteRenderingAccounts() {
return remoteRenderingAccounts;
}
+ /** @return Resource collection API of ObjectAnchorsAccounts. */
+ public ObjectAnchorsAccounts objectAnchorsAccounts() {
+ if (this.objectAnchorsAccounts == null) {
+ this.objectAnchorsAccounts = new ObjectAnchorsAccountsImpl(clientObject.getObjectAnchorsAccounts(), this);
+ }
+ return objectAnchorsAccounts;
+ }
+
/**
* @return Wrapped service client MixedRealityClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/MixedRealityClient.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/MixedRealityClient.java
index 83ac18805936..14ab8e52adcd 100644
--- a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/MixedRealityClient.java
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/MixedRealityClient.java
@@ -71,4 +71,11 @@ public interface MixedRealityClient {
* @return the RemoteRenderingAccountsClient object.
*/
RemoteRenderingAccountsClient getRemoteRenderingAccounts();
+
+ /**
+ * Gets the ObjectAnchorsAccountsClient object to access its operations.
+ *
+ * @return the ObjectAnchorsAccountsClient object.
+ */
+ ObjectAnchorsAccountsClient getObjectAnchorsAccounts();
}
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/ObjectAnchorsAccountsClient.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/ObjectAnchorsAccountsClient.java
new file mode 100644
index 000000000000..9732317d8081
--- /dev/null
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/ObjectAnchorsAccountsClient.java
@@ -0,0 +1,238 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mixedreality.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.mixedreality.fluent.models.AccountKeysInner;
+import com.azure.resourcemanager.mixedreality.fluent.models.ObjectAnchorsAccountInner;
+import com.azure.resourcemanager.mixedreality.models.AccountKeyRegenerateRequest;
+
+/** An instance of this class provides access to all the operations defined in ObjectAnchorsAccountsClient. */
+public interface ObjectAnchorsAccountsClient {
+ /**
+ * List Object Anchors Accounts by Subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List Object Anchors Accounts by Subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List Resources by Resource Group.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @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 result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List Resources by Resource Group.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @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 result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Delete an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String accountName);
+
+ /**
+ * Delete an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Retrieve an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @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 objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ObjectAnchorsAccountInner getByResourceGroup(String resourceGroupName, String accountName);
+
+ /**
+ * Retrieve an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @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 objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Updating an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @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 objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ObjectAnchorsAccountInner update(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount);
+
+ /**
+ * Updating an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @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 objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount, Context context);
+
+ /**
+ * Creating or Updating an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @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 objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ObjectAnchorsAccountInner create(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount);
+
+ /**
+ * Creating or Updating an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @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 objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount, Context context);
+
+ /**
+ * List Both of the 2 Keys of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @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 developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccountKeysInner listKeys(String resourceGroupName, String accountName);
+
+ /**
+ * List Both of the 2 Keys of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @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 developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Regenerate specified Key of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param regenerate Required information for key regeneration.
+ * @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 developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccountKeysInner regenerateKeys(
+ String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate);
+
+ /**
+ * Regenerate specified Key of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param regenerate Required information for key regeneration.
+ * @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 developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response regenerateKeysWithResponse(
+ String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate, Context context);
+}
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/models/ObjectAnchorsAccountInner.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/models/ObjectAnchorsAccountInner.java
new file mode 100644
index 000000000000..2fc18ee9a923
--- /dev/null
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/models/ObjectAnchorsAccountInner.java
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mixedreality.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mixedreality.models.ObjectAnchorsAccountIdentity;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** ObjectAnchorsAccount Response. */
+@JsonFlatten
+@Fluent
+public class ObjectAnchorsAccountInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ObjectAnchorsAccountInner.class);
+
+ /*
+ * The identity property.
+ */
+ @JsonProperty(value = "identity")
+ private ObjectAnchorsAccountIdentity identity;
+
+ /*
+ * The system metadata related to an object anchors account.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The name of the storage account associated with this accountId
+ */
+ @JsonProperty(value = "properties.storageAccountName")
+ private String storageAccountName;
+
+ /*
+ * unique id of certain account.
+ */
+ @JsonProperty(value = "properties.accountId", access = JsonProperty.Access.WRITE_ONLY)
+ private String accountId;
+
+ /*
+ * Correspond domain name of certain Spatial Anchors Account
+ */
+ @JsonProperty(value = "properties.accountDomain", access = JsonProperty.Access.WRITE_ONLY)
+ private String accountDomain;
+
+ /**
+ * Get the identity property: The identity property.
+ *
+ * @return the identity value.
+ */
+ public ObjectAnchorsAccountIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity property.
+ *
+ * @param identity the identity value to set.
+ * @return the ObjectAnchorsAccountInner object itself.
+ */
+ public ObjectAnchorsAccountInner withIdentity(ObjectAnchorsAccountIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: The system metadata related to an object anchors account.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the storageAccountName property: The name of the storage account associated with this accountId.
+ *
+ * @return the storageAccountName value.
+ */
+ public String storageAccountName() {
+ return this.storageAccountName;
+ }
+
+ /**
+ * Set the storageAccountName property: The name of the storage account associated with this accountId.
+ *
+ * @param storageAccountName the storageAccountName value to set.
+ * @return the ObjectAnchorsAccountInner object itself.
+ */
+ public ObjectAnchorsAccountInner withStorageAccountName(String storageAccountName) {
+ this.storageAccountName = storageAccountName;
+ return this;
+ }
+
+ /**
+ * Get the accountId property: unique id of certain account.
+ *
+ * @return the accountId value.
+ */
+ public String accountId() {
+ return this.accountId;
+ }
+
+ /**
+ * Get the accountDomain property: Correspond domain name of certain Spatial Anchors Account.
+ *
+ * @return the accountDomain value.
+ */
+ public String accountDomain() {
+ return this.accountDomain;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ObjectAnchorsAccountInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ObjectAnchorsAccountInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ }
+}
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/MixedRealityClientImpl.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/MixedRealityClientImpl.java
index 15870ed44352..40b0c4a7d3b5 100644
--- a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/MixedRealityClientImpl.java
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/MixedRealityClientImpl.java
@@ -22,6 +22,7 @@
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.mixedreality.fluent.MixedRealityClient;
+import com.azure.resourcemanager.mixedreality.fluent.ObjectAnchorsAccountsClient;
import com.azure.resourcemanager.mixedreality.fluent.OperationsClient;
import com.azure.resourcemanager.mixedreality.fluent.RemoteRenderingAccountsClient;
import com.azure.resourcemanager.mixedreality.fluent.ResourceProvidersClient;
@@ -161,6 +162,18 @@ public RemoteRenderingAccountsClient getRemoteRenderingAccounts() {
return this.remoteRenderingAccounts;
}
+ /** The ObjectAnchorsAccountsClient object to access its operations. */
+ private final ObjectAnchorsAccountsClient objectAnchorsAccounts;
+
+ /**
+ * Gets the ObjectAnchorsAccountsClient object to access its operations.
+ *
+ * @return the ObjectAnchorsAccountsClient object.
+ */
+ public ObjectAnchorsAccountsClient getObjectAnchorsAccounts() {
+ return this.objectAnchorsAccounts;
+ }
+
/**
* Initializes an instance of MixedRealityClient client.
*
@@ -184,11 +197,12 @@ public RemoteRenderingAccountsClient getRemoteRenderingAccounts() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-01-01";
+ this.apiVersion = "2021-03-01-preview";
this.operations = new OperationsClientImpl(this);
this.resourceProviders = new ResourceProvidersClientImpl(this);
this.spatialAnchorsAccounts = new SpatialAnchorsAccountsClientImpl(this);
this.remoteRenderingAccounts = new RemoteRenderingAccountsClientImpl(this);
+ this.objectAnchorsAccounts = new ObjectAnchorsAccountsClientImpl(this);
}
/**
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/ObjectAnchorsAccountImpl.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/ObjectAnchorsAccountImpl.java
new file mode 100644
index 000000000000..90bf234406d2
--- /dev/null
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/ObjectAnchorsAccountImpl.java
@@ -0,0 +1,216 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mixedreality.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mixedreality.fluent.models.ObjectAnchorsAccountInner;
+import com.azure.resourcemanager.mixedreality.models.AccountKeyRegenerateRequest;
+import com.azure.resourcemanager.mixedreality.models.AccountKeys;
+import com.azure.resourcemanager.mixedreality.models.ObjectAnchorsAccount;
+import com.azure.resourcemanager.mixedreality.models.ObjectAnchorsAccountIdentity;
+import java.util.Collections;
+import java.util.Map;
+
+public final class ObjectAnchorsAccountImpl
+ implements ObjectAnchorsAccount, ObjectAnchorsAccount.Definition, ObjectAnchorsAccount.Update {
+ private ObjectAnchorsAccountInner innerObject;
+
+ private final com.azure.resourcemanager.mixedreality.MixedRealityManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public ObjectAnchorsAccountIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String storageAccountName() {
+ return this.innerModel().storageAccountName();
+ }
+
+ public String accountId() {
+ return this.innerModel().accountId();
+ }
+
+ public String accountDomain() {
+ return this.innerModel().accountDomain();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public ObjectAnchorsAccountInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.mixedreality.MixedRealityManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String accountName;
+
+ public ObjectAnchorsAccountImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public ObjectAnchorsAccount create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getObjectAnchorsAccounts()
+ .createWithResponse(resourceGroupName, accountName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ObjectAnchorsAccount create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getObjectAnchorsAccounts()
+ .createWithResponse(resourceGroupName, accountName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ObjectAnchorsAccountImpl(String name, com.azure.resourcemanager.mixedreality.MixedRealityManager serviceManager) {
+ this.innerObject = new ObjectAnchorsAccountInner();
+ this.serviceManager = serviceManager;
+ this.accountName = name;
+ }
+
+ public ObjectAnchorsAccountImpl update() {
+ return this;
+ }
+
+ public ObjectAnchorsAccount apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getObjectAnchorsAccounts()
+ .updateWithResponse(resourceGroupName, accountName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ObjectAnchorsAccount apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getObjectAnchorsAccounts()
+ .updateWithResponse(resourceGroupName, accountName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ObjectAnchorsAccountImpl(
+ ObjectAnchorsAccountInner innerObject,
+ com.azure.resourcemanager.mixedreality.MixedRealityManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.accountName = Utils.getValueFromIdByName(innerObject.id(), "objectAnchorsAccounts");
+ }
+
+ public ObjectAnchorsAccount refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getObjectAnchorsAccounts()
+ .getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ObjectAnchorsAccount refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getObjectAnchorsAccounts()
+ .getByResourceGroupWithResponse(resourceGroupName, accountName, context)
+ .getValue();
+ return this;
+ }
+
+ public AccountKeys listKeys() {
+ return serviceManager.objectAnchorsAccounts().listKeys(resourceGroupName, accountName);
+ }
+
+ public Response listKeysWithResponse(Context context) {
+ return serviceManager.objectAnchorsAccounts().listKeysWithResponse(resourceGroupName, accountName, context);
+ }
+
+ public AccountKeys regenerateKeys(AccountKeyRegenerateRequest regenerate) {
+ return serviceManager.objectAnchorsAccounts().regenerateKeys(resourceGroupName, accountName, regenerate);
+ }
+
+ public Response regenerateKeysWithResponse(AccountKeyRegenerateRequest regenerate, Context context) {
+ return serviceManager
+ .objectAnchorsAccounts()
+ .regenerateKeysWithResponse(resourceGroupName, accountName, regenerate, context);
+ }
+
+ public ObjectAnchorsAccountImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public ObjectAnchorsAccountImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public ObjectAnchorsAccountImpl withTags(Map tags) {
+ this.innerModel().withTags(tags);
+ return this;
+ }
+
+ public ObjectAnchorsAccountImpl withIdentity(ObjectAnchorsAccountIdentity identity) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ }
+
+ public ObjectAnchorsAccountImpl withStorageAccountName(String storageAccountName) {
+ this.innerModel().withStorageAccountName(storageAccountName);
+ return this;
+ }
+}
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/ObjectAnchorsAccountsClientImpl.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/ObjectAnchorsAccountsClientImpl.java
new file mode 100644
index 000000000000..30e8129a5ef4
--- /dev/null
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/ObjectAnchorsAccountsClientImpl.java
@@ -0,0 +1,1602 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mixedreality.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mixedreality.fluent.ObjectAnchorsAccountsClient;
+import com.azure.resourcemanager.mixedreality.fluent.models.AccountKeysInner;
+import com.azure.resourcemanager.mixedreality.fluent.models.ObjectAnchorsAccountInner;
+import com.azure.resourcemanager.mixedreality.models.AccountKeyRegenerateRequest;
+import com.azure.resourcemanager.mixedreality.models.ObjectAnchorsAccountPage;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ObjectAnchorsAccountsClient. */
+public final class ObjectAnchorsAccountsClientImpl implements ObjectAnchorsAccountsClient {
+ private final ClientLogger logger = new ClientLogger(ObjectAnchorsAccountsClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final ObjectAnchorsAccountsService service;
+
+ /** The service client containing this operation class. */
+ private final MixedRealityClientImpl client;
+
+ /**
+ * Initializes an instance of ObjectAnchorsAccountsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ObjectAnchorsAccountsClientImpl(MixedRealityClientImpl client) {
+ this.service =
+ RestProxy
+ .create(ObjectAnchorsAccountsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MixedRealityClientObjectAnchorsAccounts to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MixedRealityClientOb")
+ private interface ObjectAnchorsAccountsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/objectAnchorsAccounts")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality"
+ + "/objectAnchorsAccounts")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality"
+ + "/objectAnchorsAccounts/{accountName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality"
+ + "/objectAnchorsAccounts/{accountName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality"
+ + "/objectAnchorsAccounts/{accountName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ObjectAnchorsAccountInner objectAnchorsAccount,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality"
+ + "/objectAnchorsAccounts/{accountName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> create(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ObjectAnchorsAccountInner objectAnchorsAccount,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality"
+ + "/objectAnchorsAccounts/{accountName}/listKeys")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listKeys(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality"
+ + "/objectAnchorsAccounts/{accountName}/regenerateKeys")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> regenerateKeys(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") AccountKeyRegenerateRequest regenerate,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List Object Anchors Accounts by Subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List Object Anchors Accounts by Subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List Object Anchors Accounts by Subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Object Anchors Accounts by Subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(context), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List Object Anchors Accounts by Subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * List Object Anchors Accounts by Subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * List Resources by Resource Group.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List Resources by Resource Group.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List Resources by Resource Group.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Resources by Resource Group.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List Resources by Resource Group.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ }
+
+ /**
+ * List Resources by Resource Group.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ }
+
+ /**
+ * Delete an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(String resourceGroupName, String accountName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String accountName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Delete an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String accountName) {
+ return deleteWithResponseAsync(resourceGroupName, accountName).flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Delete an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String accountName) {
+ deleteAsync(resourceGroupName, accountName).block();
+ }
+
+ /**
+ * Delete an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(String resourceGroupName, String accountName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, accountName, context).block();
+ }
+
+ /**
+ * Retrieve an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String accountName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Retrieve an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String accountName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Retrieve an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, accountName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Retrieve an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ObjectAnchorsAccountInner getByResourceGroup(String resourceGroupName, String accountName) {
+ return getByResourceGroupAsync(resourceGroupName, accountName).block();
+ }
+
+ /**
+ * Retrieve an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block();
+ }
+
+ /**
+ * Updating an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (objectAnchorsAccount == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter objectAnchorsAccount is required and cannot be null."));
+ } else {
+ objectAnchorsAccount.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ objectAnchorsAccount,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Updating an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (objectAnchorsAccount == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter objectAnchorsAccount is required and cannot be null."));
+ } else {
+ objectAnchorsAccount.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ objectAnchorsAccount,
+ accept,
+ context);
+ }
+
+ /**
+ * Updating an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount) {
+ return updateWithResponseAsync(resourceGroupName, accountName, objectAnchorsAccount)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Updating an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ObjectAnchorsAccountInner update(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount) {
+ return updateAsync(resourceGroupName, accountName, objectAnchorsAccount).block();
+ }
+
+ /**
+ * Updating an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount, Context context) {
+ return updateWithResponseAsync(resourceGroupName, accountName, objectAnchorsAccount, context).block();
+ }
+
+ /**
+ * Creating or Updating an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createWithResponseAsync(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (objectAnchorsAccount == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter objectAnchorsAccount is required and cannot be null."));
+ } else {
+ objectAnchorsAccount.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ objectAnchorsAccount,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creating or Updating an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createWithResponseAsync(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (objectAnchorsAccount == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter objectAnchorsAccount is required and cannot be null."));
+ } else {
+ objectAnchorsAccount.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ objectAnchorsAccount,
+ accept,
+ context);
+ }
+
+ /**
+ * Creating or Updating an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount) {
+ return createWithResponseAsync(resourceGroupName, accountName, objectAnchorsAccount)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Creating or Updating an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ObjectAnchorsAccountInner create(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount) {
+ return createAsync(resourceGroupName, accountName, objectAnchorsAccount).block();
+ }
+
+ /**
+ * Creating or Updating an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param objectAnchorsAccount Object Anchors Account parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createWithResponse(
+ String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount, Context context) {
+ return createWithResponseAsync(resourceGroupName, accountName, objectAnchorsAccount, context).block();
+ }
+
+ /**
+ * List Both of the 2 Keys of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listKeysWithResponseAsync(String resourceGroupName, String accountName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listKeys(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List Both of the 2 Keys of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listKeysWithResponseAsync(
+ String resourceGroupName, String accountName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listKeys(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * List Both of the 2 Keys of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listKeysAsync(String resourceGroupName, String accountName) {
+ return listKeysWithResponseAsync(resourceGroupName, accountName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * List Both of the 2 Keys of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AccountKeysInner listKeys(String resourceGroupName, String accountName) {
+ return listKeysAsync(resourceGroupName, accountName).block();
+ }
+
+ /**
+ * List Both of the 2 Keys of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listKeysWithResponse(
+ String resourceGroupName, String accountName, Context context) {
+ return listKeysWithResponseAsync(resourceGroupName, accountName, context).block();
+ }
+
+ /**
+ * Regenerate specified Key of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param regenerate Required information for key regeneration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> regenerateKeysWithResponseAsync(
+ String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (regenerate == null) {
+ return Mono.error(new IllegalArgumentException("Parameter regenerate is required and cannot be null."));
+ } else {
+ regenerate.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .regenerateKeys(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ regenerate,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Regenerate specified Key of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param regenerate Required information for key regeneration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> regenerateKeysWithResponseAsync(
+ String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (regenerate == null) {
+ return Mono.error(new IllegalArgumentException("Parameter regenerate is required and cannot be null."));
+ } else {
+ regenerate.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .regenerateKeys(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ regenerate,
+ accept,
+ context);
+ }
+
+ /**
+ * Regenerate specified Key of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param regenerate Required information for key regeneration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono regenerateKeysAsync(
+ String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate) {
+ return regenerateKeysWithResponseAsync(resourceGroupName, accountName, regenerate)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Regenerate specified Key of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param regenerate Required information for key regeneration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AccountKeysInner regenerateKeys(
+ String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate) {
+ return regenerateKeysAsync(resourceGroupName, accountName, regenerate).block();
+ }
+
+ /**
+ * Regenerate specified Key of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param regenerate Required information for key regeneration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return developer Keys of account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response regenerateKeysWithResponse(
+ String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate, Context context) {
+ return regenerateKeysWithResponseAsync(resourceGroupName, accountName, regenerate, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/ObjectAnchorsAccountsImpl.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/ObjectAnchorsAccountsImpl.java
new file mode 100644
index 000000000000..da3405074cd9
--- /dev/null
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/ObjectAnchorsAccountsImpl.java
@@ -0,0 +1,235 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mixedreality.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mixedreality.fluent.ObjectAnchorsAccountsClient;
+import com.azure.resourcemanager.mixedreality.fluent.models.AccountKeysInner;
+import com.azure.resourcemanager.mixedreality.fluent.models.ObjectAnchorsAccountInner;
+import com.azure.resourcemanager.mixedreality.models.AccountKeyRegenerateRequest;
+import com.azure.resourcemanager.mixedreality.models.AccountKeys;
+import com.azure.resourcemanager.mixedreality.models.ObjectAnchorsAccount;
+import com.azure.resourcemanager.mixedreality.models.ObjectAnchorsAccounts;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class ObjectAnchorsAccountsImpl implements ObjectAnchorsAccounts {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ObjectAnchorsAccountsImpl.class);
+
+ private final ObjectAnchorsAccountsClient innerClient;
+
+ private final com.azure.resourcemanager.mixedreality.MixedRealityManager serviceManager;
+
+ public ObjectAnchorsAccountsImpl(
+ ObjectAnchorsAccountsClient innerClient,
+ com.azure.resourcemanager.mixedreality.MixedRealityManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new ObjectAnchorsAccountImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return Utils.mapPage(inner, inner1 -> new ObjectAnchorsAccountImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
+ return Utils.mapPage(inner, inner1 -> new ObjectAnchorsAccountImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByResourceGroup(resourceGroupName, context);
+ return Utils.mapPage(inner, inner1 -> new ObjectAnchorsAccountImpl(inner1, this.manager()));
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String accountName) {
+ this.serviceClient().delete(resourceGroupName, accountName);
+ }
+
+ public Response deleteWithResponse(String resourceGroupName, String accountName, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, context);
+ }
+
+ public ObjectAnchorsAccount getByResourceGroup(String resourceGroupName, String accountName) {
+ ObjectAnchorsAccountInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName);
+ if (inner != null) {
+ return new ObjectAnchorsAccountImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context) {
+ Response inner =
+ this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, accountName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ObjectAnchorsAccountImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public AccountKeys listKeys(String resourceGroupName, String accountName) {
+ AccountKeysInner inner = this.serviceClient().listKeys(resourceGroupName, accountName);
+ if (inner != null) {
+ return new AccountKeysImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response listKeysWithResponse(String resourceGroupName, String accountName, Context context) {
+ Response inner =
+ this.serviceClient().listKeysWithResponse(resourceGroupName, accountName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new AccountKeysImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public AccountKeys regenerateKeys(
+ String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate) {
+ AccountKeysInner inner = this.serviceClient().regenerateKeys(resourceGroupName, accountName, regenerate);
+ if (inner != null) {
+ return new AccountKeysImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response regenerateKeysWithResponse(
+ String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate, Context context) {
+ Response inner =
+ this.serviceClient().regenerateKeysWithResponse(resourceGroupName, accountName, regenerate, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new AccountKeysImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ObjectAnchorsAccount getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "objectAnchorsAccounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'objectAnchorsAccounts'.",
+ id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "objectAnchorsAccounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'objectAnchorsAccounts'.",
+ id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, accountName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "objectAnchorsAccounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'objectAnchorsAccounts'.",
+ id)));
+ }
+ this.deleteWithResponse(resourceGroupName, accountName, Context.NONE).getValue();
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "objectAnchorsAccounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'objectAnchorsAccounts'.",
+ id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, accountName, context);
+ }
+
+ private ObjectAnchorsAccountsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.mixedreality.MixedRealityManager manager() {
+ return this.serviceManager;
+ }
+
+ public ObjectAnchorsAccountImpl define(String name) {
+ return new ObjectAnchorsAccountImpl(name, this.manager());
+ }
+}
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/AccountKeyRegenerateRequest.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/AccountKeyRegenerateRequest.java
index 6d7bcba560a6..139fb8a0458b 100644
--- a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/AccountKeyRegenerateRequest.java
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/AccountKeyRegenerateRequest.java
@@ -15,13 +15,13 @@ public final class AccountKeyRegenerateRequest {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AccountKeyRegenerateRequest.class);
/*
- * serial of key to be regenerated
+ * Serial of key to be regenerated
*/
@JsonProperty(value = "serial")
private Serial serial;
/**
- * Get the serial property: serial of key to be regenerated.
+ * Get the serial property: Serial of key to be regenerated.
*
* @return the serial value.
*/
@@ -30,7 +30,7 @@ public Serial serial() {
}
/**
- * Set the serial property: serial of key to be regenerated.
+ * Set the serial property: Serial of key to be regenerated.
*
* @param serial the serial value to set.
* @return the AccountKeyRegenerateRequest object itself.
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccount.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccount.java
new file mode 100644
index 000000000000..aaf53b42ebe4
--- /dev/null
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccount.java
@@ -0,0 +1,315 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mixedreality.models;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mixedreality.fluent.models.ObjectAnchorsAccountInner;
+import java.util.Map;
+
+/** An immutable client-side representation of ObjectAnchorsAccount. */
+public interface ObjectAnchorsAccount {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * Gets the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * Gets the identity property: The identity property.
+ *
+ * @return the identity value.
+ */
+ ObjectAnchorsAccountIdentity identity();
+
+ /**
+ * Gets the systemData property: The system metadata related to an object anchors account.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the storageAccountName property: The name of the storage account associated with this accountId.
+ *
+ * @return the storageAccountName value.
+ */
+ String storageAccountName();
+
+ /**
+ * Gets the accountId property: unique id of certain account.
+ *
+ * @return the accountId value.
+ */
+ String accountId();
+
+ /**
+ * Gets the accountDomain property: Correspond domain name of certain Spatial Anchors Account.
+ *
+ * @return the accountDomain value.
+ */
+ String accountDomain();
+
+ /**
+ * Gets the region of the resource.
+ *
+ * @return the region of the resource.
+ */
+ Region region();
+
+ /**
+ * Gets the name of the resource region.
+ *
+ * @return the name of the resource region.
+ */
+ String regionName();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.mixedreality.fluent.models.ObjectAnchorsAccountInner object.
+ *
+ * @return the inner object.
+ */
+ ObjectAnchorsAccountInner innerModel();
+
+ /** The entirety of the ObjectAnchorsAccount definition. */
+ interface Definition
+ extends DefinitionStages.Blank,
+ DefinitionStages.WithLocation,
+ DefinitionStages.WithResourceGroup,
+ DefinitionStages.WithCreate {
+ }
+ /** The ObjectAnchorsAccount definition stages. */
+ interface DefinitionStages {
+ /** The first stage of the ObjectAnchorsAccount definition. */
+ interface Blank extends WithLocation {
+ }
+ /** The stage of the ObjectAnchorsAccount definition allowing to specify location. */
+ interface WithLocation {
+ /**
+ * Specifies the region for the resource.
+ *
+ * @param location The geo-location where the resource lives.
+ * @return the next definition stage.
+ */
+ WithResourceGroup withRegion(Region location);
+
+ /**
+ * Specifies the region for the resource.
+ *
+ * @param location The geo-location where the resource lives.
+ * @return the next definition stage.
+ */
+ WithResourceGroup withRegion(String location);
+ }
+ /** The stage of the ObjectAnchorsAccount definition allowing to specify parent resource. */
+ interface WithResourceGroup {
+ /**
+ * Specifies resourceGroupName.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @return the next definition stage.
+ */
+ WithCreate withExistingResourceGroup(String resourceGroupName);
+ }
+ /**
+ * The stage of the ObjectAnchorsAccount definition which contains all the minimum required properties for the
+ * resource to be created, but also allows for any other optional properties to be specified.
+ */
+ interface WithCreate
+ extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, DefinitionStages.WithStorageAccountName {
+ /**
+ * Executes the create request.
+ *
+ * @return the created resource.
+ */
+ ObjectAnchorsAccount create();
+
+ /**
+ * Executes the create request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the created resource.
+ */
+ ObjectAnchorsAccount create(Context context);
+ }
+ /** The stage of the ObjectAnchorsAccount definition allowing to specify tags. */
+ interface WithTags {
+ /**
+ * Specifies the tags property: Resource tags..
+ *
+ * @param tags Resource tags.
+ * @return the next definition stage.
+ */
+ WithCreate withTags(Map tags);
+ }
+ /** The stage of the ObjectAnchorsAccount definition allowing to specify identity. */
+ interface WithIdentity {
+ /**
+ * Specifies the identity property: The identity property..
+ *
+ * @param identity The identity property.
+ * @return the next definition stage.
+ */
+ WithCreate withIdentity(ObjectAnchorsAccountIdentity identity);
+ }
+ /** The stage of the ObjectAnchorsAccount definition allowing to specify storageAccountName. */
+ interface WithStorageAccountName {
+ /**
+ * Specifies the storageAccountName property: The name of the storage account associated with this
+ * accountId.
+ *
+ * @param storageAccountName The name of the storage account associated with this accountId.
+ * @return the next definition stage.
+ */
+ WithCreate withStorageAccountName(String storageAccountName);
+ }
+ }
+ /**
+ * Begins update for the ObjectAnchorsAccount resource.
+ *
+ * @return the stage of resource update.
+ */
+ ObjectAnchorsAccount.Update update();
+
+ /** The template for ObjectAnchorsAccount update. */
+ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithStorageAccountName {
+ /**
+ * Executes the update request.
+ *
+ * @return the updated resource.
+ */
+ ObjectAnchorsAccount apply();
+
+ /**
+ * Executes the update request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the updated resource.
+ */
+ ObjectAnchorsAccount apply(Context context);
+ }
+ /** The ObjectAnchorsAccount update stages. */
+ interface UpdateStages {
+ /** The stage of the ObjectAnchorsAccount update allowing to specify tags. */
+ interface WithTags {
+ /**
+ * Specifies the tags property: Resource tags..
+ *
+ * @param tags Resource tags.
+ * @return the next definition stage.
+ */
+ Update withTags(Map tags);
+ }
+ /** The stage of the ObjectAnchorsAccount update allowing to specify identity. */
+ interface WithIdentity {
+ /**
+ * Specifies the identity property: The identity property..
+ *
+ * @param identity The identity property.
+ * @return the next definition stage.
+ */
+ Update withIdentity(ObjectAnchorsAccountIdentity identity);
+ }
+ /** The stage of the ObjectAnchorsAccount update allowing to specify storageAccountName. */
+ interface WithStorageAccountName {
+ /**
+ * Specifies the storageAccountName property: The name of the storage account associated with this
+ * accountId.
+ *
+ * @param storageAccountName The name of the storage account associated with this accountId.
+ * @return the next definition stage.
+ */
+ Update withStorageAccountName(String storageAccountName);
+ }
+ }
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @return the refreshed resource.
+ */
+ ObjectAnchorsAccount refresh();
+
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @param context The context to associate with this operation.
+ * @return the refreshed resource.
+ */
+ ObjectAnchorsAccount refresh(Context context);
+
+ /**
+ * List Both of the 2 Keys of an object anchors Account.
+ *
+ * @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 developer Keys of account.
+ */
+ AccountKeys listKeys();
+
+ /**
+ * List Both of the 2 Keys of an object anchors Account.
+ *
+ * @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 developer Keys of account.
+ */
+ Response listKeysWithResponse(Context context);
+
+ /**
+ * Regenerate specified Key of an object anchors Account.
+ *
+ * @param regenerate Required information for key regeneration.
+ * @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 developer Keys of account.
+ */
+ AccountKeys regenerateKeys(AccountKeyRegenerateRequest regenerate);
+
+ /**
+ * Regenerate specified Key of an object anchors Account.
+ *
+ * @param regenerate Required information for key regeneration.
+ * @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 developer Keys of account.
+ */
+ Response regenerateKeysWithResponse(AccountKeyRegenerateRequest regenerate, Context context);
+}
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccountIdentity.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccountIdentity.java
new file mode 100644
index 000000000000..26acab2c7717
--- /dev/null
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccountIdentity.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mixedreality.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+/** The ObjectAnchorsAccountIdentity model. */
+@Immutable
+public class ObjectAnchorsAccountIdentity extends Identity {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ObjectAnchorsAccountIdentity.class);
+
+ /** {@inheritDoc} */
+ @Override
+ public ObjectAnchorsAccountIdentity withType(ResourceIdentityType type) {
+ super.withType(type);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccountPage.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccountPage.java
new file mode 100644
index 000000000000..dc2ae58c72c1
--- /dev/null
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccountPage.java
@@ -0,0 +1,84 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mixedreality.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mixedreality.fluent.models.ObjectAnchorsAccountInner;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set
+ * of results.
+ */
+@Fluent
+public final class ObjectAnchorsAccountPage {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ObjectAnchorsAccountPage.class);
+
+ /*
+ * List of resources supported by the Resource Provider.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /*
+ * URL to get the next set of resource list results if there are any.
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
+ /**
+ * Get the value property: List of resources supported by the Resource Provider.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: List of resources supported by the Resource Provider.
+ *
+ * @param value the value value to set.
+ * @return the ObjectAnchorsAccountPage object itself.
+ */
+ public ObjectAnchorsAccountPage withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: URL to get the next set of resource list results if there are any.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: URL to get the next set of resource list results if there are any.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the ObjectAnchorsAccountPage object itself.
+ */
+ public ObjectAnchorsAccountPage withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * 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/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccounts.java b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccounts.java
new file mode 100644
index 000000000000..00fa8e69133d
--- /dev/null
+++ b/sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/ObjectAnchorsAccounts.java
@@ -0,0 +1,211 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mixedreality.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of ObjectAnchorsAccounts. */
+public interface ObjectAnchorsAccounts {
+ /**
+ * List Object Anchors Accounts by Subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ PagedIterable list();
+
+ /**
+ * List Object Anchors Accounts by Subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to get resource collection.
+ */
+ PagedIterable list(Context context);
+
+ /**
+ * List Resources by Resource Group.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @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 result of the request to get resource collection.
+ */
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List Resources by Resource Group.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @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 result of the request to get resource collection.
+ */
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Delete an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteByResourceGroup(String resourceGroupName, String accountName);
+
+ /**
+ * Delete an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ Response deleteWithResponse(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Retrieve an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @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 objectAnchorsAccount Response.
+ */
+ ObjectAnchorsAccount getByResourceGroup(String resourceGroupName, String accountName);
+
+ /**
+ * Retrieve an Object Anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @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 objectAnchorsAccount Response.
+ */
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * List Both of the 2 Keys of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @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 developer Keys of account.
+ */
+ AccountKeys listKeys(String resourceGroupName, String accountName);
+
+ /**
+ * List Both of the 2 Keys of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @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 developer Keys of account.
+ */
+ Response listKeysWithResponse(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Regenerate specified Key of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param regenerate Required information for key regeneration.
+ * @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 developer Keys of account.
+ */
+ AccountKeys regenerateKeys(String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate);
+
+ /**
+ * Regenerate specified Key of an object anchors Account.
+ *
+ * @param resourceGroupName Name of an Azure resource group.
+ * @param accountName Name of an Mixed Reality Account.
+ * @param regenerate Required information for key regeneration.
+ * @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 developer Keys of account.
+ */
+ Response regenerateKeysWithResponse(
+ String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate, Context context);
+
+ /**
+ * Retrieve an Object Anchors Account.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ ObjectAnchorsAccount getById(String id);
+
+ /**
+ * Retrieve an Object Anchors Account.
+ *
+ * @param id the resource ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return objectAnchorsAccount Response.
+ */
+ Response getByIdWithResponse(String id, Context context);
+
+ /**
+ * Delete an Object Anchors Account.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteById(String id);
+
+ /**
+ * Delete an Object Anchors Account.
+ *
+ * @param id the resource ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ Response deleteByIdWithResponse(String id, Context context);
+
+ /**
+ * Begins definition for a new ObjectAnchorsAccount resource.
+ *
+ * @param name resource name.
+ * @return the first stage of the new ObjectAnchorsAccount definition.
+ */
+ ObjectAnchorsAccount.DefinitionStages.Blank define(String name);
+}