@azure/arm-mixedreality 4.0.1 → 4.1.0-alpha.20220427.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +30 -0
- package/README.md +12 -1
- package/dist/index.js +667 -105
- 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/samples-dev/checkNameAvailabilityLocalSample.d.ts +2 -0
- package/dist-esm/samples-dev/checkNameAvailabilityLocalSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilityLocalSample.js +34 -0
- package/dist-esm/samples-dev/checkNameAvailabilityLocalSample.js.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsCreateSample.js +35 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsGetSample.js +31 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListKeysSample.js +31 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsRegenerateKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsRegenerateKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsRegenerateKeysSample.js +32 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsRegenerateKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsUpdateSample.js +36 -0
- package/dist-esm/samples-dev/objectAnchorsAccountsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsCreateSample.js +35 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsGetSample.js +31 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListKeysSample.js +31 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsRegenerateKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsRegenerateKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsRegenerateKeysSample.js +32 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsRegenerateKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsUpdateSample.js +36 -0
- package/dist-esm/samples-dev/remoteRenderingAccountsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsCreateSample.js +34 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsGetSample.js +31 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListKeysSample.js +31 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsRegenerateKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsRegenerateKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsRegenerateKeysSample.js +32 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsRegenerateKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsUpdateSample.js +35 -0
- package/dist-esm/samples-dev/spatialAnchorsAccountsUpdateSample.js.map +1 -0
- package/dist-esm/src/mixedRealityClient.d.ts +2 -1
- package/dist-esm/src/mixedRealityClient.d.ts.map +1 -1
- package/dist-esm/src/mixedRealityClient.js +23 -4
- package/dist-esm/src/mixedRealityClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +86 -1
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +3 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +93 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +6 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/objectAnchorsAccounts.d.ts +98 -0
- package/dist-esm/src/operations/objectAnchorsAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/objectAnchorsAccounts.js +422 -0
- package/dist-esm/src/operations/objectAnchorsAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/objectAnchorsAccounts.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/objectAnchorsAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/objectAnchorsAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/objectAnchorsAccounts.js.map +1 -0
- package/package.json +30 -15
- package/review/arm-mixedreality.api.md +103 -0
- package/rollup.config.js +6 -72
- package/src/mixedRealityClient.ts +34 -5
- package/src/models/index.ts +108 -1
- package/src/models/mappers.ts +108 -0
- package/src/models/parameters.ts +8 -2
- package/src/operations/index.ts +1 -0
- package/src/operations/objectAnchorsAccounts.ts +536 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/objectAnchorsAccounts.ts +119 -0
- package/tsconfig.json +18 -5
- package/types/arm-mixedreality.d.ts +169 -1
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
@@ -0,0 +1,536 @@
|
|
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
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import { ObjectAnchorsAccounts } from "../operationsInterfaces";
|
11
|
+
import * as coreClient from "@azure/core-client";
|
12
|
+
import * as Mappers from "../models/mappers";
|
13
|
+
import * as Parameters from "../models/parameters";
|
14
|
+
import { MixedRealityClient } from "../mixedRealityClient";
|
15
|
+
import {
|
16
|
+
ObjectAnchorsAccount,
|
17
|
+
ObjectAnchorsAccountsListBySubscriptionNextOptionalParams,
|
18
|
+
ObjectAnchorsAccountsListBySubscriptionOptionalParams,
|
19
|
+
ObjectAnchorsAccountsListByResourceGroupNextOptionalParams,
|
20
|
+
ObjectAnchorsAccountsListByResourceGroupOptionalParams,
|
21
|
+
ObjectAnchorsAccountsListBySubscriptionResponse,
|
22
|
+
ObjectAnchorsAccountsListByResourceGroupResponse,
|
23
|
+
ObjectAnchorsAccountsDeleteOptionalParams,
|
24
|
+
ObjectAnchorsAccountsGetOptionalParams,
|
25
|
+
ObjectAnchorsAccountsGetResponse,
|
26
|
+
ObjectAnchorsAccountsUpdateOptionalParams,
|
27
|
+
ObjectAnchorsAccountsUpdateResponse,
|
28
|
+
ObjectAnchorsAccountsCreateOptionalParams,
|
29
|
+
ObjectAnchorsAccountsCreateResponse,
|
30
|
+
ObjectAnchorsAccountsListKeysOptionalParams,
|
31
|
+
ObjectAnchorsAccountsListKeysResponse,
|
32
|
+
AccountKeyRegenerateRequest,
|
33
|
+
ObjectAnchorsAccountsRegenerateKeysOptionalParams,
|
34
|
+
ObjectAnchorsAccountsRegenerateKeysResponse,
|
35
|
+
ObjectAnchorsAccountsListBySubscriptionNextResponse,
|
36
|
+
ObjectAnchorsAccountsListByResourceGroupNextResponse
|
37
|
+
} from "../models";
|
38
|
+
|
39
|
+
/// <reference lib="esnext.asynciterable" />
|
40
|
+
/** Class containing ObjectAnchorsAccounts operations. */
|
41
|
+
export class ObjectAnchorsAccountsImpl implements ObjectAnchorsAccounts {
|
42
|
+
private readonly client: MixedRealityClient;
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Initialize a new instance of the class ObjectAnchorsAccounts class.
|
46
|
+
* @param client Reference to the service client
|
47
|
+
*/
|
48
|
+
constructor(client: MixedRealityClient) {
|
49
|
+
this.client = client;
|
50
|
+
}
|
51
|
+
|
52
|
+
/**
|
53
|
+
* List Object Anchors Accounts by Subscription
|
54
|
+
* @param options The options parameters.
|
55
|
+
*/
|
56
|
+
public listBySubscription(
|
57
|
+
options?: ObjectAnchorsAccountsListBySubscriptionOptionalParams
|
58
|
+
): PagedAsyncIterableIterator<ObjectAnchorsAccount> {
|
59
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
60
|
+
return {
|
61
|
+
next() {
|
62
|
+
return iter.next();
|
63
|
+
},
|
64
|
+
[Symbol.asyncIterator]() {
|
65
|
+
return this;
|
66
|
+
},
|
67
|
+
byPage: () => {
|
68
|
+
return this.listBySubscriptionPagingPage(options);
|
69
|
+
}
|
70
|
+
};
|
71
|
+
}
|
72
|
+
|
73
|
+
private async *listBySubscriptionPagingPage(
|
74
|
+
options?: ObjectAnchorsAccountsListBySubscriptionOptionalParams
|
75
|
+
): AsyncIterableIterator<ObjectAnchorsAccount[]> {
|
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?: ObjectAnchorsAccountsListBySubscriptionOptionalParams
|
88
|
+
): AsyncIterableIterator<ObjectAnchorsAccount> {
|
89
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
90
|
+
yield* page;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
/**
|
95
|
+
* List Resources by Resource Group
|
96
|
+
* @param resourceGroupName Name of an Azure resource group.
|
97
|
+
* @param options The options parameters.
|
98
|
+
*/
|
99
|
+
public listByResourceGroup(
|
100
|
+
resourceGroupName: string,
|
101
|
+
options?: ObjectAnchorsAccountsListByResourceGroupOptionalParams
|
102
|
+
): PagedAsyncIterableIterator<ObjectAnchorsAccount> {
|
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?: ObjectAnchorsAccountsListByResourceGroupOptionalParams
|
120
|
+
): AsyncIterableIterator<ObjectAnchorsAccount[]> {
|
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(
|
126
|
+
resourceGroupName,
|
127
|
+
continuationToken,
|
128
|
+
options
|
129
|
+
);
|
130
|
+
continuationToken = result.nextLink;
|
131
|
+
yield result.value || [];
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
private async *listByResourceGroupPagingAll(
|
136
|
+
resourceGroupName: string,
|
137
|
+
options?: ObjectAnchorsAccountsListByResourceGroupOptionalParams
|
138
|
+
): AsyncIterableIterator<ObjectAnchorsAccount> {
|
139
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
140
|
+
resourceGroupName,
|
141
|
+
options
|
142
|
+
)) {
|
143
|
+
yield* page;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
/**
|
148
|
+
* List Object Anchors Accounts by Subscription
|
149
|
+
* @param options The options parameters.
|
150
|
+
*/
|
151
|
+
private _listBySubscription(
|
152
|
+
options?: ObjectAnchorsAccountsListBySubscriptionOptionalParams
|
153
|
+
): Promise<ObjectAnchorsAccountsListBySubscriptionResponse> {
|
154
|
+
return this.client.sendOperationRequest(
|
155
|
+
{ options },
|
156
|
+
listBySubscriptionOperationSpec
|
157
|
+
);
|
158
|
+
}
|
159
|
+
|
160
|
+
/**
|
161
|
+
* List Resources by Resource Group
|
162
|
+
* @param resourceGroupName Name of an Azure resource group.
|
163
|
+
* @param options The options parameters.
|
164
|
+
*/
|
165
|
+
private _listByResourceGroup(
|
166
|
+
resourceGroupName: string,
|
167
|
+
options?: ObjectAnchorsAccountsListByResourceGroupOptionalParams
|
168
|
+
): Promise<ObjectAnchorsAccountsListByResourceGroupResponse> {
|
169
|
+
return this.client.sendOperationRequest(
|
170
|
+
{ resourceGroupName, options },
|
171
|
+
listByResourceGroupOperationSpec
|
172
|
+
);
|
173
|
+
}
|
174
|
+
|
175
|
+
/**
|
176
|
+
* Delete an Object Anchors Account.
|
177
|
+
* @param resourceGroupName Name of an Azure resource group.
|
178
|
+
* @param accountName Name of an Mixed Reality Account.
|
179
|
+
* @param options The options parameters.
|
180
|
+
*/
|
181
|
+
delete(
|
182
|
+
resourceGroupName: string,
|
183
|
+
accountName: string,
|
184
|
+
options?: ObjectAnchorsAccountsDeleteOptionalParams
|
185
|
+
): Promise<void> {
|
186
|
+
return this.client.sendOperationRequest(
|
187
|
+
{ resourceGroupName, accountName, options },
|
188
|
+
deleteOperationSpec
|
189
|
+
);
|
190
|
+
}
|
191
|
+
|
192
|
+
/**
|
193
|
+
* Retrieve an Object Anchors Account.
|
194
|
+
* @param resourceGroupName Name of an Azure resource group.
|
195
|
+
* @param accountName Name of an Mixed Reality Account.
|
196
|
+
* @param options The options parameters.
|
197
|
+
*/
|
198
|
+
get(
|
199
|
+
resourceGroupName: string,
|
200
|
+
accountName: string,
|
201
|
+
options?: ObjectAnchorsAccountsGetOptionalParams
|
202
|
+
): Promise<ObjectAnchorsAccountsGetResponse> {
|
203
|
+
return this.client.sendOperationRequest(
|
204
|
+
{ resourceGroupName, accountName, options },
|
205
|
+
getOperationSpec
|
206
|
+
);
|
207
|
+
}
|
208
|
+
|
209
|
+
/**
|
210
|
+
* Updating an Object Anchors Account
|
211
|
+
* @param resourceGroupName Name of an Azure resource group.
|
212
|
+
* @param accountName Name of an Mixed Reality Account.
|
213
|
+
* @param objectAnchorsAccount Object Anchors Account parameter.
|
214
|
+
* @param options The options parameters.
|
215
|
+
*/
|
216
|
+
update(
|
217
|
+
resourceGroupName: string,
|
218
|
+
accountName: string,
|
219
|
+
objectAnchorsAccount: ObjectAnchorsAccount,
|
220
|
+
options?: ObjectAnchorsAccountsUpdateOptionalParams
|
221
|
+
): Promise<ObjectAnchorsAccountsUpdateResponse> {
|
222
|
+
return this.client.sendOperationRequest(
|
223
|
+
{ resourceGroupName, accountName, objectAnchorsAccount, options },
|
224
|
+
updateOperationSpec
|
225
|
+
);
|
226
|
+
}
|
227
|
+
|
228
|
+
/**
|
229
|
+
* Creating or Updating an object anchors Account.
|
230
|
+
* @param resourceGroupName Name of an Azure resource group.
|
231
|
+
* @param accountName Name of an Mixed Reality Account.
|
232
|
+
* @param objectAnchorsAccount Object Anchors Account parameter.
|
233
|
+
* @param options The options parameters.
|
234
|
+
*/
|
235
|
+
create(
|
236
|
+
resourceGroupName: string,
|
237
|
+
accountName: string,
|
238
|
+
objectAnchorsAccount: ObjectAnchorsAccount,
|
239
|
+
options?: ObjectAnchorsAccountsCreateOptionalParams
|
240
|
+
): Promise<ObjectAnchorsAccountsCreateResponse> {
|
241
|
+
return this.client.sendOperationRequest(
|
242
|
+
{ resourceGroupName, accountName, objectAnchorsAccount, options },
|
243
|
+
createOperationSpec
|
244
|
+
);
|
245
|
+
}
|
246
|
+
|
247
|
+
/**
|
248
|
+
* List Both of the 2 Keys of an object anchors Account
|
249
|
+
* @param resourceGroupName Name of an Azure resource group.
|
250
|
+
* @param accountName Name of an Mixed Reality Account.
|
251
|
+
* @param options The options parameters.
|
252
|
+
*/
|
253
|
+
listKeys(
|
254
|
+
resourceGroupName: string,
|
255
|
+
accountName: string,
|
256
|
+
options?: ObjectAnchorsAccountsListKeysOptionalParams
|
257
|
+
): Promise<ObjectAnchorsAccountsListKeysResponse> {
|
258
|
+
return this.client.sendOperationRequest(
|
259
|
+
{ resourceGroupName, accountName, options },
|
260
|
+
listKeysOperationSpec
|
261
|
+
);
|
262
|
+
}
|
263
|
+
|
264
|
+
/**
|
265
|
+
* Regenerate specified Key of an object anchors Account
|
266
|
+
* @param resourceGroupName Name of an Azure resource group.
|
267
|
+
* @param accountName Name of an Mixed Reality Account.
|
268
|
+
* @param regenerate Required information for key regeneration.
|
269
|
+
* @param options The options parameters.
|
270
|
+
*/
|
271
|
+
regenerateKeys(
|
272
|
+
resourceGroupName: string,
|
273
|
+
accountName: string,
|
274
|
+
regenerate: AccountKeyRegenerateRequest,
|
275
|
+
options?: ObjectAnchorsAccountsRegenerateKeysOptionalParams
|
276
|
+
): Promise<ObjectAnchorsAccountsRegenerateKeysResponse> {
|
277
|
+
return this.client.sendOperationRequest(
|
278
|
+
{ resourceGroupName, accountName, regenerate, options },
|
279
|
+
regenerateKeysOperationSpec
|
280
|
+
);
|
281
|
+
}
|
282
|
+
|
283
|
+
/**
|
284
|
+
* ListBySubscriptionNext
|
285
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
286
|
+
* @param options The options parameters.
|
287
|
+
*/
|
288
|
+
private _listBySubscriptionNext(
|
289
|
+
nextLink: string,
|
290
|
+
options?: ObjectAnchorsAccountsListBySubscriptionNextOptionalParams
|
291
|
+
): Promise<ObjectAnchorsAccountsListBySubscriptionNextResponse> {
|
292
|
+
return this.client.sendOperationRequest(
|
293
|
+
{ nextLink, options },
|
294
|
+
listBySubscriptionNextOperationSpec
|
295
|
+
);
|
296
|
+
}
|
297
|
+
|
298
|
+
/**
|
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.
|
303
|
+
*/
|
304
|
+
private _listByResourceGroupNext(
|
305
|
+
resourceGroupName: string,
|
306
|
+
nextLink: string,
|
307
|
+
options?: ObjectAnchorsAccountsListByResourceGroupNextOptionalParams
|
308
|
+
): Promise<ObjectAnchorsAccountsListByResourceGroupNextResponse> {
|
309
|
+
return this.client.sendOperationRequest(
|
310
|
+
{ resourceGroupName, nextLink, options },
|
311
|
+
listByResourceGroupNextOperationSpec
|
312
|
+
);
|
313
|
+
}
|
314
|
+
}
|
315
|
+
// Operation Specifications
|
316
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
317
|
+
|
318
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
319
|
+
path:
|
320
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/objectAnchorsAccounts",
|
321
|
+
httpMethod: "GET",
|
322
|
+
responses: {
|
323
|
+
200: {
|
324
|
+
bodyMapper: Mappers.ObjectAnchorsAccountPage
|
325
|
+
},
|
326
|
+
default: {
|
327
|
+
bodyMapper: Mappers.CloudError
|
328
|
+
}
|
329
|
+
},
|
330
|
+
queryParameters: [Parameters.apiVersion],
|
331
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
332
|
+
headerParameters: [Parameters.accept],
|
333
|
+
serializer
|
334
|
+
};
|
335
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
336
|
+
path:
|
337
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts",
|
338
|
+
httpMethod: "GET",
|
339
|
+
responses: {
|
340
|
+
200: {
|
341
|
+
bodyMapper: Mappers.ObjectAnchorsAccountPage
|
342
|
+
},
|
343
|
+
default: {
|
344
|
+
bodyMapper: Mappers.CloudError
|
345
|
+
}
|
346
|
+
},
|
347
|
+
queryParameters: [Parameters.apiVersion],
|
348
|
+
urlParameters: [
|
349
|
+
Parameters.$host,
|
350
|
+
Parameters.subscriptionId,
|
351
|
+
Parameters.resourceGroupName
|
352
|
+
],
|
353
|
+
headerParameters: [Parameters.accept],
|
354
|
+
serializer
|
355
|
+
};
|
356
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
357
|
+
path:
|
358
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts/{accountName}",
|
359
|
+
httpMethod: "DELETE",
|
360
|
+
responses: {
|
361
|
+
200: {},
|
362
|
+
204: {},
|
363
|
+
default: {
|
364
|
+
bodyMapper: Mappers.CloudError
|
365
|
+
}
|
366
|
+
},
|
367
|
+
queryParameters: [Parameters.apiVersion],
|
368
|
+
urlParameters: [
|
369
|
+
Parameters.$host,
|
370
|
+
Parameters.subscriptionId,
|
371
|
+
Parameters.resourceGroupName,
|
372
|
+
Parameters.accountName
|
373
|
+
],
|
374
|
+
headerParameters: [Parameters.accept],
|
375
|
+
serializer
|
376
|
+
};
|
377
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
378
|
+
path:
|
379
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts/{accountName}",
|
380
|
+
httpMethod: "GET",
|
381
|
+
responses: {
|
382
|
+
200: {
|
383
|
+
bodyMapper: Mappers.ObjectAnchorsAccount
|
384
|
+
},
|
385
|
+
default: {
|
386
|
+
bodyMapper: Mappers.CloudError
|
387
|
+
}
|
388
|
+
},
|
389
|
+
queryParameters: [Parameters.apiVersion],
|
390
|
+
urlParameters: [
|
391
|
+
Parameters.$host,
|
392
|
+
Parameters.subscriptionId,
|
393
|
+
Parameters.resourceGroupName,
|
394
|
+
Parameters.accountName
|
395
|
+
],
|
396
|
+
headerParameters: [Parameters.accept],
|
397
|
+
serializer
|
398
|
+
};
|
399
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
400
|
+
path:
|
401
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts/{accountName}",
|
402
|
+
httpMethod: "PATCH",
|
403
|
+
responses: {
|
404
|
+
200: {
|
405
|
+
bodyMapper: Mappers.ObjectAnchorsAccount
|
406
|
+
},
|
407
|
+
default: {
|
408
|
+
bodyMapper: Mappers.CloudError
|
409
|
+
}
|
410
|
+
},
|
411
|
+
requestBody: Parameters.objectAnchorsAccount,
|
412
|
+
queryParameters: [Parameters.apiVersion],
|
413
|
+
urlParameters: [
|
414
|
+
Parameters.$host,
|
415
|
+
Parameters.subscriptionId,
|
416
|
+
Parameters.resourceGroupName,
|
417
|
+
Parameters.accountName
|
418
|
+
],
|
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/objectAnchorsAccounts/{accountName}",
|
426
|
+
httpMethod: "PUT",
|
427
|
+
responses: {
|
428
|
+
200: {
|
429
|
+
bodyMapper: Mappers.ObjectAnchorsAccount
|
430
|
+
},
|
431
|
+
201: {
|
432
|
+
bodyMapper: Mappers.ObjectAnchorsAccount
|
433
|
+
},
|
434
|
+
default: {
|
435
|
+
bodyMapper: Mappers.CloudError
|
436
|
+
}
|
437
|
+
},
|
438
|
+
requestBody: Parameters.objectAnchorsAccount,
|
439
|
+
queryParameters: [Parameters.apiVersion],
|
440
|
+
urlParameters: [
|
441
|
+
Parameters.$host,
|
442
|
+
Parameters.subscriptionId,
|
443
|
+
Parameters.resourceGroupName,
|
444
|
+
Parameters.accountName
|
445
|
+
],
|
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/objectAnchorsAccounts/{accountName}/listKeys",
|
453
|
+
httpMethod: "POST",
|
454
|
+
responses: {
|
455
|
+
200: {
|
456
|
+
bodyMapper: Mappers.AccountKeys
|
457
|
+
},
|
458
|
+
default: {
|
459
|
+
bodyMapper: Mappers.CloudError
|
460
|
+
}
|
461
|
+
},
|
462
|
+
queryParameters: [Parameters.apiVersion],
|
463
|
+
urlParameters: [
|
464
|
+
Parameters.$host,
|
465
|
+
Parameters.subscriptionId,
|
466
|
+
Parameters.resourceGroupName,
|
467
|
+
Parameters.accountName
|
468
|
+
],
|
469
|
+
headerParameters: [Parameters.accept],
|
470
|
+
serializer
|
471
|
+
};
|
472
|
+
const regenerateKeysOperationSpec: coreClient.OperationSpec = {
|
473
|
+
path:
|
474
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts/{accountName}/regenerateKeys",
|
475
|
+
httpMethod: "POST",
|
476
|
+
responses: {
|
477
|
+
200: {
|
478
|
+
bodyMapper: Mappers.AccountKeys
|
479
|
+
},
|
480
|
+
default: {
|
481
|
+
bodyMapper: Mappers.CloudError
|
482
|
+
}
|
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",
|
494
|
+
serializer
|
495
|
+
};
|
496
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
497
|
+
path: "{nextLink}",
|
498
|
+
httpMethod: "GET",
|
499
|
+
responses: {
|
500
|
+
200: {
|
501
|
+
bodyMapper: Mappers.ObjectAnchorsAccountPage
|
502
|
+
},
|
503
|
+
default: {
|
504
|
+
bodyMapper: Mappers.CloudError
|
505
|
+
}
|
506
|
+
},
|
507
|
+
queryParameters: [Parameters.apiVersion],
|
508
|
+
urlParameters: [
|
509
|
+
Parameters.$host,
|
510
|
+
Parameters.nextLink,
|
511
|
+
Parameters.subscriptionId
|
512
|
+
],
|
513
|
+
headerParameters: [Parameters.accept],
|
514
|
+
serializer
|
515
|
+
};
|
516
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
517
|
+
path: "{nextLink}",
|
518
|
+
httpMethod: "GET",
|
519
|
+
responses: {
|
520
|
+
200: {
|
521
|
+
bodyMapper: Mappers.ObjectAnchorsAccountPage
|
522
|
+
},
|
523
|
+
default: {
|
524
|
+
bodyMapper: Mappers.CloudError
|
525
|
+
}
|
526
|
+
},
|
527
|
+
queryParameters: [Parameters.apiVersion],
|
528
|
+
urlParameters: [
|
529
|
+
Parameters.$host,
|
530
|
+
Parameters.nextLink,
|
531
|
+
Parameters.subscriptionId,
|
532
|
+
Parameters.resourceGroupName
|
533
|
+
],
|
534
|
+
headerParameters: [Parameters.accept],
|
535
|
+
serializer
|
536
|
+
};
|
@@ -0,0 +1,119 @@
|
|
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
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import {
|
11
|
+
ObjectAnchorsAccount,
|
12
|
+
ObjectAnchorsAccountsListBySubscriptionOptionalParams,
|
13
|
+
ObjectAnchorsAccountsListByResourceGroupOptionalParams,
|
14
|
+
ObjectAnchorsAccountsDeleteOptionalParams,
|
15
|
+
ObjectAnchorsAccountsGetOptionalParams,
|
16
|
+
ObjectAnchorsAccountsGetResponse,
|
17
|
+
ObjectAnchorsAccountsUpdateOptionalParams,
|
18
|
+
ObjectAnchorsAccountsUpdateResponse,
|
19
|
+
ObjectAnchorsAccountsCreateOptionalParams,
|
20
|
+
ObjectAnchorsAccountsCreateResponse,
|
21
|
+
ObjectAnchorsAccountsListKeysOptionalParams,
|
22
|
+
ObjectAnchorsAccountsListKeysResponse,
|
23
|
+
AccountKeyRegenerateRequest,
|
24
|
+
ObjectAnchorsAccountsRegenerateKeysOptionalParams,
|
25
|
+
ObjectAnchorsAccountsRegenerateKeysResponse
|
26
|
+
} from "../models";
|
27
|
+
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
29
|
+
/** Interface representing a ObjectAnchorsAccounts. */
|
30
|
+
export interface ObjectAnchorsAccounts {
|
31
|
+
/**
|
32
|
+
* List Object Anchors Accounts by Subscription
|
33
|
+
* @param options The options parameters.
|
34
|
+
*/
|
35
|
+
listBySubscription(
|
36
|
+
options?: ObjectAnchorsAccountsListBySubscriptionOptionalParams
|
37
|
+
): PagedAsyncIterableIterator<ObjectAnchorsAccount>;
|
38
|
+
/**
|
39
|
+
* List Resources by Resource Group
|
40
|
+
* @param resourceGroupName Name of an Azure resource group.
|
41
|
+
* @param options The options parameters.
|
42
|
+
*/
|
43
|
+
listByResourceGroup(
|
44
|
+
resourceGroupName: string,
|
45
|
+
options?: ObjectAnchorsAccountsListByResourceGroupOptionalParams
|
46
|
+
): PagedAsyncIterableIterator<ObjectAnchorsAccount>;
|
47
|
+
/**
|
48
|
+
* Delete an Object Anchors Account.
|
49
|
+
* @param resourceGroupName Name of an Azure resource group.
|
50
|
+
* @param accountName Name of an Mixed Reality Account.
|
51
|
+
* @param options The options parameters.
|
52
|
+
*/
|
53
|
+
delete(
|
54
|
+
resourceGroupName: string,
|
55
|
+
accountName: string,
|
56
|
+
options?: ObjectAnchorsAccountsDeleteOptionalParams
|
57
|
+
): Promise<void>;
|
58
|
+
/**
|
59
|
+
* Retrieve an Object Anchors Account.
|
60
|
+
* @param resourceGroupName Name of an Azure resource group.
|
61
|
+
* @param accountName Name of an Mixed Reality Account.
|
62
|
+
* @param options The options parameters.
|
63
|
+
*/
|
64
|
+
get(
|
65
|
+
resourceGroupName: string,
|
66
|
+
accountName: string,
|
67
|
+
options?: ObjectAnchorsAccountsGetOptionalParams
|
68
|
+
): Promise<ObjectAnchorsAccountsGetResponse>;
|
69
|
+
/**
|
70
|
+
* Updating an Object Anchors Account
|
71
|
+
* @param resourceGroupName Name of an Azure resource group.
|
72
|
+
* @param accountName Name of an Mixed Reality Account.
|
73
|
+
* @param objectAnchorsAccount Object Anchors Account parameter.
|
74
|
+
* @param options The options parameters.
|
75
|
+
*/
|
76
|
+
update(
|
77
|
+
resourceGroupName: string,
|
78
|
+
accountName: string,
|
79
|
+
objectAnchorsAccount: ObjectAnchorsAccount,
|
80
|
+
options?: ObjectAnchorsAccountsUpdateOptionalParams
|
81
|
+
): Promise<ObjectAnchorsAccountsUpdateResponse>;
|
82
|
+
/**
|
83
|
+
* Creating or Updating an object anchors Account.
|
84
|
+
* @param resourceGroupName Name of an Azure resource group.
|
85
|
+
* @param accountName Name of an Mixed Reality Account.
|
86
|
+
* @param objectAnchorsAccount Object Anchors Account parameter.
|
87
|
+
* @param options The options parameters.
|
88
|
+
*/
|
89
|
+
create(
|
90
|
+
resourceGroupName: string,
|
91
|
+
accountName: string,
|
92
|
+
objectAnchorsAccount: ObjectAnchorsAccount,
|
93
|
+
options?: ObjectAnchorsAccountsCreateOptionalParams
|
94
|
+
): Promise<ObjectAnchorsAccountsCreateResponse>;
|
95
|
+
/**
|
96
|
+
* List Both of the 2 Keys of an object anchors Account
|
97
|
+
* @param resourceGroupName Name of an Azure resource group.
|
98
|
+
* @param accountName Name of an Mixed Reality Account.
|
99
|
+
* @param options The options parameters.
|
100
|
+
*/
|
101
|
+
listKeys(
|
102
|
+
resourceGroupName: string,
|
103
|
+
accountName: string,
|
104
|
+
options?: ObjectAnchorsAccountsListKeysOptionalParams
|
105
|
+
): Promise<ObjectAnchorsAccountsListKeysResponse>;
|
106
|
+
/**
|
107
|
+
* Regenerate specified Key of an object anchors Account
|
108
|
+
* @param resourceGroupName Name of an Azure resource group.
|
109
|
+
* @param accountName Name of an Mixed Reality Account.
|
110
|
+
* @param regenerate Required information for key regeneration.
|
111
|
+
* @param options The options parameters.
|
112
|
+
*/
|
113
|
+
regenerateKeys(
|
114
|
+
resourceGroupName: string,
|
115
|
+
accountName: string,
|
116
|
+
regenerate: AccountKeyRegenerateRequest,
|
117
|
+
options?: ObjectAnchorsAccountsRegenerateKeysOptionalParams
|
118
|
+
): Promise<ObjectAnchorsAccountsRegenerateKeysResponse>;
|
119
|
+
}
|
package/tsconfig.json
CHANGED
@@ -9,12 +9,25 @@
|
|
9
9
|
"esModuleInterop": true,
|
10
10
|
"allowSyntheticDefaultImports": true,
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
12
|
-
"lib": [
|
12
|
+
"lib": [
|
13
|
+
"es6",
|
14
|
+
"dom"
|
15
|
+
],
|
13
16
|
"declaration": true,
|
14
17
|
"outDir": "./dist-esm",
|
15
18
|
"importHelpers": true,
|
16
|
-
"paths": {
|
19
|
+
"paths": {
|
20
|
+
"@azure/arm-mixedreality": [
|
21
|
+
"./src/index"
|
22
|
+
]
|
23
|
+
}
|
17
24
|
},
|
18
|
-
"include": [
|
19
|
-
|
20
|
-
|
25
|
+
"include": [
|
26
|
+
"./src/**/*.ts",
|
27
|
+
"./test/**/*.ts",
|
28
|
+
"samples-dev/**/*.ts"
|
29
|
+
],
|
30
|
+
"exclude": [
|
31
|
+
"node_modules"
|
32
|
+
]
|
33
|
+
}
|