@azure/arm-mixedreality 4.0.1-alpha.20220413.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 +11 -11
- 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,43 @@
|
|
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 { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to List Object Anchors Accounts by Subscription
|
15
|
+
*
|
16
|
+
* @summary List Object Anchors Accounts by Subscription
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/GetBySubscription.json
|
18
|
+
*/
|
19
|
+
function listObjectAnchorsAccountsBySubscription() {
|
20
|
+
var e_1, _a;
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
|
23
|
+
const credential = new DefaultAzureCredential();
|
24
|
+
const client = new MixedRealityClient(credential, subscriptionId);
|
25
|
+
const resArray = new Array();
|
26
|
+
try {
|
27
|
+
for (var _b = __asyncValues(client.objectAnchorsAccounts.listBySubscription()), _c; _c = yield _b.next(), !_c.done;) {
|
28
|
+
let item = _c.value;
|
29
|
+
resArray.push(item);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
33
|
+
finally {
|
34
|
+
try {
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
36
|
+
}
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
38
|
+
}
|
39
|
+
console.log(resArray);
|
40
|
+
});
|
41
|
+
}
|
42
|
+
listObjectAnchorsAccountsBySubscription().catch(console.error);
|
43
|
+
//# sourceMappingURL=objectAnchorsAccountsListBySubscriptionSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"objectAnchorsAccountsListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/objectAnchorsAccountsListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uCAAuC;;;QACpD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,qBAAqB,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAA7D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"objectAnchorsAccountsListKeysSample.d.ts","sourceRoot":"","sources":["../../samples-dev/objectAnchorsAccountsListKeysSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,31 @@
|
|
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
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to List Both of the 2 Keys of an object anchors Account
|
15
|
+
*
|
16
|
+
* @summary List Both of the 2 Keys of an object anchors Account
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/ListKeys.json
|
18
|
+
*/
|
19
|
+
function listObjectAnchorsAccountKey() {
|
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.objectAnchorsAccounts.listKeys(resourceGroupName, accountName);
|
27
|
+
console.log(result);
|
28
|
+
});
|
29
|
+
}
|
30
|
+
listObjectAnchorsAccountKey().catch(console.error);
|
31
|
+
//# sourceMappingURL=objectAnchorsAccountsListKeysSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"objectAnchorsAccountsListKeysSample.js","sourceRoot":"","sources":["../../samples-dev/objectAnchorsAccountsListKeysSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,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,qBAAqB,CAAC,QAAQ,CACxD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"objectAnchorsAccountsRegenerateKeysSample.d.ts","sourceRoot":"","sources":["../../samples-dev/objectAnchorsAccountsRegenerateKeysSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,32 @@
|
|
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
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Regenerate specified Key of an object anchors Account
|
15
|
+
*
|
16
|
+
* @summary Regenerate specified Key of an object anchors Account
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/RegenerateKey.json
|
18
|
+
*/
|
19
|
+
function regenerateObjectAnchorsAccountKeys() {
|
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 regenerate = { serial: 1 };
|
25
|
+
const credential = new DefaultAzureCredential();
|
26
|
+
const client = new MixedRealityClient(credential, subscriptionId);
|
27
|
+
const result = yield client.objectAnchorsAccounts.regenerateKeys(resourceGroupName, accountName, regenerate);
|
28
|
+
console.log(result);
|
29
|
+
});
|
30
|
+
}
|
31
|
+
regenerateObjectAnchorsAccountKeys().catch(console.error);
|
32
|
+
//# sourceMappingURL=objectAnchorsAccountsRegenerateKeysSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"objectAnchorsAccountsRegenerateKeysSample.js","sourceRoot":"","sources":["../../samples-dev/objectAnchorsAccountsRegenerateKeysSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kCAAkC;;QAC/C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAgC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;QAC9D,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,qBAAqB,CAAC,cAAc,CAC9D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kCAAkC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"objectAnchorsAccountsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/objectAnchorsAccountsUpdateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,36 @@
|
|
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
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Updating an Object Anchors Account
|
15
|
+
*
|
16
|
+
* @summary Updating an Object Anchors Account
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/object-anchors/Patch.json
|
18
|
+
*/
|
19
|
+
function updateObjectAnchorsAccount() {
|
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 objectAnchorsAccount = {
|
25
|
+
identity: { type: "SystemAssigned" },
|
26
|
+
location: "eastus2euap",
|
27
|
+
tags: { hero: "romeo", heroine: "juliet" }
|
28
|
+
};
|
29
|
+
const credential = new DefaultAzureCredential();
|
30
|
+
const client = new MixedRealityClient(credential, subscriptionId);
|
31
|
+
const result = yield client.objectAnchorsAccounts.update(resourceGroupName, accountName, objectAnchorsAccount);
|
32
|
+
console.log(result);
|
33
|
+
});
|
34
|
+
}
|
35
|
+
updateObjectAnchorsAccount().catch(console.error);
|
36
|
+
//# sourceMappingURL=objectAnchorsAccountsUpdateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"objectAnchorsAccountsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/objectAnchorsAccountsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,oBAAoB,GAAyB;YACjD,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;YACpC,QAAQ,EAAE,aAAa;YACvB,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE;SAC3C,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,qBAAqB,CAAC,MAAM,CACtD,iBAAiB,EACjB,WAAW,EACX,oBAAoB,CACrB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0BAA0B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,43 @@
|
|
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 { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Exposing Available Operations
|
15
|
+
*
|
16
|
+
* @summary Exposing Available Operations
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/proxy/ExposingAvailableOperations.json
|
18
|
+
*/
|
19
|
+
function listAvailableOperations() {
|
20
|
+
var e_1, _a;
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
23
|
+
const credential = new DefaultAzureCredential();
|
24
|
+
const client = new MixedRealityClient(credential, subscriptionId);
|
25
|
+
const resArray = new Array();
|
26
|
+
try {
|
27
|
+
for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
|
28
|
+
let item = _c.value;
|
29
|
+
resArray.push(item);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
33
|
+
finally {
|
34
|
+
try {
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
36
|
+
}
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
38
|
+
}
|
39
|
+
console.log(resArray);
|
40
|
+
});
|
41
|
+
}
|
42
|
+
listAvailableOperations().catch(console.error);
|
43
|
+
//# sourceMappingURL=operationsListSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsCreateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,35 @@
|
|
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
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Creating or Updating a Remote Rendering Account.
|
15
|
+
*
|
16
|
+
* @summary Creating or Updating a Remote Rendering Account.
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Put.json
|
18
|
+
*/
|
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=remoteRenderingAccountsCreateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsDeleteSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,31 @@
|
|
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
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Delete a Remote Rendering Account.
|
15
|
+
*
|
16
|
+
* @summary Delete a Remote Rendering Account.
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Delete.json
|
18
|
+
*/
|
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=remoteRenderingAccountsDeleteSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsGetSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,31 @@
|
|
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
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Retrieve a Remote Rendering Account.
|
15
|
+
*
|
16
|
+
* @summary Retrieve a Remote Rendering Account.
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/Get.json
|
18
|
+
*/
|
19
|
+
function getRemoteRenderingAccount() {
|
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.get(resourceGroupName, accountName);
|
27
|
+
console.log(result);
|
28
|
+
});
|
29
|
+
}
|
30
|
+
getRemoteRenderingAccount().catch(console.error);
|
31
|
+
//# sourceMappingURL=remoteRenderingAccountsGetSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsGetSample.js","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,yBAAyB;;QACtC,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,GAAG,CACrD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsListByResourceGroupSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,44 @@
|
|
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 { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to List Resources by Resource Group
|
15
|
+
*
|
16
|
+
* @summary List Resources by Resource Group
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/GetByResourceGroup.json
|
18
|
+
*/
|
19
|
+
function listRemoteRenderingAccountsByResourceGroup() {
|
20
|
+
var e_1, _a;
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
|
23
|
+
const resourceGroupName = "MyResourceGroup";
|
24
|
+
const credential = new DefaultAzureCredential();
|
25
|
+
const client = new MixedRealityClient(credential, subscriptionId);
|
26
|
+
const resArray = new Array();
|
27
|
+
try {
|
28
|
+
for (var _b = __asyncValues(client.remoteRenderingAccounts.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
|
29
|
+
let item = _c.value;
|
30
|
+
resArray.push(item);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
34
|
+
finally {
|
35
|
+
try {
|
36
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
37
|
+
}
|
38
|
+
finally { if (e_1) throw e_1.error; }
|
39
|
+
}
|
40
|
+
console.log(resArray);
|
41
|
+
});
|
42
|
+
}
|
43
|
+
listRemoteRenderingAccountsByResourceGroup().catch(console.error);
|
44
|
+
//# sourceMappingURL=remoteRenderingAccountsListByResourceGroupSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0CAA0C;;;QACvD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,uBAAuB,CAAC,mBAAmB,CACvE,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,0CAA0C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsListBySubscriptionSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,43 @@
|
|
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 { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to List Remote Rendering Accounts by Subscription
|
15
|
+
*
|
16
|
+
* @summary List Remote Rendering Accounts by Subscription
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/GetBySubscription.json
|
18
|
+
*/
|
19
|
+
function listRemoteRenderingAccountsBySubscription() {
|
20
|
+
var e_1, _a;
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const subscriptionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
|
23
|
+
const credential = new DefaultAzureCredential();
|
24
|
+
const client = new MixedRealityClient(credential, subscriptionId);
|
25
|
+
const resArray = new Array();
|
26
|
+
try {
|
27
|
+
for (var _b = __asyncValues(client.remoteRenderingAccounts.listBySubscription()), _c; _c = yield _b.next(), !_c.done;) {
|
28
|
+
let item = _c.value;
|
29
|
+
resArray.push(item);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
33
|
+
finally {
|
34
|
+
try {
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
36
|
+
}
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
38
|
+
}
|
39
|
+
console.log(resArray);
|
40
|
+
});
|
41
|
+
}
|
42
|
+
listRemoteRenderingAccountsBySubscription().catch(console.error);
|
43
|
+
//# sourceMappingURL=remoteRenderingAccountsListBySubscriptionSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,yCAAyC;;;QACtD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAClE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,uBAAuB,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAA/D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,yCAAyC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsListKeysSample.d.ts","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsListKeysSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,31 @@
|
|
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
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to List Both of the 2 Keys of a Remote Rendering Account
|
15
|
+
*
|
16
|
+
* @summary List Both of the 2 Keys of a Remote Rendering Account
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/ListKeys.json
|
18
|
+
*/
|
19
|
+
function listRemoteRenderingAccountKey() {
|
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.listKeys(resourceGroupName, accountName);
|
27
|
+
console.log(result);
|
28
|
+
});
|
29
|
+
}
|
30
|
+
listRemoteRenderingAccountKey().catch(console.error);
|
31
|
+
//# sourceMappingURL=remoteRenderingAccountsListKeysSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsListKeysSample.js","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsListKeysSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,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,QAAQ,CAC1D,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsRegenerateKeysSample.d.ts","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsRegenerateKeysSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,32 @@
|
|
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
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Regenerate specified Key of a Remote Rendering Account
|
15
|
+
*
|
16
|
+
* @summary Regenerate specified Key of a Remote Rendering Account
|
17
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2021-03-01-preview/examples/remote-rendering/RegenerateKey.json
|
18
|
+
*/
|
19
|
+
function regenerateRemoteRenderingAccountKeys() {
|
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 regenerate = { serial: 1 };
|
25
|
+
const credential = new DefaultAzureCredential();
|
26
|
+
const client = new MixedRealityClient(credential, subscriptionId);
|
27
|
+
const result = yield client.remoteRenderingAccounts.regenerateKeys(resourceGroupName, accountName, regenerate);
|
28
|
+
console.log(result);
|
29
|
+
});
|
30
|
+
}
|
31
|
+
regenerateRemoteRenderingAccountKeys().catch(console.error);
|
32
|
+
//# sourceMappingURL=remoteRenderingAccountsRegenerateKeysSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsRegenerateKeysSample.js","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsRegenerateKeysSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oCAAoC;;QACjD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAgC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;QAC9D,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,cAAc,CAChE,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oCAAoC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remoteRenderingAccountsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/remoteRenderingAccountsUpdateSample.ts"],"names":[],"mappings":""}
|