Skip to content

Commit

Permalink
CodeGen from PR 13777 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 20049086276c15f2961fc769234fa6551627fb4a into b3577207350270e9ae3b3e22c91b1730c602f276
  • Loading branch information
SDKAuto committed Apr 13, 2021
1 parent 64ae3bd commit eac513b
Show file tree
Hide file tree
Showing 18 changed files with 3,388 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Release History

## 1.0.0-beta.1 (2021-04-09)
## 1.0.0-beta.1 (2021-04-13)

- 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).

Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for MixedReality Management</name>
<description>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.</description>
<description>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.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Original file line number Diff line number Diff line change
@@ -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<ObjectAnchorsAccountInner> 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<ObjectAnchorsAccountInner> 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<ObjectAnchorsAccountInner> 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<ObjectAnchorsAccountInner> 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<Void> 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<ObjectAnchorsAccountInner> 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<ObjectAnchorsAccountInner> 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<ObjectAnchorsAccountInner> 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<AccountKeysInner> 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<AccountKeysInner> regenerateKeysWithResponse(
String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate, Context context);
}
Loading

0 comments on commit eac513b

Please sign in to comment.