@azure/arm-mixedreality 3.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +17 -0
- package/LICENSE +21 -0
- package/README.md +70 -70
- package/dist/index.js +2016 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/checkLocalNameAvailability.d.ts +2 -0
- package/dist-esm/samples-dev/checkLocalNameAvailability.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkLocalNameAvailability.js +34 -0
- package/dist-esm/samples-dev/checkLocalNameAvailability.js.map +1 -0
- package/dist-esm/samples-dev/createRemoteRenderingAccount.d.ts +2 -0
- package/dist-esm/samples-dev/createRemoteRenderingAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/createRemoteRenderingAccount.js +35 -0
- package/dist-esm/samples-dev/createRemoteRenderingAccount.js.map +1 -0
- package/dist-esm/samples-dev/createSpatialAnchorAccount.d.ts +2 -0
- package/dist-esm/samples-dev/createSpatialAnchorAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/createSpatialAnchorAccount.js +34 -0
- package/dist-esm/samples-dev/createSpatialAnchorAccount.js.map +1 -0
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.d.ts +2 -0
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.js +31 -0
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.js.map +1 -0
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.d.ts +2 -0
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.js +31 -0
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.js.map +1 -0
- package/dist-esm/samples-dev/getRemoteRenderingAccount.d.ts +2 -0
- package/dist-esm/samples-dev/getRemoteRenderingAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/getRemoteRenderingAccount.js +31 -0
- package/dist-esm/samples-dev/getRemoteRenderingAccount.js.map +1 -0
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.d.ts +2 -0
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.js +31 -0
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.js.map +1 -0
- package/dist-esm/samples-dev/listAvailableOperations.d.ts +2 -0
- package/dist-esm/samples-dev/listAvailableOperations.d.ts.map +1 -0
- package/dist-esm/samples-dev/listAvailableOperations.js +43 -0
- package/dist-esm/samples-dev/listAvailableOperations.js.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.d.ts +2 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.d.ts.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.js +31 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.js.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.d.ts +2 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.js +43 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.js.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.d.ts +2 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.js +31 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.js.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.d.ts +2 -0
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.js +43 -0
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.js.map +1 -0
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.d.ts +2 -0
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.js +32 -0
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.js.map +1 -0
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.d.ts +2 -0
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.js +32 -0
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.js.map +1 -0
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.d.ts +2 -0
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.js +36 -0
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.js.map +1 -0
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.d.ts +2 -0
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.js +35 -0
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/mixedRealityClient.d.ts +28 -0
- package/dist-esm/src/mixedRealityClient.d.ts.map +1 -0
- package/dist-esm/src/mixedRealityClient.js +89 -0
- package/dist-esm/src/mixedRealityClient.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +444 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +22 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +25 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +362 -457
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +15 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +135 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/remoteRenderingAccounts.d.ts +98 -0
- package/dist-esm/src/operations/remoteRenderingAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/remoteRenderingAccounts.js +422 -0
- package/dist-esm/src/operations/remoteRenderingAccounts.js.map +1 -0
- package/dist-esm/src/operations/spatialAnchorsAccounts.d.ts +98 -0
- package/dist-esm/src/operations/spatialAnchorsAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/spatialAnchorsAccounts.js +422 -0
- package/dist-esm/src/operations/spatialAnchorsAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +75 -32
- package/review/arm-mixedreality.api.md +436 -0
- package/rollup.config.js +181 -30
- package/src/{models/operationsMappers.ts → index.ts} +4 -11
- package/src/mixedRealityClient.ts +102 -74
- package/src/models/index.ts +370 -884
- package/src/models/mappers.ts +367 -478
- package/src/models/parameters.ts +100 -39
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +85 -73
- package/src/operations/remoteRenderingAccounts.ts +319 -392
- package/src/operations/spatialAnchorsAccounts.ts +319 -392
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/remoteRenderingAccounts.ts +119 -0
- package/src/operationsInterfaces/spatialAnchorsAccounts.ts +119 -0
- package/tsconfig.json +5 -4
- package/types/arm-mixedreality.d.ts +674 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-mixedreality.js +0 -2042
- package/dist/arm-mixedreality.js.map +0 -1
- package/dist/arm-mixedreality.min.js +0 -1
- package/dist/arm-mixedreality.min.js.map +0 -1
- package/esm/mixedRealityClient.d.ts +0 -42
- package/esm/mixedRealityClient.d.ts.map +0 -1
- package/esm/mixedRealityClient.js +0 -72
- package/esm/mixedRealityClient.js.map +0 -1
- package/esm/mixedRealityClientContext.d.ts +0 -17
- package/esm/mixedRealityClientContext.d.ts.map +0 -1
- package/esm/mixedRealityClientContext.js +0 -56
- package/esm/mixedRealityClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -957
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -32
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -9
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -95
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/remoteRenderingAccountsMappers.d.ts +0 -2
- package/esm/models/remoteRenderingAccountsMappers.d.ts.map +0 -1
- package/esm/models/remoteRenderingAccountsMappers.js +0 -9
- package/esm/models/remoteRenderingAccountsMappers.js.map +0 -1
- package/esm/models/spatialAnchorsAccountsMappers.d.ts +0 -2
- package/esm/models/spatialAnchorsAccountsMappers.d.ts.map +0 -1
- package/esm/models/spatialAnchorsAccountsMappers.js +0 -9
- package/esm/models/spatialAnchorsAccountsMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/remoteRenderingAccounts.d.ts +0 -217
- package/esm/operations/remoteRenderingAccounts.d.ts.map +0 -1
- package/esm/operations/remoteRenderingAccounts.js +0 -344
- package/esm/operations/remoteRenderingAccounts.js.map +0 -1
- package/esm/operations/spatialAnchorsAccounts.d.ts +0 -217
- package/esm/operations/spatialAnchorsAccounts.d.ts.map +0 -1
- package/esm/operations/spatialAnchorsAccounts.js +0 -344
- package/esm/operations/spatialAnchorsAccounts.js.map +0 -1
- package/src/mixedRealityClientContext.ts +0 -62
- package/src/models/remoteRenderingAccountsMappers.ts +0 -29
- package/src/models/spatialAnchorsAccountsMappers.ts +0 -29
@@ -3,142 +3,207 @@
|
|
3
3
|
* Licensed under the MIT License.
|
4
4
|
*
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
7
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
7
|
*/
|
9
8
|
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import * as
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import { SpatialAnchorsAccounts } from "../operationsInterfaces";
|
11
|
+
import * as coreClient from "@azure/core-client";
|
12
|
+
import * as Mappers from "../models/mappers";
|
13
13
|
import * as Parameters from "../models/parameters";
|
14
|
-
import {
|
14
|
+
import { MixedRealityClient } from "../mixedRealityClient";
|
15
|
+
import {
|
16
|
+
SpatialAnchorsAccount,
|
17
|
+
SpatialAnchorsAccountsListBySubscriptionNextOptionalParams,
|
18
|
+
SpatialAnchorsAccountsListBySubscriptionOptionalParams,
|
19
|
+
SpatialAnchorsAccountsListByResourceGroupNextOptionalParams,
|
20
|
+
SpatialAnchorsAccountsListByResourceGroupOptionalParams,
|
21
|
+
SpatialAnchorsAccountsListBySubscriptionResponse,
|
22
|
+
SpatialAnchorsAccountsListByResourceGroupResponse,
|
23
|
+
SpatialAnchorsAccountsDeleteOptionalParams,
|
24
|
+
SpatialAnchorsAccountsGetOptionalParams,
|
25
|
+
SpatialAnchorsAccountsGetResponse,
|
26
|
+
SpatialAnchorsAccountsUpdateOptionalParams,
|
27
|
+
SpatialAnchorsAccountsUpdateResponse,
|
28
|
+
SpatialAnchorsAccountsCreateOptionalParams,
|
29
|
+
SpatialAnchorsAccountsCreateResponse,
|
30
|
+
SpatialAnchorsAccountsListKeysOptionalParams,
|
31
|
+
SpatialAnchorsAccountsListKeysResponse,
|
32
|
+
AccountKeyRegenerateRequest,
|
33
|
+
SpatialAnchorsAccountsRegenerateKeysOptionalParams,
|
34
|
+
SpatialAnchorsAccountsRegenerateKeysResponse,
|
35
|
+
SpatialAnchorsAccountsListBySubscriptionNextResponse,
|
36
|
+
SpatialAnchorsAccountsListByResourceGroupNextResponse
|
37
|
+
} from "../models";
|
15
38
|
|
16
|
-
|
17
|
-
|
18
|
-
|
39
|
+
/// <reference lib="esnext.asynciterable" />
|
40
|
+
/** Class containing SpatialAnchorsAccounts operations. */
|
41
|
+
export class SpatialAnchorsAccountsImpl implements SpatialAnchorsAccounts {
|
42
|
+
private readonly client: MixedRealityClient;
|
19
43
|
|
20
44
|
/**
|
21
|
-
*
|
22
|
-
* @param
|
45
|
+
* Initialize a new instance of the class SpatialAnchorsAccounts class.
|
46
|
+
* @param client Reference to the service client
|
23
47
|
*/
|
24
|
-
constructor(client:
|
48
|
+
constructor(client: MixedRealityClient) {
|
25
49
|
this.client = client;
|
26
50
|
}
|
27
51
|
|
28
52
|
/**
|
29
53
|
* List Spatial Anchors Accounts by Subscription
|
30
|
-
* @param
|
31
|
-
* @returns Promise<Models.SpatialAnchorsAccountsListBySubscriptionResponse>
|
54
|
+
* @param options The options parameters.
|
32
55
|
*/
|
33
|
-
listBySubscription(
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): Promise<Models.SpatialAnchorsAccountsListBySubscriptionResponse> {
|
44
|
-
return this.client.sendOperationRequest(
|
45
|
-
{
|
46
|
-
options
|
56
|
+
public listBySubscription(
|
57
|
+
options?: SpatialAnchorsAccountsListBySubscriptionOptionalParams
|
58
|
+
): PagedAsyncIterableIterator<SpatialAnchorsAccount> {
|
59
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
60
|
+
return {
|
61
|
+
next() {
|
62
|
+
return iter.next();
|
63
|
+
},
|
64
|
+
[Symbol.asyncIterator]() {
|
65
|
+
return this;
|
47
66
|
},
|
48
|
-
|
49
|
-
|
67
|
+
byPage: () => {
|
68
|
+
return this.listBySubscriptionPagingPage(options);
|
69
|
+
}
|
70
|
+
};
|
71
|
+
}
|
72
|
+
|
73
|
+
private async *listBySubscriptionPagingPage(
|
74
|
+
options?: SpatialAnchorsAccountsListBySubscriptionOptionalParams
|
75
|
+
): AsyncIterableIterator<SpatialAnchorsAccount[]> {
|
76
|
+
let result = await this._listBySubscription(options);
|
77
|
+
yield result.value || [];
|
78
|
+
let continuationToken = result.nextLink;
|
79
|
+
while (continuationToken) {
|
80
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
81
|
+
continuationToken = result.nextLink;
|
82
|
+
yield result.value || [];
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
private async *listBySubscriptionPagingAll(
|
87
|
+
options?: SpatialAnchorsAccountsListBySubscriptionOptionalParams
|
88
|
+
): AsyncIterableIterator<SpatialAnchorsAccount> {
|
89
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
90
|
+
yield* page;
|
91
|
+
}
|
50
92
|
}
|
51
93
|
|
52
94
|
/**
|
53
95
|
* List Resources by Resource Group
|
54
96
|
* @param resourceGroupName Name of an Azure resource group.
|
55
|
-
* @param
|
56
|
-
* @returns Promise<Models.SpatialAnchorsAccountsListByResourceGroupResponse>
|
57
|
-
*/
|
58
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsListByResourceGroupResponse>;
|
59
|
-
/**
|
60
|
-
* @param resourceGroupName Name of an Azure resource group.
|
61
|
-
* @param callback The callback
|
97
|
+
* @param options The options parameters.
|
62
98
|
*/
|
63
|
-
listByResourceGroup(
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
{
|
99
|
+
public listByResourceGroup(
|
100
|
+
resourceGroupName: string,
|
101
|
+
options?: SpatialAnchorsAccountsListByResourceGroupOptionalParams
|
102
|
+
): PagedAsyncIterableIterator<SpatialAnchorsAccount> {
|
103
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
104
|
+
return {
|
105
|
+
next() {
|
106
|
+
return iter.next();
|
107
|
+
},
|
108
|
+
[Symbol.asyncIterator]() {
|
109
|
+
return this;
|
110
|
+
},
|
111
|
+
byPage: () => {
|
112
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
113
|
+
}
|
114
|
+
};
|
115
|
+
}
|
116
|
+
|
117
|
+
private async *listByResourceGroupPagingPage(
|
118
|
+
resourceGroupName: string,
|
119
|
+
options?: SpatialAnchorsAccountsListByResourceGroupOptionalParams
|
120
|
+
): AsyncIterableIterator<SpatialAnchorsAccount[]> {
|
121
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
122
|
+
yield result.value || [];
|
123
|
+
let continuationToken = result.nextLink;
|
124
|
+
while (continuationToken) {
|
125
|
+
result = await this._listByResourceGroupNext(
|
73
126
|
resourceGroupName,
|
127
|
+
continuationToken,
|
74
128
|
options
|
75
|
-
|
76
|
-
|
77
|
-
|
129
|
+
);
|
130
|
+
continuationToken = result.nextLink;
|
131
|
+
yield result.value || [];
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
private async *listByResourceGroupPagingAll(
|
136
|
+
resourceGroupName: string,
|
137
|
+
options?: SpatialAnchorsAccountsListByResourceGroupOptionalParams
|
138
|
+
): AsyncIterableIterator<SpatialAnchorsAccount> {
|
139
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
140
|
+
resourceGroupName,
|
141
|
+
options
|
142
|
+
)) {
|
143
|
+
yield* page;
|
144
|
+
}
|
78
145
|
}
|
79
146
|
|
80
147
|
/**
|
81
|
-
*
|
82
|
-
* @param
|
83
|
-
* @param accountName Name of an Mixed Reality Account.
|
84
|
-
* @param [options] The optional parameters
|
85
|
-
* @returns Promise<msRest.RestResponse>
|
148
|
+
* List Spatial Anchors Accounts by Subscription
|
149
|
+
* @param options The options parameters.
|
86
150
|
*/
|
87
|
-
|
151
|
+
private _listBySubscription(
|
152
|
+
options?: SpatialAnchorsAccountsListBySubscriptionOptionalParams
|
153
|
+
): Promise<SpatialAnchorsAccountsListBySubscriptionResponse> {
|
154
|
+
return this.client.sendOperationRequest(
|
155
|
+
{ options },
|
156
|
+
listBySubscriptionOperationSpec
|
157
|
+
);
|
158
|
+
}
|
159
|
+
|
88
160
|
/**
|
161
|
+
* List Resources by Resource Group
|
89
162
|
* @param resourceGroupName Name of an Azure resource group.
|
90
|
-
* @param
|
91
|
-
* @param callback The callback
|
163
|
+
* @param options The options parameters.
|
92
164
|
*/
|
93
|
-
|
165
|
+
private _listByResourceGroup(
|
166
|
+
resourceGroupName: string,
|
167
|
+
options?: SpatialAnchorsAccountsListByResourceGroupOptionalParams
|
168
|
+
): Promise<SpatialAnchorsAccountsListByResourceGroupResponse> {
|
169
|
+
return this.client.sendOperationRequest(
|
170
|
+
{ resourceGroupName, options },
|
171
|
+
listByResourceGroupOperationSpec
|
172
|
+
);
|
173
|
+
}
|
174
|
+
|
94
175
|
/**
|
176
|
+
* Delete a Spatial Anchors Account.
|
95
177
|
* @param resourceGroupName Name of an Azure resource group.
|
96
178
|
* @param accountName Name of an Mixed Reality Account.
|
97
|
-
* @param options The
|
98
|
-
* @param callback The callback
|
179
|
+
* @param options The options parameters.
|
99
180
|
*/
|
100
|
-
|
101
|
-
|
181
|
+
delete(
|
182
|
+
resourceGroupName: string,
|
183
|
+
accountName: string,
|
184
|
+
options?: SpatialAnchorsAccountsDeleteOptionalParams
|
185
|
+
): Promise<void> {
|
102
186
|
return this.client.sendOperationRequest(
|
103
|
-
{
|
104
|
-
|
105
|
-
|
106
|
-
options
|
107
|
-
},
|
108
|
-
deleteMethodOperationSpec,
|
109
|
-
callback);
|
187
|
+
{ resourceGroupName, accountName, options },
|
188
|
+
deleteOperationSpec
|
189
|
+
);
|
110
190
|
}
|
111
191
|
|
112
192
|
/**
|
113
193
|
* Retrieve a Spatial Anchors Account.
|
114
194
|
* @param resourceGroupName Name of an Azure resource group.
|
115
195
|
* @param accountName Name of an Mixed Reality Account.
|
116
|
-
* @param
|
117
|
-
* @returns Promise<Models.SpatialAnchorsAccountsGetResponse>
|
118
|
-
*/
|
119
|
-
get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsGetResponse>;
|
120
|
-
/**
|
121
|
-
* @param resourceGroupName Name of an Azure resource group.
|
122
|
-
* @param accountName Name of an Mixed Reality Account.
|
123
|
-
* @param callback The callback
|
196
|
+
* @param options The options parameters.
|
124
197
|
*/
|
125
|
-
get(
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
* @param callback The callback
|
131
|
-
*/
|
132
|
-
get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
|
133
|
-
get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccount>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): Promise<Models.SpatialAnchorsAccountsGetResponse> {
|
198
|
+
get(
|
199
|
+
resourceGroupName: string,
|
200
|
+
accountName: string,
|
201
|
+
options?: SpatialAnchorsAccountsGetOptionalParams
|
202
|
+
): Promise<SpatialAnchorsAccountsGetResponse> {
|
134
203
|
return this.client.sendOperationRequest(
|
135
|
-
{
|
136
|
-
|
137
|
-
|
138
|
-
options
|
139
|
-
},
|
140
|
-
getOperationSpec,
|
141
|
-
callback) as Promise<Models.SpatialAnchorsAccountsGetResponse>;
|
204
|
+
{ resourceGroupName, accountName, options },
|
205
|
+
getOperationSpec
|
206
|
+
);
|
142
207
|
}
|
143
208
|
|
144
209
|
/**
|
@@ -146,35 +211,18 @@ export class SpatialAnchorsAccounts {
|
|
146
211
|
* @param resourceGroupName Name of an Azure resource group.
|
147
212
|
* @param accountName Name of an Mixed Reality Account.
|
148
213
|
* @param spatialAnchorsAccount Spatial Anchors Account parameter.
|
149
|
-
* @param
|
150
|
-
* @returns Promise<Models.SpatialAnchorsAccountsUpdateResponse>
|
214
|
+
* @param options The options parameters.
|
151
215
|
*/
|
152
|
-
update(
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
*/
|
159
|
-
update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
|
160
|
-
/**
|
161
|
-
* @param resourceGroupName Name of an Azure resource group.
|
162
|
-
* @param accountName Name of an Mixed Reality Account.
|
163
|
-
* @param spatialAnchorsAccount Spatial Anchors Account parameter.
|
164
|
-
* @param options The optional parameters
|
165
|
-
* @param callback The callback
|
166
|
-
*/
|
167
|
-
update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
|
168
|
-
update(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccount>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): Promise<Models.SpatialAnchorsAccountsUpdateResponse> {
|
216
|
+
update(
|
217
|
+
resourceGroupName: string,
|
218
|
+
accountName: string,
|
219
|
+
spatialAnchorsAccount: SpatialAnchorsAccount,
|
220
|
+
options?: SpatialAnchorsAccountsUpdateOptionalParams
|
221
|
+
): Promise<SpatialAnchorsAccountsUpdateResponse> {
|
169
222
|
return this.client.sendOperationRequest(
|
170
|
-
{
|
171
|
-
|
172
|
-
|
173
|
-
spatialAnchorsAccount,
|
174
|
-
options
|
175
|
-
},
|
176
|
-
updateOperationSpec,
|
177
|
-
callback) as Promise<Models.SpatialAnchorsAccountsUpdateResponse>;
|
223
|
+
{ resourceGroupName, accountName, spatialAnchorsAccount, options },
|
224
|
+
updateOperationSpec
|
225
|
+
);
|
178
226
|
}
|
179
227
|
|
180
228
|
/**
|
@@ -182,67 +230,35 @@ export class SpatialAnchorsAccounts {
|
|
182
230
|
* @param resourceGroupName Name of an Azure resource group.
|
183
231
|
* @param accountName Name of an Mixed Reality Account.
|
184
232
|
* @param spatialAnchorsAccount Spatial Anchors Account parameter.
|
185
|
-
* @param
|
186
|
-
* @returns Promise<Models.SpatialAnchorsAccountsCreateResponse>
|
187
|
-
*/
|
188
|
-
create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsCreateResponse>;
|
189
|
-
/**
|
190
|
-
* @param resourceGroupName Name of an Azure resource group.
|
191
|
-
* @param accountName Name of an Mixed Reality Account.
|
192
|
-
* @param spatialAnchorsAccount Spatial Anchors Account parameter.
|
193
|
-
* @param callback The callback
|
194
|
-
*/
|
195
|
-
create(resourceGroupName: string, accountName: string, spatialAnchorsAccount: Models.SpatialAnchorsAccount, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccount>): void;
|
196
|
-
/**
|
197
|
-
* @param resourceGroupName Name of an Azure resource group.
|
198
|
-
* @param accountName Name of an Mixed Reality Account.
|
199
|
-
* @param spatialAnchorsAccount Spatial Anchors Account parameter.
|
200
|
-
* @param options The optional parameters
|
201
|
-
* @param callback The callback
|
233
|
+
* @param options The options parameters.
|
202
234
|
*/
|
203
|
-
create(
|
204
|
-
|
235
|
+
create(
|
236
|
+
resourceGroupName: string,
|
237
|
+
accountName: string,
|
238
|
+
spatialAnchorsAccount: SpatialAnchorsAccount,
|
239
|
+
options?: SpatialAnchorsAccountsCreateOptionalParams
|
240
|
+
): Promise<SpatialAnchorsAccountsCreateResponse> {
|
205
241
|
return this.client.sendOperationRequest(
|
206
|
-
{
|
207
|
-
|
208
|
-
|
209
|
-
spatialAnchorsAccount,
|
210
|
-
options
|
211
|
-
},
|
212
|
-
createOperationSpec,
|
213
|
-
callback) as Promise<Models.SpatialAnchorsAccountsCreateResponse>;
|
242
|
+
{ resourceGroupName, accountName, spatialAnchorsAccount, options },
|
243
|
+
createOperationSpec
|
244
|
+
);
|
214
245
|
}
|
215
246
|
|
216
247
|
/**
|
217
248
|
* List Both of the 2 Keys of a Spatial Anchors Account
|
218
249
|
* @param resourceGroupName Name of an Azure resource group.
|
219
250
|
* @param accountName Name of an Mixed Reality Account.
|
220
|
-
* @param
|
221
|
-
* @returns Promise<Models.SpatialAnchorsAccountsListKeysResponse>
|
222
|
-
*/
|
223
|
-
listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsListKeysResponse>;
|
224
|
-
/**
|
225
|
-
* @param resourceGroupName Name of an Azure resource group.
|
226
|
-
* @param accountName Name of an Mixed Reality Account.
|
227
|
-
* @param callback The callback
|
251
|
+
* @param options The options parameters.
|
228
252
|
*/
|
229
|
-
listKeys(
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
* @param callback The callback
|
235
|
-
*/
|
236
|
-
listKeys(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
|
237
|
-
listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AccountKeys>, callback?: msRest.ServiceCallback<Models.AccountKeys>): Promise<Models.SpatialAnchorsAccountsListKeysResponse> {
|
253
|
+
listKeys(
|
254
|
+
resourceGroupName: string,
|
255
|
+
accountName: string,
|
256
|
+
options?: SpatialAnchorsAccountsListKeysOptionalParams
|
257
|
+
): Promise<SpatialAnchorsAccountsListKeysResponse> {
|
238
258
|
return this.client.sendOperationRequest(
|
239
|
-
{
|
240
|
-
|
241
|
-
|
242
|
-
options
|
243
|
-
},
|
244
|
-
listKeysOperationSpec,
|
245
|
-
callback) as Promise<Models.SpatialAnchorsAccountsListKeysResponse>;
|
259
|
+
{ resourceGroupName, accountName, options },
|
260
|
+
listKeysOperationSpec
|
261
|
+
);
|
246
262
|
}
|
247
263
|
|
248
264
|
/**
|
@@ -250,108 +266,59 @@ export class SpatialAnchorsAccounts {
|
|
250
266
|
* @param resourceGroupName Name of an Azure resource group.
|
251
267
|
* @param accountName Name of an Mixed Reality Account.
|
252
268
|
* @param regenerate Required information for key regeneration.
|
253
|
-
* @param
|
254
|
-
* @returns Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse>
|
255
|
-
*/
|
256
|
-
regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse>;
|
257
|
-
/**
|
258
|
-
* @param resourceGroupName Name of an Azure resource group.
|
259
|
-
* @param accountName Name of an Mixed Reality Account.
|
260
|
-
* @param regenerate Required information for key regeneration.
|
261
|
-
* @param callback The callback
|
269
|
+
* @param options The options parameters.
|
262
270
|
*/
|
263
|
-
regenerateKeys(
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
* @param callback The callback
|
270
|
-
*/
|
271
|
-
regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AccountKeys>): void;
|
272
|
-
regenerateKeys(resourceGroupName: string, accountName: string, regenerate: Models.AccountKeyRegenerateRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AccountKeys>, callback?: msRest.ServiceCallback<Models.AccountKeys>): Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse> {
|
271
|
+
regenerateKeys(
|
272
|
+
resourceGroupName: string,
|
273
|
+
accountName: string,
|
274
|
+
regenerate: AccountKeyRegenerateRequest,
|
275
|
+
options?: SpatialAnchorsAccountsRegenerateKeysOptionalParams
|
276
|
+
): Promise<SpatialAnchorsAccountsRegenerateKeysResponse> {
|
273
277
|
return this.client.sendOperationRequest(
|
274
|
-
{
|
275
|
-
|
276
|
-
|
277
|
-
regenerate,
|
278
|
-
options
|
279
|
-
},
|
280
|
-
regenerateKeysOperationSpec,
|
281
|
-
callback) as Promise<Models.SpatialAnchorsAccountsRegenerateKeysResponse>;
|
278
|
+
{ resourceGroupName, accountName, regenerate, options },
|
279
|
+
regenerateKeysOperationSpec
|
280
|
+
);
|
282
281
|
}
|
283
282
|
|
284
283
|
/**
|
285
|
-
*
|
286
|
-
* @param
|
287
|
-
* @param
|
288
|
-
* @returns Promise<Models.SpatialAnchorsAccountsListBySubscriptionNextResponse>
|
289
|
-
*/
|
290
|
-
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsListBySubscriptionNextResponse>;
|
291
|
-
/**
|
292
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
293
|
-
* @param callback The callback
|
284
|
+
* ListBySubscriptionNext
|
285
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
286
|
+
* @param options The options parameters.
|
294
287
|
*/
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
* @param callback The callback
|
300
|
-
*/
|
301
|
-
listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
|
302
|
-
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>, callback?: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): Promise<Models.SpatialAnchorsAccountsListBySubscriptionNextResponse> {
|
288
|
+
private _listBySubscriptionNext(
|
289
|
+
nextLink: string,
|
290
|
+
options?: SpatialAnchorsAccountsListBySubscriptionNextOptionalParams
|
291
|
+
): Promise<SpatialAnchorsAccountsListBySubscriptionNextResponse> {
|
303
292
|
return this.client.sendOperationRequest(
|
304
|
-
{
|
305
|
-
|
306
|
-
|
307
|
-
},
|
308
|
-
listBySubscriptionNextOperationSpec,
|
309
|
-
callback) as Promise<Models.SpatialAnchorsAccountsListBySubscriptionNextResponse>;
|
293
|
+
{ nextLink, options },
|
294
|
+
listBySubscriptionNextOperationSpec
|
295
|
+
);
|
310
296
|
}
|
311
297
|
|
312
298
|
/**
|
313
|
-
*
|
314
|
-
* @param
|
315
|
-
* @param
|
316
|
-
* @
|
317
|
-
*/
|
318
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.SpatialAnchorsAccountsListByResourceGroupNextResponse>;
|
319
|
-
/**
|
320
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
321
|
-
* @param callback The callback
|
322
|
-
*/
|
323
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SpatialAnchorsAccountPage>): void;
|
324
|
-
/**
|
325
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
326
|
-
* @param options The optional parameters
|
327
|
-
* @param callback The callback
|
299
|
+
* ListByResourceGroupNext
|
300
|
+
* @param resourceGroupName Name of an Azure resource group.
|
301
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
302
|
+
* @param options The options parameters.
|
328
303
|
*/
|
329
|
-
|
330
|
-
|
304
|
+
private _listByResourceGroupNext(
|
305
|
+
resourceGroupName: string,
|
306
|
+
nextLink: string,
|
307
|
+
options?: SpatialAnchorsAccountsListByResourceGroupNextOptionalParams
|
308
|
+
): Promise<SpatialAnchorsAccountsListByResourceGroupNextResponse> {
|
331
309
|
return this.client.sendOperationRequest(
|
332
|
-
{
|
333
|
-
|
334
|
-
|
335
|
-
},
|
336
|
-
listByResourceGroupNextOperationSpec,
|
337
|
-
callback) as Promise<Models.SpatialAnchorsAccountsListByResourceGroupNextResponse>;
|
310
|
+
{ resourceGroupName, nextLink, options },
|
311
|
+
listByResourceGroupNextOperationSpec
|
312
|
+
);
|
338
313
|
}
|
339
314
|
}
|
340
|
-
|
341
315
|
// Operation Specifications
|
342
|
-
const serializer =
|
343
|
-
|
316
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
317
|
+
|
318
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
319
|
+
path:
|
320
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
|
344
321
|
httpMethod: "GET",
|
345
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
|
346
|
-
urlParameters: [
|
347
|
-
Parameters.subscriptionId
|
348
|
-
],
|
349
|
-
queryParameters: [
|
350
|
-
Parameters.apiVersion
|
351
|
-
],
|
352
|
-
headerParameters: [
|
353
|
-
Parameters.acceptLanguage
|
354
|
-
],
|
355
322
|
responses: {
|
356
323
|
200: {
|
357
324
|
bodyMapper: Mappers.SpatialAnchorsAccountPage
|
@@ -360,22 +327,15 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
|
|
360
327
|
bodyMapper: Mappers.CloudError
|
361
328
|
}
|
362
329
|
},
|
330
|
+
queryParameters: [Parameters.apiVersion],
|
331
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
332
|
+
headerParameters: [Parameters.accept],
|
363
333
|
serializer
|
364
334
|
};
|
365
|
-
|
366
|
-
|
335
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
336
|
+
path:
|
337
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
|
367
338
|
httpMethod: "GET",
|
368
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
|
369
|
-
urlParameters: [
|
370
|
-
Parameters.subscriptionId,
|
371
|
-
Parameters.resourceGroupName
|
372
|
-
],
|
373
|
-
queryParameters: [
|
374
|
-
Parameters.apiVersion
|
375
|
-
],
|
376
|
-
headerParameters: [
|
377
|
-
Parameters.acceptLanguage
|
378
|
-
],
|
379
339
|
responses: {
|
380
340
|
200: {
|
381
341
|
bodyMapper: Mappers.SpatialAnchorsAccountPage
|
@@ -384,23 +344,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
384
344
|
bodyMapper: Mappers.CloudError
|
385
345
|
}
|
386
346
|
},
|
387
|
-
|
388
|
-
};
|
389
|
-
|
390
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
391
|
-
httpMethod: "DELETE",
|
392
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
347
|
+
queryParameters: [Parameters.apiVersion],
|
393
348
|
urlParameters: [
|
349
|
+
Parameters.$host,
|
394
350
|
Parameters.subscriptionId,
|
395
|
-
Parameters.resourceGroupName
|
396
|
-
Parameters.accountName
|
397
|
-
],
|
398
|
-
queryParameters: [
|
399
|
-
Parameters.apiVersion
|
400
|
-
],
|
401
|
-
headerParameters: [
|
402
|
-
Parameters.acceptLanguage
|
351
|
+
Parameters.resourceGroupName
|
403
352
|
],
|
353
|
+
headerParameters: [Parameters.accept],
|
354
|
+
serializer
|
355
|
+
};
|
356
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
357
|
+
path:
|
358
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
359
|
+
httpMethod: "DELETE",
|
404
360
|
responses: {
|
405
361
|
200: {},
|
406
362
|
204: {},
|
@@ -408,23 +364,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
408
364
|
bodyMapper: Mappers.CloudError
|
409
365
|
}
|
410
366
|
},
|
411
|
-
|
412
|
-
};
|
413
|
-
|
414
|
-
const getOperationSpec: msRest.OperationSpec = {
|
415
|
-
httpMethod: "GET",
|
416
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
367
|
+
queryParameters: [Parameters.apiVersion],
|
417
368
|
urlParameters: [
|
369
|
+
Parameters.$host,
|
418
370
|
Parameters.subscriptionId,
|
419
371
|
Parameters.resourceGroupName,
|
420
372
|
Parameters.accountName
|
421
373
|
],
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
374
|
+
headerParameters: [Parameters.accept],
|
375
|
+
serializer
|
376
|
+
};
|
377
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
378
|
+
path:
|
379
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
380
|
+
httpMethod: "GET",
|
428
381
|
responses: {
|
429
382
|
200: {
|
430
383
|
bodyMapper: Mappers.SpatialAnchorsAccount
|
@@ -433,30 +386,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
433
386
|
bodyMapper: Mappers.CloudError
|
434
387
|
}
|
435
388
|
},
|
436
|
-
|
437
|
-
};
|
438
|
-
|
439
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
440
|
-
httpMethod: "PATCH",
|
441
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
389
|
+
queryParameters: [Parameters.apiVersion],
|
442
390
|
urlParameters: [
|
391
|
+
Parameters.$host,
|
443
392
|
Parameters.subscriptionId,
|
444
393
|
Parameters.resourceGroupName,
|
445
394
|
Parameters.accountName
|
446
395
|
],
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
parameterPath: "spatialAnchorsAccount",
|
455
|
-
mapper: {
|
456
|
-
...Mappers.SpatialAnchorsAccount,
|
457
|
-
required: true
|
458
|
-
}
|
459
|
-
},
|
396
|
+
headerParameters: [Parameters.accept],
|
397
|
+
serializer
|
398
|
+
};
|
399
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
400
|
+
path:
|
401
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
402
|
+
httpMethod: "PATCH",
|
460
403
|
responses: {
|
461
404
|
200: {
|
462
405
|
bodyMapper: Mappers.SpatialAnchorsAccount
|
@@ -465,30 +408,22 @@ const updateOperationSpec: msRest.OperationSpec = {
|
|
465
408
|
bodyMapper: Mappers.CloudError
|
466
409
|
}
|
467
410
|
},
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
const createOperationSpec: msRest.OperationSpec = {
|
472
|
-
httpMethod: "PUT",
|
473
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
411
|
+
requestBody: Parameters.spatialAnchorsAccount,
|
412
|
+
queryParameters: [Parameters.apiVersion],
|
474
413
|
urlParameters: [
|
414
|
+
Parameters.$host,
|
475
415
|
Parameters.subscriptionId,
|
476
416
|
Parameters.resourceGroupName,
|
477
417
|
Parameters.accountName
|
478
418
|
],
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
mapper: {
|
488
|
-
...Mappers.SpatialAnchorsAccount,
|
489
|
-
required: true
|
490
|
-
}
|
491
|
-
},
|
419
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
420
|
+
mediaType: "json",
|
421
|
+
serializer
|
422
|
+
};
|
423
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
424
|
+
path:
|
425
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
426
|
+
httpMethod: "PUT",
|
492
427
|
responses: {
|
493
428
|
200: {
|
494
429
|
bodyMapper: Mappers.SpatialAnchorsAccount
|
@@ -500,23 +435,22 @@ const createOperationSpec: msRest.OperationSpec = {
|
|
500
435
|
bodyMapper: Mappers.CloudError
|
501
436
|
}
|
502
437
|
},
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
const listKeysOperationSpec: msRest.OperationSpec = {
|
507
|
-
httpMethod: "POST",
|
508
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/listKeys",
|
438
|
+
requestBody: Parameters.spatialAnchorsAccount,
|
439
|
+
queryParameters: [Parameters.apiVersion],
|
509
440
|
urlParameters: [
|
441
|
+
Parameters.$host,
|
510
442
|
Parameters.subscriptionId,
|
511
443
|
Parameters.resourceGroupName,
|
512
444
|
Parameters.accountName
|
513
445
|
],
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
446
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
447
|
+
mediaType: "json",
|
448
|
+
serializer
|
449
|
+
};
|
450
|
+
const listKeysOperationSpec: coreClient.OperationSpec = {
|
451
|
+
path:
|
452
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/listKeys",
|
453
|
+
httpMethod: "POST",
|
520
454
|
responses: {
|
521
455
|
200: {
|
522
456
|
bodyMapper: Mappers.AccountKeys
|
@@ -525,30 +459,20 @@ const listKeysOperationSpec: msRest.OperationSpec = {
|
|
525
459
|
bodyMapper: Mappers.CloudError
|
526
460
|
}
|
527
461
|
},
|
528
|
-
|
529
|
-
};
|
530
|
-
|
531
|
-
const regenerateKeysOperationSpec: msRest.OperationSpec = {
|
532
|
-
httpMethod: "POST",
|
533
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/regenerateKeys",
|
462
|
+
queryParameters: [Parameters.apiVersion],
|
534
463
|
urlParameters: [
|
464
|
+
Parameters.$host,
|
535
465
|
Parameters.subscriptionId,
|
536
466
|
Parameters.resourceGroupName,
|
537
467
|
Parameters.accountName
|
538
468
|
],
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
parameterPath: "regenerate",
|
547
|
-
mapper: {
|
548
|
-
...Mappers.AccountKeyRegenerateRequest,
|
549
|
-
required: true
|
550
|
-
}
|
551
|
-
},
|
469
|
+
headerParameters: [Parameters.accept],
|
470
|
+
serializer
|
471
|
+
};
|
472
|
+
const regenerateKeysOperationSpec: coreClient.OperationSpec = {
|
473
|
+
path:
|
474
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/regenerateKeys",
|
475
|
+
httpMethod: "POST",
|
552
476
|
responses: {
|
553
477
|
200: {
|
554
478
|
bodyMapper: Mappers.AccountKeys
|
@@ -557,22 +481,21 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = {
|
|
557
481
|
bodyMapper: Mappers.CloudError
|
558
482
|
}
|
559
483
|
},
|
484
|
+
requestBody: Parameters.regenerate,
|
485
|
+
queryParameters: [Parameters.apiVersion],
|
486
|
+
urlParameters: [
|
487
|
+
Parameters.$host,
|
488
|
+
Parameters.subscriptionId,
|
489
|
+
Parameters.resourceGroupName,
|
490
|
+
Parameters.accountName
|
491
|
+
],
|
492
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
493
|
+
mediaType: "json",
|
560
494
|
serializer
|
561
495
|
};
|
562
|
-
|
563
|
-
const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
564
|
-
httpMethod: "GET",
|
565
|
-
baseUrl: "https://management.azure.com",
|
496
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
566
497
|
path: "{nextLink}",
|
567
|
-
|
568
|
-
Parameters.nextPageLink
|
569
|
-
],
|
570
|
-
queryParameters: [
|
571
|
-
Parameters.apiVersion
|
572
|
-
],
|
573
|
-
headerParameters: [
|
574
|
-
Parameters.acceptLanguage
|
575
|
-
],
|
498
|
+
httpMethod: "GET",
|
576
499
|
responses: {
|
577
500
|
200: {
|
578
501
|
bodyMapper: Mappers.SpatialAnchorsAccountPage
|
@@ -581,22 +504,18 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
581
504
|
bodyMapper: Mappers.CloudError
|
582
505
|
}
|
583
506
|
},
|
507
|
+
queryParameters: [Parameters.apiVersion],
|
508
|
+
urlParameters: [
|
509
|
+
Parameters.$host,
|
510
|
+
Parameters.nextLink,
|
511
|
+
Parameters.subscriptionId
|
512
|
+
],
|
513
|
+
headerParameters: [Parameters.accept],
|
584
514
|
serializer
|
585
515
|
};
|
586
|
-
|
587
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
588
|
-
httpMethod: "GET",
|
589
|
-
baseUrl: "https://management.azure.com",
|
516
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
590
517
|
path: "{nextLink}",
|
591
|
-
|
592
|
-
Parameters.nextPageLink
|
593
|
-
],
|
594
|
-
queryParameters: [
|
595
|
-
Parameters.apiVersion
|
596
|
-
],
|
597
|
-
headerParameters: [
|
598
|
-
Parameters.acceptLanguage
|
599
|
-
],
|
518
|
+
httpMethod: "GET",
|
600
519
|
responses: {
|
601
520
|
200: {
|
602
521
|
bodyMapper: Mappers.SpatialAnchorsAccountPage
|
@@ -605,5 +524,13 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
605
524
|
bodyMapper: Mappers.CloudError
|
606
525
|
}
|
607
526
|
},
|
527
|
+
queryParameters: [Parameters.apiVersion],
|
528
|
+
urlParameters: [
|
529
|
+
Parameters.$host,
|
530
|
+
Parameters.nextLink,
|
531
|
+
Parameters.subscriptionId,
|
532
|
+
Parameters.resourceGroupName
|
533
|
+
],
|
534
|
+
headerParameters: [Parameters.accept],
|
608
535
|
serializer
|
609
536
|
};
|