@azure/arm-mixedreality 4.1.0-alpha.20221128.1 → 4.1.0-alpha.20221206.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +17 -4
- package/dist/index.js +214 -68
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/mixedRealityClient.d.ts +2 -0
- package/dist-esm/src/mixedRealityClient.d.ts.map +1 -1
- package/dist-esm/src/mixedRealityClient.js +49 -18
- package/dist-esm/src/mixedRealityClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +16 -9
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +6 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/objectAnchorsAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/objectAnchorsAccounts.js +37 -14
- package/dist-esm/src/operations/objectAnchorsAccounts.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/remoteRenderingAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/remoteRenderingAccounts.js +37 -14
- package/dist-esm/src/operations/remoteRenderingAccounts.js.map +1 -1
- package/dist-esm/src/operations/spatialAnchorsAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/spatialAnchorsAccounts.js +37 -14
- package/dist-esm/src/operations/spatialAnchorsAccounts.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +12 -8
- package/review/arm-mixedreality.api.md +27 -28
- package/src/index.ts +1 -0
- package/src/mixedRealityClient.ts +60 -20
- package/src/models/index.ts +15 -9
- package/src/operations/objectAnchorsAccounts.ts +45 -16
- package/src/operations/operations.ts +21 -8
- package/src/operations/remoteRenderingAccounts.ts +45 -16
- package/src/operations/spatialAnchorsAccounts.ts +45 -16
- package/src/pagingHelper.ts +39 -0
- package/types/arm-mixedreality.d.ts +27 -9
- package/dist-esm/samples-dev/checkLocalNameAvailability.d.ts +0 -2
- package/dist-esm/samples-dev/checkLocalNameAvailability.d.ts.map +0 -1
- package/dist-esm/samples-dev/checkLocalNameAvailability.js +0 -34
- package/dist-esm/samples-dev/checkLocalNameAvailability.js.map +0 -1
- package/dist-esm/samples-dev/createRemoteRenderingAccount.d.ts +0 -2
- package/dist-esm/samples-dev/createRemoteRenderingAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/createRemoteRenderingAccount.js +0 -35
- package/dist-esm/samples-dev/createRemoteRenderingAccount.js.map +0 -1
- package/dist-esm/samples-dev/createSpatialAnchorAccount.d.ts +0 -2
- package/dist-esm/samples-dev/createSpatialAnchorAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/createSpatialAnchorAccount.js +0 -34
- package/dist-esm/samples-dev/createSpatialAnchorAccount.js.map +0 -1
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.d.ts +0 -2
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.js +0 -31
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.js.map +0 -1
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.d.ts +0 -2
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.js +0 -31
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.js.map +0 -1
- package/dist-esm/samples-dev/getRemoteRenderingAccount.d.ts +0 -2
- package/dist-esm/samples-dev/getRemoteRenderingAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/getRemoteRenderingAccount.js +0 -31
- package/dist-esm/samples-dev/getRemoteRenderingAccount.js.map +0 -1
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.d.ts +0 -2
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.js +0 -31
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.js.map +0 -1
- package/dist-esm/samples-dev/listAvailableOperations.d.ts +0 -2
- package/dist-esm/samples-dev/listAvailableOperations.d.ts.map +0 -1
- package/dist-esm/samples-dev/listAvailableOperations.js +0 -43
- package/dist-esm/samples-dev/listAvailableOperations.js.map +0 -1
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.d.ts +0 -2
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.d.ts.map +0 -1
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.js +0 -31
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.js.map +0 -1
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.js +0 -44
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.d.ts +0 -2
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.d.ts.map +0 -1
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.js +0 -43
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.js.map +0 -1
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.d.ts +0 -2
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.d.ts.map +0 -1
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.js +0 -31
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.js.map +0 -1
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.js +0 -44
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.d.ts +0 -2
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.d.ts.map +0 -1
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.js +0 -43
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.js.map +0 -1
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.d.ts +0 -2
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.d.ts.map +0 -1
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.js +0 -32
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.js.map +0 -1
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.d.ts +0 -2
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.d.ts.map +0 -1
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.js +0 -32
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.js.map +0 -1
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.d.ts +0 -2
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.js +0 -36
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.js.map +0 -1
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.d.ts +0 -2
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.js +0 -35
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.js.map +0 -1
@@ -6,7 +6,8 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { Operations } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
|
|
48
49
|
[Symbol.asyncIterator]() {
|
49
50
|
return this;
|
50
51
|
},
|
51
|
-
byPage: () => {
|
52
|
-
|
52
|
+
byPage: (settings?: PageSettings) => {
|
53
|
+
if (settings?.maxPageSize) {
|
54
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
55
|
+
}
|
56
|
+
return this.listPagingPage(options, settings);
|
53
57
|
}
|
54
58
|
};
|
55
59
|
}
|
56
60
|
|
57
61
|
private async *listPagingPage(
|
58
|
-
options?: OperationsListOptionalParams
|
62
|
+
options?: OperationsListOptionalParams,
|
63
|
+
settings?: PageSettings
|
59
64
|
): AsyncIterableIterator<Operation[]> {
|
60
|
-
let result
|
61
|
-
|
62
|
-
|
65
|
+
let result: OperationsListResponse;
|
66
|
+
let continuationToken = settings?.continuationToken;
|
67
|
+
if (!continuationToken) {
|
68
|
+
result = await this._list(options);
|
69
|
+
let page = result.value || [];
|
70
|
+
continuationToken = result.nextLink;
|
71
|
+
setContinuationToken(page, continuationToken);
|
72
|
+
yield page;
|
73
|
+
}
|
63
74
|
while (continuationToken) {
|
64
75
|
result = await this._listNext(continuationToken, options);
|
65
76
|
continuationToken = result.nextLink;
|
66
|
-
|
77
|
+
let page = result.value || [];
|
78
|
+
setContinuationToken(page, continuationToken);
|
79
|
+
yield page;
|
67
80
|
}
|
68
81
|
}
|
69
82
|
|
@@ -6,7 +6,8 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { RemoteRenderingAccounts } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -16,9 +17,9 @@ import {
|
|
16
17
|
RemoteRenderingAccount,
|
17
18
|
RemoteRenderingAccountsListBySubscriptionNextOptionalParams,
|
18
19
|
RemoteRenderingAccountsListBySubscriptionOptionalParams,
|
20
|
+
RemoteRenderingAccountsListBySubscriptionResponse,
|
19
21
|
RemoteRenderingAccountsListByResourceGroupNextOptionalParams,
|
20
22
|
RemoteRenderingAccountsListByResourceGroupOptionalParams,
|
21
|
-
RemoteRenderingAccountsListBySubscriptionResponse,
|
22
23
|
RemoteRenderingAccountsListByResourceGroupResponse,
|
23
24
|
RemoteRenderingAccountsDeleteOptionalParams,
|
24
25
|
RemoteRenderingAccountsGetOptionalParams,
|
@@ -64,22 +65,34 @@ export class RemoteRenderingAccountsImpl implements RemoteRenderingAccounts {
|
|
64
65
|
[Symbol.asyncIterator]() {
|
65
66
|
return this;
|
66
67
|
},
|
67
|
-
byPage: () => {
|
68
|
-
|
68
|
+
byPage: (settings?: PageSettings) => {
|
69
|
+
if (settings?.maxPageSize) {
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
71
|
+
}
|
72
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
69
73
|
}
|
70
74
|
};
|
71
75
|
}
|
72
76
|
|
73
77
|
private async *listBySubscriptionPagingPage(
|
74
|
-
options?: RemoteRenderingAccountsListBySubscriptionOptionalParams
|
78
|
+
options?: RemoteRenderingAccountsListBySubscriptionOptionalParams,
|
79
|
+
settings?: PageSettings
|
75
80
|
): AsyncIterableIterator<RemoteRenderingAccount[]> {
|
76
|
-
let result
|
77
|
-
|
78
|
-
|
81
|
+
let result: RemoteRenderingAccountsListBySubscriptionResponse;
|
82
|
+
let continuationToken = settings?.continuationToken;
|
83
|
+
if (!continuationToken) {
|
84
|
+
result = await this._listBySubscription(options);
|
85
|
+
let page = result.value || [];
|
86
|
+
continuationToken = result.nextLink;
|
87
|
+
setContinuationToken(page, continuationToken);
|
88
|
+
yield page;
|
89
|
+
}
|
79
90
|
while (continuationToken) {
|
80
91
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
81
92
|
continuationToken = result.nextLink;
|
82
|
-
|
93
|
+
let page = result.value || [];
|
94
|
+
setContinuationToken(page, continuationToken);
|
95
|
+
yield page;
|
83
96
|
}
|
84
97
|
}
|
85
98
|
|
@@ -108,19 +121,33 @@ export class RemoteRenderingAccountsImpl implements RemoteRenderingAccounts {
|
|
108
121
|
[Symbol.asyncIterator]() {
|
109
122
|
return this;
|
110
123
|
},
|
111
|
-
byPage: () => {
|
112
|
-
|
124
|
+
byPage: (settings?: PageSettings) => {
|
125
|
+
if (settings?.maxPageSize) {
|
126
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
127
|
+
}
|
128
|
+
return this.listByResourceGroupPagingPage(
|
129
|
+
resourceGroupName,
|
130
|
+
options,
|
131
|
+
settings
|
132
|
+
);
|
113
133
|
}
|
114
134
|
};
|
115
135
|
}
|
116
136
|
|
117
137
|
private async *listByResourceGroupPagingPage(
|
118
138
|
resourceGroupName: string,
|
119
|
-
options?: RemoteRenderingAccountsListByResourceGroupOptionalParams
|
139
|
+
options?: RemoteRenderingAccountsListByResourceGroupOptionalParams,
|
140
|
+
settings?: PageSettings
|
120
141
|
): AsyncIterableIterator<RemoteRenderingAccount[]> {
|
121
|
-
let result
|
122
|
-
|
123
|
-
|
142
|
+
let result: RemoteRenderingAccountsListByResourceGroupResponse;
|
143
|
+
let continuationToken = settings?.continuationToken;
|
144
|
+
if (!continuationToken) {
|
145
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
146
|
+
let page = result.value || [];
|
147
|
+
continuationToken = result.nextLink;
|
148
|
+
setContinuationToken(page, continuationToken);
|
149
|
+
yield page;
|
150
|
+
}
|
124
151
|
while (continuationToken) {
|
125
152
|
result = await this._listByResourceGroupNext(
|
126
153
|
resourceGroupName,
|
@@ -128,7 +155,9 @@ export class RemoteRenderingAccountsImpl implements RemoteRenderingAccounts {
|
|
128
155
|
options
|
129
156
|
);
|
130
157
|
continuationToken = result.nextLink;
|
131
|
-
|
158
|
+
let page = result.value || [];
|
159
|
+
setContinuationToken(page, continuationToken);
|
160
|
+
yield page;
|
132
161
|
}
|
133
162
|
}
|
134
163
|
|
@@ -6,7 +6,8 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
11
|
import { SpatialAnchorsAccounts } from "../operationsInterfaces";
|
11
12
|
import * as coreClient from "@azure/core-client";
|
12
13
|
import * as Mappers from "../models/mappers";
|
@@ -16,9 +17,9 @@ import {
|
|
16
17
|
SpatialAnchorsAccount,
|
17
18
|
SpatialAnchorsAccountsListBySubscriptionNextOptionalParams,
|
18
19
|
SpatialAnchorsAccountsListBySubscriptionOptionalParams,
|
20
|
+
SpatialAnchorsAccountsListBySubscriptionResponse,
|
19
21
|
SpatialAnchorsAccountsListByResourceGroupNextOptionalParams,
|
20
22
|
SpatialAnchorsAccountsListByResourceGroupOptionalParams,
|
21
|
-
SpatialAnchorsAccountsListBySubscriptionResponse,
|
22
23
|
SpatialAnchorsAccountsListByResourceGroupResponse,
|
23
24
|
SpatialAnchorsAccountsDeleteOptionalParams,
|
24
25
|
SpatialAnchorsAccountsGetOptionalParams,
|
@@ -64,22 +65,34 @@ export class SpatialAnchorsAccountsImpl implements SpatialAnchorsAccounts {
|
|
64
65
|
[Symbol.asyncIterator]() {
|
65
66
|
return this;
|
66
67
|
},
|
67
|
-
byPage: () => {
|
68
|
-
|
68
|
+
byPage: (settings?: PageSettings) => {
|
69
|
+
if (settings?.maxPageSize) {
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
71
|
+
}
|
72
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
69
73
|
}
|
70
74
|
};
|
71
75
|
}
|
72
76
|
|
73
77
|
private async *listBySubscriptionPagingPage(
|
74
|
-
options?: SpatialAnchorsAccountsListBySubscriptionOptionalParams
|
78
|
+
options?: SpatialAnchorsAccountsListBySubscriptionOptionalParams,
|
79
|
+
settings?: PageSettings
|
75
80
|
): AsyncIterableIterator<SpatialAnchorsAccount[]> {
|
76
|
-
let result
|
77
|
-
|
78
|
-
|
81
|
+
let result: SpatialAnchorsAccountsListBySubscriptionResponse;
|
82
|
+
let continuationToken = settings?.continuationToken;
|
83
|
+
if (!continuationToken) {
|
84
|
+
result = await this._listBySubscription(options);
|
85
|
+
let page = result.value || [];
|
86
|
+
continuationToken = result.nextLink;
|
87
|
+
setContinuationToken(page, continuationToken);
|
88
|
+
yield page;
|
89
|
+
}
|
79
90
|
while (continuationToken) {
|
80
91
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
81
92
|
continuationToken = result.nextLink;
|
82
|
-
|
93
|
+
let page = result.value || [];
|
94
|
+
setContinuationToken(page, continuationToken);
|
95
|
+
yield page;
|
83
96
|
}
|
84
97
|
}
|
85
98
|
|
@@ -108,19 +121,33 @@ export class SpatialAnchorsAccountsImpl implements SpatialAnchorsAccounts {
|
|
108
121
|
[Symbol.asyncIterator]() {
|
109
122
|
return this;
|
110
123
|
},
|
111
|
-
byPage: () => {
|
112
|
-
|
124
|
+
byPage: (settings?: PageSettings) => {
|
125
|
+
if (settings?.maxPageSize) {
|
126
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
127
|
+
}
|
128
|
+
return this.listByResourceGroupPagingPage(
|
129
|
+
resourceGroupName,
|
130
|
+
options,
|
131
|
+
settings
|
132
|
+
);
|
113
133
|
}
|
114
134
|
};
|
115
135
|
}
|
116
136
|
|
117
137
|
private async *listByResourceGroupPagingPage(
|
118
138
|
resourceGroupName: string,
|
119
|
-
options?: SpatialAnchorsAccountsListByResourceGroupOptionalParams
|
139
|
+
options?: SpatialAnchorsAccountsListByResourceGroupOptionalParams,
|
140
|
+
settings?: PageSettings
|
120
141
|
): AsyncIterableIterator<SpatialAnchorsAccount[]> {
|
121
|
-
let result
|
122
|
-
|
123
|
-
|
142
|
+
let result: SpatialAnchorsAccountsListByResourceGroupResponse;
|
143
|
+
let continuationToken = settings?.continuationToken;
|
144
|
+
if (!continuationToken) {
|
145
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
146
|
+
let page = result.value || [];
|
147
|
+
continuationToken = result.nextLink;
|
148
|
+
setContinuationToken(page, continuationToken);
|
149
|
+
yield page;
|
150
|
+
}
|
124
151
|
while (continuationToken) {
|
125
152
|
result = await this._listByResourceGroupNext(
|
126
153
|
resourceGroupName,
|
@@ -128,7 +155,9 @@ export class SpatialAnchorsAccountsImpl implements SpatialAnchorsAccounts {
|
|
128
155
|
options
|
129
156
|
);
|
130
157
|
continuationToken = result.nextLink;
|
131
|
-
|
158
|
+
let page = result.value || [];
|
159
|
+
setContinuationToken(page, continuationToken);
|
160
|
+
yield page;
|
132
161
|
}
|
133
162
|
}
|
134
163
|
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
|
9
|
+
export interface PageInfo {
|
10
|
+
continuationToken?: string;
|
11
|
+
}
|
12
|
+
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Given a result page from a pageable operation, returns a
|
17
|
+
* continuation token that can be used to begin paging from
|
18
|
+
* that point later.
|
19
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
20
|
+
* @returns The continuation token that can be passed into byPage().
|
21
|
+
*/
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
23
|
+
if (typeof page !== "object" || page === null) {
|
24
|
+
return undefined;
|
25
|
+
}
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
27
|
+
}
|
28
|
+
|
29
|
+
export function setContinuationToken(
|
30
|
+
page: unknown,
|
31
|
+
continuationToken: string | undefined
|
32
|
+
): void {
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
34
|
+
return;
|
35
|
+
}
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
38
|
+
pageMap.set(page, pageInfo);
|
39
|
+
}
|
@@ -77,6 +77,15 @@ export declare interface CloudErrorBody {
|
|
77
77
|
*/
|
78
78
|
export declare type CreatedByType = string;
|
79
79
|
|
80
|
+
/**
|
81
|
+
* Given a result page from a pageable operation, returns a
|
82
|
+
* continuation token that can be used to begin paging from
|
83
|
+
* that point later.
|
84
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
85
|
+
* @returns The continuation token that can be passed into byPage().
|
86
|
+
*/
|
87
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
88
|
+
|
80
89
|
/** Identity for the resource. */
|
81
90
|
export declare interface Identity {
|
82
91
|
/**
|
@@ -95,15 +104,21 @@ export declare interface Identity {
|
|
95
104
|
|
96
105
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
97
106
|
export declare enum KnownCreatedByType {
|
107
|
+
/** User */
|
98
108
|
User = "User",
|
109
|
+
/** Application */
|
99
110
|
Application = "Application",
|
111
|
+
/** ManagedIdentity */
|
100
112
|
ManagedIdentity = "ManagedIdentity",
|
113
|
+
/** Key */
|
101
114
|
Key = "Key"
|
102
115
|
}
|
103
116
|
|
104
117
|
/** Known values of {@link NameUnavailableReason} that the service accepts. */
|
105
118
|
export declare enum KnownNameUnavailableReason {
|
119
|
+
/** Invalid */
|
106
120
|
Invalid = "Invalid",
|
121
|
+
/** AlreadyExists */
|
107
122
|
AlreadyExists = "AlreadyExists"
|
108
123
|
}
|
109
124
|
|
@@ -177,6 +192,8 @@ export declare class MixedRealityClient extends coreClient.ServiceClient {
|
|
177
192
|
* @param options The parameter options
|
178
193
|
*/
|
179
194
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MixedRealityClientOptionalParams);
|
195
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
196
|
+
private addCustomApiVersionPolicy;
|
180
197
|
/**
|
181
198
|
* Check Name Availability for local uniqueness
|
182
199
|
* @param location The location in which uniqueness will be verified.
|
@@ -211,7 +228,7 @@ export declare interface MixedRealityClientOptionalParams extends coreClient.Ser
|
|
211
228
|
export declare type NameUnavailableReason = string;
|
212
229
|
|
213
230
|
/** ObjectAnchorsAccount Response. */
|
214
|
-
export declare
|
231
|
+
export declare interface ObjectAnchorsAccount extends TrackedResource {
|
215
232
|
identity?: ObjectAnchorsAccountIdentity;
|
216
233
|
/** The plan associated with this account */
|
217
234
|
plan?: Identity;
|
@@ -236,9 +253,10 @@ export declare type ObjectAnchorsAccount = TrackedResource & {
|
|
236
253
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
237
254
|
*/
|
238
255
|
readonly accountDomain?: string;
|
239
|
-
}
|
256
|
+
}
|
240
257
|
|
241
|
-
export declare
|
258
|
+
export declare interface ObjectAnchorsAccountIdentity extends Identity {
|
259
|
+
}
|
242
260
|
|
243
261
|
/** Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results. */
|
244
262
|
export declare interface ObjectAnchorsAccountPage {
|
@@ -439,7 +457,7 @@ export declare interface OperationsListOptionalParams extends coreClient.Operati
|
|
439
457
|
export declare type OperationsListResponse = OperationPage;
|
440
458
|
|
441
459
|
/** RemoteRenderingAccount Response. */
|
442
|
-
export declare
|
460
|
+
export declare interface RemoteRenderingAccount extends TrackedResource {
|
443
461
|
/** The identity associated with this account */
|
444
462
|
identity?: Identity;
|
445
463
|
/** The plan associated with this account */
|
@@ -465,7 +483,7 @@ export declare type RemoteRenderingAccount = TrackedResource & {
|
|
465
483
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
466
484
|
*/
|
467
485
|
readonly accountDomain?: string;
|
468
|
-
}
|
486
|
+
}
|
469
487
|
|
470
488
|
/** Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results. */
|
471
489
|
export declare interface RemoteRenderingAccountPage {
|
@@ -650,7 +668,7 @@ export declare interface Sku {
|
|
650
668
|
export declare type SkuTier = "Free" | "Basic" | "Standard" | "Premium";
|
651
669
|
|
652
670
|
/** SpatialAnchorsAccount Response. */
|
653
|
-
export declare
|
671
|
+
export declare interface SpatialAnchorsAccount extends TrackedResource {
|
654
672
|
/** The identity associated with this account */
|
655
673
|
identity?: Identity;
|
656
674
|
/** The plan associated with this account */
|
@@ -676,7 +694,7 @@ export declare type SpatialAnchorsAccount = TrackedResource & {
|
|
676
694
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
677
695
|
*/
|
678
696
|
readonly accountDomain?: string;
|
679
|
-
}
|
697
|
+
}
|
680
698
|
|
681
699
|
/** Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results. */
|
682
700
|
export declare interface SpatialAnchorsAccountPage {
|
@@ -830,13 +848,13 @@ export declare interface SystemData {
|
|
830
848
|
}
|
831
849
|
|
832
850
|
/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
|
833
|
-
export declare
|
851
|
+
export declare interface TrackedResource extends Resource {
|
834
852
|
/** Resource tags. */
|
835
853
|
tags?: {
|
836
854
|
[propertyName: string]: string;
|
837
855
|
};
|
838
856
|
/** The geo-location where the resource lives */
|
839
857
|
location: string;
|
840
|
-
}
|
858
|
+
}
|
841
859
|
|
842
860
|
export { }
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"checkLocalNameAvailability.d.ts","sourceRoot":"","sources":["../../samples-dev/checkLocalNameAvailability.ts"],"names":[],"mappings":""}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
*
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
-
*/
|
8
|
-
import { __awaiter } from "tslib";
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
10
|
-
// Licensed under the MIT License.
|
11
|
-
/**
|
12
|
-
* This sample demonstrates how to Check Name Availability for local uniqueness
|
13
|
-
*
|
14
|
-
* @summary Check Name Availability for local uniqueness
|
15
|
-
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json
|
16
|
-
*/
|
17
|
-
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
-
function checkLocalNameAvailability() {
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
21
|
-
const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
|
22
|
-
const location = "eastus2euap";
|
23
|
-
const checkNameAvailability = {
|
24
|
-
name: "MyAccount",
|
25
|
-
type: "Microsoft.MixedReality/spatialAnchorsAccounts"
|
26
|
-
};
|
27
|
-
const credential = new DefaultAzureCredential();
|
28
|
-
const client = new MixedRealityClient(credential, subscriptionId);
|
29
|
-
const result = yield client.checkNameAvailabilityLocal(location, checkNameAvailability);
|
30
|
-
console.log(result);
|
31
|
-
});
|
32
|
-
}
|
33
|
-
checkLocalNameAvailability().catch(console.error);
|
34
|
-
//# sourceMappingURL=checkLocalNameAvailability.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"checkLocalNameAvailability.js","sourceRoot":"","sources":["../../samples-dev/checkLocalNameAvailability.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,QAAQ,GAAG,aAAa,CAAC;QAC/B,MAAM,qBAAqB,GAAiC;YAC1D,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,+CAA+C;SACtD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CACpD,QAAQ,EACR,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0BAA0B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createRemoteRenderingAccount.d.ts","sourceRoot":"","sources":["../../samples-dev/createRemoteRenderingAccount.ts"],"names":[],"mappings":""}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
*
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
-
*/
|
8
|
-
import { __awaiter } from "tslib";
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
10
|
-
// Licensed under the MIT License.
|
11
|
-
/**
|
12
|
-
* This sample demonstrates how to Creating or Updating a Remote Rendering Account.
|
13
|
-
*
|
14
|
-
* @summary Creating or Updating a Remote Rendering Account.
|
15
|
-
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Put.json
|
16
|
-
*/
|
17
|
-
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
-
function createRemoteRenderingAccount() {
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
21
|
-
const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
|
22
|
-
const resourceGroupName = "MyResourceGroup";
|
23
|
-
const accountName = "MyAccount";
|
24
|
-
const remoteRenderingAccount = {
|
25
|
-
identity: { type: "SystemAssigned" },
|
26
|
-
location: "eastus2euap"
|
27
|
-
};
|
28
|
-
const credential = new DefaultAzureCredential();
|
29
|
-
const client = new MixedRealityClient(credential, subscriptionId);
|
30
|
-
const result = yield client.remoteRenderingAccounts.create(resourceGroupName, accountName, remoteRenderingAccount);
|
31
|
-
console.log(result);
|
32
|
-
});
|
33
|
-
}
|
34
|
-
createRemoteRenderingAccount().catch(console.error);
|
35
|
-
//# sourceMappingURL=createRemoteRenderingAccount.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createRemoteRenderingAccount.js","sourceRoot":"","sources":["../../samples-dev/createRemoteRenderingAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,sBAAsB,GAA2B;YACrD,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;YACpC,QAAQ,EAAE,aAAa;SACxB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,MAAM,CACxD,iBAAiB,EACjB,WAAW,EACX,sBAAsB,CACvB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createSpatialAnchorAccount.d.ts","sourceRoot":"","sources":["../../samples-dev/createSpatialAnchorAccount.ts"],"names":[],"mappings":""}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
*
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
-
*/
|
8
|
-
import { __awaiter } from "tslib";
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
10
|
-
// Licensed under the MIT License.
|
11
|
-
/**
|
12
|
-
* This sample demonstrates how to Creating or Updating a Spatial Anchors Account.
|
13
|
-
*
|
14
|
-
* @summary Creating or Updating a Spatial Anchors Account.
|
15
|
-
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Put.json
|
16
|
-
*/
|
17
|
-
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
-
function createSpatialAnchorAccount() {
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
21
|
-
const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
|
22
|
-
const resourceGroupName = "MyResourceGroup";
|
23
|
-
const accountName = "MyAccount";
|
24
|
-
const spatialAnchorsAccount = {
|
25
|
-
location: "eastus2euap"
|
26
|
-
};
|
27
|
-
const credential = new DefaultAzureCredential();
|
28
|
-
const client = new MixedRealityClient(credential, subscriptionId);
|
29
|
-
const result = yield client.spatialAnchorsAccounts.create(resourceGroupName, accountName, spatialAnchorsAccount);
|
30
|
-
console.log(result);
|
31
|
-
});
|
32
|
-
}
|
33
|
-
createSpatialAnchorAccount().catch(console.error);
|
34
|
-
//# sourceMappingURL=createSpatialAnchorAccount.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createSpatialAnchorAccount.js","sourceRoot":"","sources":["../../samples-dev/createSpatialAnchorAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,qBAAqB,GAA0B;YACnD,QAAQ,EAAE,aAAa;SACxB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,MAAM,CACvD,iBAAiB,EACjB,WAAW,EACX,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0BAA0B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"deleteRemoteRenderingAccount.d.ts","sourceRoot":"","sources":["../../samples-dev/deleteRemoteRenderingAccount.ts"],"names":[],"mappings":""}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
*
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
-
*/
|
8
|
-
import { __awaiter } from "tslib";
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
10
|
-
// Licensed under the MIT License.
|
11
|
-
/**
|
12
|
-
* This sample demonstrates how to Delete a Remote Rendering Account.
|
13
|
-
*
|
14
|
-
* @summary Delete a Remote Rendering Account.
|
15
|
-
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Delete.json
|
16
|
-
*/
|
17
|
-
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
-
function deleteRemoteRenderingAccount() {
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
21
|
-
const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
|
22
|
-
const resourceGroupName = "MyResourceGroup";
|
23
|
-
const accountName = "MyAccount";
|
24
|
-
const credential = new DefaultAzureCredential();
|
25
|
-
const client = new MixedRealityClient(credential, subscriptionId);
|
26
|
-
const result = yield client.remoteRenderingAccounts.delete(resourceGroupName, accountName);
|
27
|
-
console.log(result);
|
28
|
-
});
|
29
|
-
}
|
30
|
-
deleteRemoteRenderingAccount().catch(console.error);
|
31
|
-
//# sourceMappingURL=deleteRemoteRenderingAccount.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"deleteRemoteRenderingAccount.js","sourceRoot":"","sources":["../../samples-dev/deleteRemoteRenderingAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,MAAM,CACxD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"deleteSpatialAnchorsAccount.d.ts","sourceRoot":"","sources":["../../samples-dev/deleteSpatialAnchorsAccount.ts"],"names":[],"mappings":""}
|