Skip to content

Commit 609c32d

Browse files
author
SDKAuto
committed
CodeGen from PR 14105 in Azure/azure-rest-api-specs
Merge 974c236fd438982beedd732c1d5e507fa573dce6 into 349641379572d7e2064bee963ba9c0a283287940
1 parent c417a43 commit 609c32d

16 files changed

+3118
-7
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Release History
22

3-
## 1.0.0-beta.1 (2021-04-22)
3+
## 1.0.0-beta.1 (2021-04-26)
44

5+
- 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).
56
- 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).
67

sdk/mixedreality/azure-resourcemanager-mixedreality/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager MixedReality client library for Java.
44

5-
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).
5+
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).
66

77
## We'd love to hear your feedback
88

sdk/mixedreality/azure-resourcemanager-mixedreality/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

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

1919
<licenses>

sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/MixedRealityManager.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
import com.azure.core.util.logging.ClientLogger;
2323
import com.azure.resourcemanager.mixedreality.fluent.MixedRealityClient;
2424
import com.azure.resourcemanager.mixedreality.implementation.MixedRealityClientBuilder;
25+
import com.azure.resourcemanager.mixedreality.implementation.ObjectAnchorsAccountsImpl;
2526
import com.azure.resourcemanager.mixedreality.implementation.OperationsImpl;
2627
import com.azure.resourcemanager.mixedreality.implementation.RemoteRenderingAccountsImpl;
2728
import com.azure.resourcemanager.mixedreality.implementation.ResourceProvidersImpl;
2829
import com.azure.resourcemanager.mixedreality.implementation.SpatialAnchorsAccountsImpl;
30+
import com.azure.resourcemanager.mixedreality.models.ObjectAnchorsAccounts;
2931
import com.azure.resourcemanager.mixedreality.models.Operations;
3032
import com.azure.resourcemanager.mixedreality.models.RemoteRenderingAccounts;
3133
import com.azure.resourcemanager.mixedreality.models.ResourceProviders;
@@ -46,6 +48,8 @@ public final class MixedRealityManager {
4648

4749
private RemoteRenderingAccounts remoteRenderingAccounts;
4850

51+
private ObjectAnchorsAccounts objectAnchorsAccounts;
52+
4953
private final MixedRealityClient clientObject;
5054

5155
private MixedRealityManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -243,6 +247,14 @@ public RemoteRenderingAccounts remoteRenderingAccounts() {
243247
return remoteRenderingAccounts;
244248
}
245249

250+
/** @return Resource collection API of ObjectAnchorsAccounts. */
251+
public ObjectAnchorsAccounts objectAnchorsAccounts() {
252+
if (this.objectAnchorsAccounts == null) {
253+
this.objectAnchorsAccounts = new ObjectAnchorsAccountsImpl(clientObject.getObjectAnchorsAccounts(), this);
254+
}
255+
return objectAnchorsAccounts;
256+
}
257+
246258
/**
247259
* @return Wrapped service client MixedRealityClient providing direct access to the underlying auto-generated API
248260
* implementation, based on Azure REST API.

sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/MixedRealityClient.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,11 @@ public interface MixedRealityClient {
7171
* @return the RemoteRenderingAccountsClient object.
7272
*/
7373
RemoteRenderingAccountsClient getRemoteRenderingAccounts();
74+
75+
/**
76+
* Gets the ObjectAnchorsAccountsClient object to access its operations.
77+
*
78+
* @return the ObjectAnchorsAccountsClient object.
79+
*/
80+
ObjectAnchorsAccountsClient getObjectAnchorsAccounts();
7481
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.mixedreality.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedIterable;
10+
import com.azure.core.http.rest.Response;
11+
import com.azure.core.util.Context;
12+
import com.azure.resourcemanager.mixedreality.fluent.models.AccountKeysInner;
13+
import com.azure.resourcemanager.mixedreality.fluent.models.ObjectAnchorsAccountInner;
14+
import com.azure.resourcemanager.mixedreality.models.AccountKeyRegenerateRequest;
15+
16+
/** An instance of this class provides access to all the operations defined in ObjectAnchorsAccountsClient. */
17+
public interface ObjectAnchorsAccountsClient {
18+
/**
19+
* List Object Anchors Accounts by Subscription.
20+
*
21+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
22+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
23+
* @return result of the request to get resource collection.
24+
*/
25+
@ServiceMethod(returns = ReturnType.COLLECTION)
26+
PagedIterable<ObjectAnchorsAccountInner> list();
27+
28+
/**
29+
* List Object Anchors Accounts by Subscription.
30+
*
31+
* @param context The context to associate with this operation.
32+
* @throws IllegalArgumentException thrown if parameters fail the validation.
33+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
34+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
35+
* @return result of the request to get resource collection.
36+
*/
37+
@ServiceMethod(returns = ReturnType.COLLECTION)
38+
PagedIterable<ObjectAnchorsAccountInner> list(Context context);
39+
40+
/**
41+
* List Resources by Resource Group.
42+
*
43+
* @param resourceGroupName Name of an Azure resource group.
44+
* @throws IllegalArgumentException thrown if parameters fail the validation.
45+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
46+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
47+
* @return result of the request to get resource collection.
48+
*/
49+
@ServiceMethod(returns = ReturnType.COLLECTION)
50+
PagedIterable<ObjectAnchorsAccountInner> listByResourceGroup(String resourceGroupName);
51+
52+
/**
53+
* List Resources by Resource Group.
54+
*
55+
* @param resourceGroupName Name of an Azure resource group.
56+
* @param context The context to associate with this operation.
57+
* @throws IllegalArgumentException thrown if parameters fail the validation.
58+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
59+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
60+
* @return result of the request to get resource collection.
61+
*/
62+
@ServiceMethod(returns = ReturnType.COLLECTION)
63+
PagedIterable<ObjectAnchorsAccountInner> listByResourceGroup(String resourceGroupName, Context context);
64+
65+
/**
66+
* Delete an Object Anchors Account.
67+
*
68+
* @param resourceGroupName Name of an Azure resource group.
69+
* @param accountName Name of an Mixed Reality Account.
70+
* @throws IllegalArgumentException thrown if parameters fail the validation.
71+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
72+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
73+
*/
74+
@ServiceMethod(returns = ReturnType.SINGLE)
75+
void delete(String resourceGroupName, String accountName);
76+
77+
/**
78+
* Delete an Object Anchors Account.
79+
*
80+
* @param resourceGroupName Name of an Azure resource group.
81+
* @param accountName Name of an Mixed Reality Account.
82+
* @param context The context to associate with this operation.
83+
* @throws IllegalArgumentException thrown if parameters fail the validation.
84+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
85+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
86+
* @return the response.
87+
*/
88+
@ServiceMethod(returns = ReturnType.SINGLE)
89+
Response<Void> deleteWithResponse(String resourceGroupName, String accountName, Context context);
90+
91+
/**
92+
* Retrieve an Object Anchors Account.
93+
*
94+
* @param resourceGroupName Name of an Azure resource group.
95+
* @param accountName Name of an Mixed Reality Account.
96+
* @throws IllegalArgumentException thrown if parameters fail the validation.
97+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
98+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
99+
* @return objectAnchorsAccount Response.
100+
*/
101+
@ServiceMethod(returns = ReturnType.SINGLE)
102+
ObjectAnchorsAccountInner getByResourceGroup(String resourceGroupName, String accountName);
103+
104+
/**
105+
* Retrieve an Object Anchors Account.
106+
*
107+
* @param resourceGroupName Name of an Azure resource group.
108+
* @param accountName Name of an Mixed Reality Account.
109+
* @param context The context to associate with this operation.
110+
* @throws IllegalArgumentException thrown if parameters fail the validation.
111+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
112+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
113+
* @return objectAnchorsAccount Response.
114+
*/
115+
@ServiceMethod(returns = ReturnType.SINGLE)
116+
Response<ObjectAnchorsAccountInner> getByResourceGroupWithResponse(
117+
String resourceGroupName, String accountName, Context context);
118+
119+
/**
120+
* Updating an Object Anchors Account.
121+
*
122+
* @param resourceGroupName Name of an Azure resource group.
123+
* @param accountName Name of an Mixed Reality Account.
124+
* @param objectAnchorsAccount Object Anchors Account parameter.
125+
* @throws IllegalArgumentException thrown if parameters fail the validation.
126+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
127+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
128+
* @return objectAnchorsAccount Response.
129+
*/
130+
@ServiceMethod(returns = ReturnType.SINGLE)
131+
ObjectAnchorsAccountInner update(
132+
String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount);
133+
134+
/**
135+
* Updating an Object Anchors Account.
136+
*
137+
* @param resourceGroupName Name of an Azure resource group.
138+
* @param accountName Name of an Mixed Reality Account.
139+
* @param objectAnchorsAccount Object Anchors Account parameter.
140+
* @param context The context to associate with this operation.
141+
* @throws IllegalArgumentException thrown if parameters fail the validation.
142+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
143+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
144+
* @return objectAnchorsAccount Response.
145+
*/
146+
@ServiceMethod(returns = ReturnType.SINGLE)
147+
Response<ObjectAnchorsAccountInner> updateWithResponse(
148+
String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount, Context context);
149+
150+
/**
151+
* Creating or Updating an object anchors Account.
152+
*
153+
* @param resourceGroupName Name of an Azure resource group.
154+
* @param accountName Name of an Mixed Reality Account.
155+
* @param objectAnchorsAccount Object Anchors Account parameter.
156+
* @throws IllegalArgumentException thrown if parameters fail the validation.
157+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
158+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
159+
* @return objectAnchorsAccount Response.
160+
*/
161+
@ServiceMethod(returns = ReturnType.SINGLE)
162+
ObjectAnchorsAccountInner create(
163+
String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount);
164+
165+
/**
166+
* Creating or Updating an object anchors Account.
167+
*
168+
* @param resourceGroupName Name of an Azure resource group.
169+
* @param accountName Name of an Mixed Reality Account.
170+
* @param objectAnchorsAccount Object Anchors Account parameter.
171+
* @param context The context to associate with this operation.
172+
* @throws IllegalArgumentException thrown if parameters fail the validation.
173+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
174+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
175+
* @return objectAnchorsAccount Response.
176+
*/
177+
@ServiceMethod(returns = ReturnType.SINGLE)
178+
Response<ObjectAnchorsAccountInner> createWithResponse(
179+
String resourceGroupName, String accountName, ObjectAnchorsAccountInner objectAnchorsAccount, Context context);
180+
181+
/**
182+
* List Both of the 2 Keys of an object anchors Account.
183+
*
184+
* @param resourceGroupName Name of an Azure resource group.
185+
* @param accountName Name of an Mixed Reality Account.
186+
* @throws IllegalArgumentException thrown if parameters fail the validation.
187+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
188+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
189+
* @return developer Keys of account.
190+
*/
191+
@ServiceMethod(returns = ReturnType.SINGLE)
192+
AccountKeysInner listKeys(String resourceGroupName, String accountName);
193+
194+
/**
195+
* List Both of the 2 Keys of an object anchors Account.
196+
*
197+
* @param resourceGroupName Name of an Azure resource group.
198+
* @param accountName Name of an Mixed Reality Account.
199+
* @param context The context to associate with this operation.
200+
* @throws IllegalArgumentException thrown if parameters fail the validation.
201+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
202+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
203+
* @return developer Keys of account.
204+
*/
205+
@ServiceMethod(returns = ReturnType.SINGLE)
206+
Response<AccountKeysInner> listKeysWithResponse(String resourceGroupName, String accountName, Context context);
207+
208+
/**
209+
* Regenerate specified Key of an object anchors Account.
210+
*
211+
* @param resourceGroupName Name of an Azure resource group.
212+
* @param accountName Name of an Mixed Reality Account.
213+
* @param regenerate Required information for key regeneration.
214+
* @throws IllegalArgumentException thrown if parameters fail the validation.
215+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
216+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
217+
* @return developer Keys of account.
218+
*/
219+
@ServiceMethod(returns = ReturnType.SINGLE)
220+
AccountKeysInner regenerateKeys(
221+
String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate);
222+
223+
/**
224+
* Regenerate specified Key of an object anchors Account.
225+
*
226+
* @param resourceGroupName Name of an Azure resource group.
227+
* @param accountName Name of an Mixed Reality Account.
228+
* @param regenerate Required information for key regeneration.
229+
* @param context The context to associate with this operation.
230+
* @throws IllegalArgumentException thrown if parameters fail the validation.
231+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
232+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
233+
* @return developer Keys of account.
234+
*/
235+
@ServiceMethod(returns = ReturnType.SINGLE)
236+
Response<AccountKeysInner> regenerateKeysWithResponse(
237+
String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate, Context context);
238+
}

0 commit comments

Comments
 (0)