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