@azure/arm-mixedreality 2.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +1 -1
- package/README.md +72 -73
- package/dist/index.js +2016 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/checkLocalNameAvailability.d.ts +2 -0
- package/dist-esm/samples-dev/checkLocalNameAvailability.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkLocalNameAvailability.js +34 -0
- package/dist-esm/samples-dev/checkLocalNameAvailability.js.map +1 -0
- package/dist-esm/samples-dev/createRemoteRenderingAccount.d.ts +2 -0
- package/dist-esm/samples-dev/createRemoteRenderingAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/createRemoteRenderingAccount.js +35 -0
- package/dist-esm/samples-dev/createRemoteRenderingAccount.js.map +1 -0
- package/dist-esm/samples-dev/createSpatialAnchorAccount.d.ts +2 -0
- package/dist-esm/samples-dev/createSpatialAnchorAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/createSpatialAnchorAccount.js +34 -0
- package/dist-esm/samples-dev/createSpatialAnchorAccount.js.map +1 -0
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.d.ts +2 -0
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.js +31 -0
- package/dist-esm/samples-dev/deleteRemoteRenderingAccount.js.map +1 -0
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.d.ts +2 -0
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.js +31 -0
- package/dist-esm/samples-dev/deleteSpatialAnchorsAccount.js.map +1 -0
- package/dist-esm/samples-dev/getRemoteRenderingAccount.d.ts +2 -0
- package/dist-esm/samples-dev/getRemoteRenderingAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/getRemoteRenderingAccount.js +31 -0
- package/dist-esm/samples-dev/getRemoteRenderingAccount.js.map +1 -0
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.d.ts +2 -0
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.js +31 -0
- package/dist-esm/samples-dev/getSpatialAnchorsAccount.js.map +1 -0
- package/dist-esm/samples-dev/listAvailableOperations.d.ts +2 -0
- package/dist-esm/samples-dev/listAvailableOperations.d.ts.map +1 -0
- package/dist-esm/samples-dev/listAvailableOperations.js +43 -0
- package/dist-esm/samples-dev/listAvailableOperations.js.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.d.ts +2 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.d.ts.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.js +31 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountKey.js.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.d.ts +2 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.js +43 -0
- package/dist-esm/samples-dev/listRemoteRenderingAccountsBySubscription.js.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.d.ts +2 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.js +31 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountKey.js.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/listSpatialAnchorAccountsByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.d.ts +2 -0
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.js +43 -0
- package/dist-esm/samples-dev/listSpatialAnchorsAccountsBySubscription.js.map +1 -0
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.d.ts +2 -0
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.js +32 -0
- package/dist-esm/samples-dev/regenerateRemoteRenderingAccountKeys.js.map +1 -0
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.d.ts +2 -0
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.js +32 -0
- package/dist-esm/samples-dev/regenerateSpatialAnchorsAccountKeys.js.map +1 -0
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.d.ts +2 -0
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.js +36 -0
- package/dist-esm/samples-dev/updateRemoteRenderingAccount.js.map +1 -0
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.d.ts +2 -0
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.js +35 -0
- package/dist-esm/samples-dev/updateSpatialAnchorsAccount.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/mixedRealityClient.d.ts +28 -0
- package/dist-esm/src/mixedRealityClient.d.ts.map +1 -0
- package/dist-esm/src/mixedRealityClient.js +89 -0
- package/dist-esm/src/mixedRealityClient.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +444 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +22 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +25 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +473 -288
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +15 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +135 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/remoteRenderingAccounts.d.ts +98 -0
- package/dist-esm/src/operations/remoteRenderingAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/remoteRenderingAccounts.js +422 -0
- package/dist-esm/src/operations/remoteRenderingAccounts.js.map +1 -0
- package/dist-esm/src/operations/spatialAnchorsAccounts.d.ts +98 -0
- package/dist-esm/src/operations/spatialAnchorsAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/spatialAnchorsAccounts.js +422 -0
- package/dist-esm/src/operations/spatialAnchorsAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/remoteRenderingAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/spatialAnchorsAccounts.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +75 -32
- package/review/arm-mixedreality.api.md +436 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/mixedRealityClient.ts +104 -77
- package/src/models/index.ts +405 -735
- package/src/models/mappers.ts +478 -295
- package/src/models/parameters.ts +93 -47
- package/src/operations/index.ts +3 -5
- package/src/operations/operations.ts +87 -73
- package/src/operations/remoteRenderingAccounts.ts +321 -389
- package/src/operations/spatialAnchorsAccounts.ts +321 -389
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/remoteRenderingAccounts.ts +119 -0
- package/src/operationsInterfaces/spatialAnchorsAccounts.ts +119 -0
- package/tsconfig.json +5 -4
- package/types/arm-mixedreality.d.ts +674 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-mixedreality.js +0 -1756
- package/dist/arm-mixedreality.js.map +0 -1
- package/dist/arm-mixedreality.min.js +0 -1
- package/dist/arm-mixedreality.min.js.map +0 -1
- package/esm/mixedRealityClient.d.ts +0 -42
- package/esm/mixedRealityClient.d.ts.map +0 -1
- package/esm/mixedRealityClient.js +0 -73
- package/esm/mixedRealityClient.js.map +0 -1
- package/esm/mixedRealityClientContext.d.ts +0 -16
- package/esm/mixedRealityClientContext.d.ts.map +0 -1
- package/esm/mixedRealityClientContext.js +0 -56
- package/esm/mixedRealityClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -778
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -27
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -110
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/remoteRenderingAccountsMappers.d.ts +0 -2
- package/esm/models/remoteRenderingAccountsMappers.d.ts.map +0 -1
- package/esm/models/remoteRenderingAccountsMappers.js +0 -9
- package/esm/models/remoteRenderingAccountsMappers.js.map +0 -1
- package/esm/models/spatialAnchorsAccountsMappers.d.ts +0 -2
- package/esm/models/spatialAnchorsAccountsMappers.d.ts.map +0 -1
- package/esm/models/spatialAnchorsAccountsMappers.js +0 -9
- package/esm/models/spatialAnchorsAccountsMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/remoteRenderingAccounts.d.ts +0 -217
- package/esm/operations/remoteRenderingAccounts.d.ts.map +0 -1
- package/esm/operations/remoteRenderingAccounts.js +0 -339
- package/esm/operations/remoteRenderingAccounts.js.map +0 -1
- package/esm/operations/spatialAnchorsAccounts.d.ts +0 -217
- package/esm/operations/spatialAnchorsAccounts.d.ts.map +0 -1
- package/esm/operations/spatialAnchorsAccounts.js +0 -339
- package/esm/operations/spatialAnchorsAccounts.js.map +0 -1
- package/src/mixedRealityClientContext.ts +0 -61
- package/src/models/operationsMappers.ts +0 -14
- package/src/models/remoteRenderingAccountsMappers.ts +0 -29
- package/src/models/spatialAnchorsAccountsMappers.ts +0 -29
@@ -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
|
+
/**
|
12
|
+
* This sample demonstrates how to Regenerate specified Key of a Spatial Anchors Account
|
13
|
+
*
|
14
|
+
* @summary Regenerate specified Key of a Spatial Anchors Account
|
15
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/RegenerateKey.json
|
16
|
+
*/
|
17
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function regenerateSpatialAnchorsAccountKeys() {
|
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.spatialAnchorsAccounts.regenerateKeys(resourceGroupName, accountName, regenerate);
|
28
|
+
console.log(result);
|
29
|
+
});
|
30
|
+
}
|
31
|
+
regenerateSpatialAnchorsAccountKeys().catch(console.error);
|
32
|
+
//# sourceMappingURL=regenerateSpatialAnchorsAccountKeys.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"regenerateSpatialAnchorsAccountKeys.js","sourceRoot":"","sources":["../../samples-dev/regenerateSpatialAnchorsAccountKeys.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,mCAAmC;;QAChD,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,sBAAsB,CAAC,cAAc,CAC/D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mCAAmC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"updateRemoteRenderingAccount.d.ts","sourceRoot":"","sources":["../../samples-dev/updateRemoteRenderingAccount.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
|
+
/**
|
12
|
+
* This sample demonstrates how to Updating a Remote Rendering Account
|
13
|
+
*
|
14
|
+
* @summary Updating a Remote Rendering Account
|
15
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/remote-rendering/Patch.json
|
16
|
+
*/
|
17
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function updateRemoteRenderingAccount() {
|
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
|
+
tags: { hero: "romeo", heroine: "juliet" }
|
28
|
+
};
|
29
|
+
const credential = new DefaultAzureCredential();
|
30
|
+
const client = new MixedRealityClient(credential, subscriptionId);
|
31
|
+
const result = yield client.remoteRenderingAccounts.update(resourceGroupName, accountName, remoteRenderingAccount);
|
32
|
+
console.log(result);
|
33
|
+
});
|
34
|
+
}
|
35
|
+
updateRemoteRenderingAccount().catch(console.error);
|
36
|
+
//# sourceMappingURL=updateRemoteRenderingAccount.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"updateRemoteRenderingAccount.js","sourceRoot":"","sources":["../../samples-dev/updateRemoteRenderingAccount.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;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,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":"updateSpatialAnchorsAccount.d.ts","sourceRoot":"","sources":["../../samples-dev/updateSpatialAnchorsAccount.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
|
+
/**
|
12
|
+
* This sample demonstrates how to Updating a Spatial Anchors Account
|
13
|
+
*
|
14
|
+
* @summary Updating a Spatial Anchors Account
|
15
|
+
* x-ms-original-file: specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2021-01-01/examples/spatial-anchors/Patch.json
|
16
|
+
*/
|
17
|
+
import { MixedRealityClient } from "@azure/arm-mixedreality";
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
19
|
+
function updateSpatialAnchorsAccount() {
|
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
|
+
tags: { hero: "romeo", heroine: "juliet" }
|
27
|
+
};
|
28
|
+
const credential = new DefaultAzureCredential();
|
29
|
+
const client = new MixedRealityClient(credential, subscriptionId);
|
30
|
+
const result = yield client.spatialAnchorsAccounts.update(resourceGroupName, accountName, spatialAnchorsAccount);
|
31
|
+
console.log(result);
|
32
|
+
});
|
33
|
+
}
|
34
|
+
updateSpatialAnchorsAccount().catch(console.error);
|
35
|
+
//# sourceMappingURL=updateSpatialAnchorsAccount.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"updateSpatialAnchorsAccount.js","sourceRoot":"","sources":["../../samples-dev/updateSpatialAnchorsAccount.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,2BAA2B;;QACxC,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;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,sBAAsB,CAAC,MAAM,CACvD,iBAAiB,EACjB,WAAW,EACX,qBAAqB,CACtB,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":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,wBAAwB,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
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
|
+
/// <reference lib="esnext.asynciterable" />
|
9
|
+
export * from "./models";
|
10
|
+
export { MixedRealityClient } from "./mixedRealityClient";
|
11
|
+
export * from "./operationsInterfaces";
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,wBAAwB,CAAC"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
3
|
+
import { Operations, SpatialAnchorsAccounts, RemoteRenderingAccounts } from "./operationsInterfaces";
|
4
|
+
import { MixedRealityClientOptionalParams, CheckNameAvailabilityRequest, CheckNameAvailabilityLocalOptionalParams, CheckNameAvailabilityLocalResponse } from "./models";
|
5
|
+
export declare class MixedRealityClient extends coreClient.ServiceClient {
|
6
|
+
$host: string;
|
7
|
+
apiVersion: string;
|
8
|
+
subscriptionId: string;
|
9
|
+
/**
|
10
|
+
* Initializes a new instance of the MixedRealityClient class.
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
12
|
+
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
13
|
+
* 00000000-0000-0000-0000-000000000000)
|
14
|
+
* @param options The parameter options
|
15
|
+
*/
|
16
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MixedRealityClientOptionalParams);
|
17
|
+
/**
|
18
|
+
* Check Name Availability for local uniqueness
|
19
|
+
* @param location The location in which uniqueness will be verified.
|
20
|
+
* @param checkNameAvailability Check Name Availability Request.
|
21
|
+
* @param options The options parameters.
|
22
|
+
*/
|
23
|
+
checkNameAvailabilityLocal(location: string, checkNameAvailability: CheckNameAvailabilityRequest, options?: CheckNameAvailabilityLocalOptionalParams): Promise<CheckNameAvailabilityLocalResponse>;
|
24
|
+
operations: Operations;
|
25
|
+
spatialAnchorsAccounts: SpatialAnchorsAccounts;
|
26
|
+
remoteRenderingAccounts: RemoteRenderingAccounts;
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=mixedRealityClient.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mixedRealityClient.d.ts","sourceRoot":"","sources":["../../src/mixedRealityClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,gCAAgC,EAChC,4BAA4B,EAC5B,wCAAwC,EACxC,kCAAkC,EACnC,MAAM,UAAU,CAAC;AAElB,qBAAa,kBAAmB,SAAQ,UAAU,CAAC,aAAa;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gCAAgC;IA+C5C;;;;;OAKG;IACH,0BAA0B,CACxB,QAAQ,EAAE,MAAM,EAChB,qBAAqB,EAAE,4BAA4B,EACnD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAO9C,UAAU,EAAE,UAAU,CAAC;IACvB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,uBAAuB,EAAE,uBAAuB,CAAC;CAClD"}
|
@@ -0,0 +1,89 @@
|
|
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 * as coreClient from "@azure/core-client";
|
9
|
+
import { OperationsImpl, SpatialAnchorsAccountsImpl, RemoteRenderingAccountsImpl } from "./operations";
|
10
|
+
import * as Parameters from "./models/parameters";
|
11
|
+
import * as Mappers from "./models/mappers";
|
12
|
+
export class MixedRealityClient extends coreClient.ServiceClient {
|
13
|
+
/**
|
14
|
+
* Initializes a new instance of the MixedRealityClient class.
|
15
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
16
|
+
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
17
|
+
* 00000000-0000-0000-0000-000000000000)
|
18
|
+
* @param options The parameter options
|
19
|
+
*/
|
20
|
+
constructor(credentials, subscriptionId, options) {
|
21
|
+
if (credentials === undefined) {
|
22
|
+
throw new Error("'credentials' cannot be null");
|
23
|
+
}
|
24
|
+
if (subscriptionId === undefined) {
|
25
|
+
throw new Error("'subscriptionId' cannot be null");
|
26
|
+
}
|
27
|
+
// Initializing default values for options
|
28
|
+
if (!options) {
|
29
|
+
options = {};
|
30
|
+
}
|
31
|
+
const defaults = {
|
32
|
+
requestContentType: "application/json; charset=utf-8",
|
33
|
+
credential: credentials
|
34
|
+
};
|
35
|
+
const packageDetails = `azsdk-js-arm-mixedreality/4.0.0`;
|
36
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
37
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
38
|
+
: `${packageDetails}`;
|
39
|
+
if (!options.credentialScopes) {
|
40
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
41
|
+
}
|
42
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
43
|
+
userAgentPrefix
|
44
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
45
|
+
super(optionsWithDefaults);
|
46
|
+
// Parameter assignments
|
47
|
+
this.subscriptionId = subscriptionId;
|
48
|
+
// Assigning values to Constant parameters
|
49
|
+
this.$host = options.$host || "https://management.azure.com";
|
50
|
+
this.apiVersion = options.apiVersion || "2021-01-01";
|
51
|
+
this.operations = new OperationsImpl(this);
|
52
|
+
this.spatialAnchorsAccounts = new SpatialAnchorsAccountsImpl(this);
|
53
|
+
this.remoteRenderingAccounts = new RemoteRenderingAccountsImpl(this);
|
54
|
+
}
|
55
|
+
/**
|
56
|
+
* Check Name Availability for local uniqueness
|
57
|
+
* @param location The location in which uniqueness will be verified.
|
58
|
+
* @param checkNameAvailability Check Name Availability Request.
|
59
|
+
* @param options The options parameters.
|
60
|
+
*/
|
61
|
+
checkNameAvailabilityLocal(location, checkNameAvailability, options) {
|
62
|
+
return this.sendOperationRequest({ location, checkNameAvailability, options }, checkNameAvailabilityLocalOperationSpec);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
// Operation Specifications
|
66
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
67
|
+
const checkNameAvailabilityLocalOperationSpec = {
|
68
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/locations/{location}/checkNameAvailability",
|
69
|
+
httpMethod: "POST",
|
70
|
+
responses: {
|
71
|
+
200: {
|
72
|
+
bodyMapper: Mappers.CheckNameAvailabilityResponse
|
73
|
+
},
|
74
|
+
default: {
|
75
|
+
bodyMapper: Mappers.CloudError
|
76
|
+
}
|
77
|
+
},
|
78
|
+
requestBody: Parameters.checkNameAvailability,
|
79
|
+
queryParameters: [Parameters.apiVersion],
|
80
|
+
urlParameters: [
|
81
|
+
Parameters.$host,
|
82
|
+
Parameters.subscriptionId,
|
83
|
+
Parameters.location
|
84
|
+
],
|
85
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
86
|
+
mediaType: "json",
|
87
|
+
serializer
|
88
|
+
};
|
89
|
+
//# sourceMappingURL=mixedRealityClient.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version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