Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-mixedreality] Fix Python misspelling #5605

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2023-05-25)

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

### Features Added

Expand Down
4 changes: 2 additions & 2 deletions sdk/mixedreality/azure-resourcemanager-mixedreality/README.md
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 Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-mixedreality</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
252 changes: 234 additions & 18 deletions sdk/mixedreality/azure-resourcemanager-mixedreality/SAMPLE.md

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions sdk/mixedreality/azure-resourcemanager-mixedreality/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand All @@ -13,7 +18,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 All @@ -38,7 +43,8 @@
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,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 @@ -50,6 +52,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 @@ -215,7 +219,7 @@ public MixedRealityManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.mixedreality")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -322,6 +326,18 @@ public RemoteRenderingAccounts remoteRenderingAccounts() {
return remoteRenderingAccounts;
}

/**
* Gets the resource collection API of ObjectAnchorsAccounts. It manages ObjectAnchorsAccount.
*
* @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 as paginated response with {@link PagedIterable}.
*/
@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 as paginated response with {@link PagedIterable}.
*/
@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 as paginated response with {@link PagedIterable}.
*/
@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 as paginated response with {@link PagedIterable}.
*/
@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.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(String resourceGroupName, String accountName, 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);

/**
* 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 along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ObjectAnchorsAccountInner> getByResourceGroupWithResponse(
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);

/**
* 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 along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ObjectAnchorsAccountInner> updateWithResponse(
String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount, 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);

/**
* 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 along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ObjectAnchorsAccountInner> createWithResponse(
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);

/**
* 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 along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AccountKeysInner> listKeysWithResponse(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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccountKeysInner listKeys(String resourceGroupName, String accountName);

/**
* 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 along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AccountKeysInner> regenerateKeysWithResponse(
String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate, 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);
}
Loading