@azure/arm-mixedreality 4.0.1-alpha.20220421.1 → 4.1.0-alpha.20220908.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 +10 -10
- 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/LICENSE.txt +0 -21
package/dist/index.js
CHANGED
@@ -3,8 +3,30 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
6
7
|
var tslib = require('tslib');
|
7
8
|
|
9
|
+
function _interopNamespace(e) {
|
10
|
+
if (e && e.__esModule) return e;
|
11
|
+
var n = Object.create(null);
|
12
|
+
if (e) {
|
13
|
+
Object.keys(e).forEach(function (k) {
|
14
|
+
if (k !== 'default') {
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
17
|
+
enumerable: true,
|
18
|
+
get: function () { return e[k]; }
|
19
|
+
});
|
20
|
+
}
|
21
|
+
});
|
22
|
+
}
|
23
|
+
n["default"] = e;
|
24
|
+
return Object.freeze(n);
|
25
|
+
}
|
26
|
+
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
29
|
+
|
8
30
|
/*
|
9
31
|
* Copyright (c) Microsoft Corporation.
|
10
32
|
* Licensed under the MIT License.
|
@@ -12,10 +34,14 @@ var tslib = require('tslib');
|
|
12
34
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
13
35
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
14
36
|
*/
|
37
|
+
/** Known values of {@link NameUnavailableReason} that the service accepts. */
|
38
|
+
exports.KnownNameUnavailableReason = void 0;
|
15
39
|
(function (KnownNameUnavailableReason) {
|
16
40
|
KnownNameUnavailableReason["Invalid"] = "Invalid";
|
17
41
|
KnownNameUnavailableReason["AlreadyExists"] = "AlreadyExists";
|
18
42
|
})(exports.KnownNameUnavailableReason || (exports.KnownNameUnavailableReason = {}));
|
43
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
44
|
+
exports.KnownCreatedByType = void 0;
|
19
45
|
(function (KnownCreatedByType) {
|
20
46
|
KnownCreatedByType["User"] = "User";
|
21
47
|
KnownCreatedByType["Application"] = "Application";
|
@@ -347,6 +373,12 @@ const MetricDimension = {
|
|
347
373
|
type: {
|
348
374
|
name: "String"
|
349
375
|
}
|
376
|
+
},
|
377
|
+
toBeExportedForShoebox: {
|
378
|
+
serializedName: "toBeExportedForShoebox",
|
379
|
+
type: {
|
380
|
+
name: "Boolean"
|
381
|
+
}
|
350
382
|
}
|
351
383
|
}
|
352
384
|
}
|
@@ -686,6 +718,39 @@ const RemoteRenderingAccountPage = {
|
|
686
718
|
}
|
687
719
|
}
|
688
720
|
};
|
721
|
+
const ObjectAnchorsAccountPage = {
|
722
|
+
type: {
|
723
|
+
name: "Composite",
|
724
|
+
className: "ObjectAnchorsAccountPage",
|
725
|
+
modelProperties: {
|
726
|
+
value: {
|
727
|
+
serializedName: "value",
|
728
|
+
type: {
|
729
|
+
name: "Sequence",
|
730
|
+
element: {
|
731
|
+
type: {
|
732
|
+
name: "Composite",
|
733
|
+
className: "ObjectAnchorsAccount"
|
734
|
+
}
|
735
|
+
}
|
736
|
+
}
|
737
|
+
},
|
738
|
+
nextLink: {
|
739
|
+
serializedName: "nextLink",
|
740
|
+
type: {
|
741
|
+
name: "String"
|
742
|
+
}
|
743
|
+
}
|
744
|
+
}
|
745
|
+
}
|
746
|
+
};
|
747
|
+
const ObjectAnchorsAccountIdentity = {
|
748
|
+
type: {
|
749
|
+
name: "Composite",
|
750
|
+
className: "ObjectAnchorsAccountIdentity",
|
751
|
+
modelProperties: Object.assign({}, Identity.type.modelProperties)
|
752
|
+
}
|
753
|
+
};
|
689
754
|
const TrackedResource = {
|
690
755
|
type: {
|
691
756
|
name: "Composite",
|
@@ -813,6 +878,60 @@ const RemoteRenderingAccount = {
|
|
813
878
|
} })
|
814
879
|
}
|
815
880
|
};
|
881
|
+
const ObjectAnchorsAccount = {
|
882
|
+
type: {
|
883
|
+
name: "Composite",
|
884
|
+
className: "ObjectAnchorsAccount",
|
885
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
|
886
|
+
serializedName: "identity",
|
887
|
+
type: {
|
888
|
+
name: "Composite",
|
889
|
+
className: "ObjectAnchorsAccountIdentity"
|
890
|
+
}
|
891
|
+
}, plan: {
|
892
|
+
serializedName: "plan",
|
893
|
+
type: {
|
894
|
+
name: "Composite",
|
895
|
+
className: "Identity"
|
896
|
+
}
|
897
|
+
}, sku: {
|
898
|
+
serializedName: "sku",
|
899
|
+
type: {
|
900
|
+
name: "Composite",
|
901
|
+
className: "Sku"
|
902
|
+
}
|
903
|
+
}, kind: {
|
904
|
+
serializedName: "kind",
|
905
|
+
type: {
|
906
|
+
name: "Composite",
|
907
|
+
className: "Sku"
|
908
|
+
}
|
909
|
+
}, systemData: {
|
910
|
+
serializedName: "systemData",
|
911
|
+
type: {
|
912
|
+
name: "Composite",
|
913
|
+
className: "SystemData"
|
914
|
+
}
|
915
|
+
}, storageAccountName: {
|
916
|
+
serializedName: "properties.storageAccountName",
|
917
|
+
type: {
|
918
|
+
name: "String"
|
919
|
+
}
|
920
|
+
}, accountId: {
|
921
|
+
serializedName: "properties.accountId",
|
922
|
+
readOnly: true,
|
923
|
+
type: {
|
924
|
+
name: "String"
|
925
|
+
}
|
926
|
+
}, accountDomain: {
|
927
|
+
serializedName: "properties.accountDomain",
|
928
|
+
readOnly: true,
|
929
|
+
type: {
|
930
|
+
name: "String"
|
931
|
+
}
|
932
|
+
} })
|
933
|
+
}
|
934
|
+
};
|
816
935
|
|
817
936
|
var Mappers = /*#__PURE__*/Object.freeze({
|
818
937
|
__proto__: null,
|
@@ -836,9 +955,12 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
836
955
|
AccountKeys: AccountKeys,
|
837
956
|
AccountKeyRegenerateRequest: AccountKeyRegenerateRequest,
|
838
957
|
RemoteRenderingAccountPage: RemoteRenderingAccountPage,
|
958
|
+
ObjectAnchorsAccountPage: ObjectAnchorsAccountPage,
|
959
|
+
ObjectAnchorsAccountIdentity: ObjectAnchorsAccountIdentity,
|
839
960
|
TrackedResource: TrackedResource,
|
840
961
|
SpatialAnchorsAccount: SpatialAnchorsAccount,
|
841
|
-
RemoteRenderingAccount: RemoteRenderingAccount
|
962
|
+
RemoteRenderingAccount: RemoteRenderingAccount,
|
963
|
+
ObjectAnchorsAccount: ObjectAnchorsAccount
|
842
964
|
});
|
843
965
|
|
844
966
|
/*
|
@@ -873,7 +995,7 @@ const $host = {
|
|
873
995
|
const apiVersion = {
|
874
996
|
parameterPath: "apiVersion",
|
875
997
|
mapper: {
|
876
|
-
defaultValue: "2021-01-
|
998
|
+
defaultValue: "2021-03-01-preview",
|
877
999
|
isConstant: true,
|
878
1000
|
serializedName: "api-version",
|
879
1001
|
type: {
|
@@ -974,6 +1096,10 @@ const remoteRenderingAccount = {
|
|
974
1096
|
parameterPath: "remoteRenderingAccount",
|
975
1097
|
mapper: RemoteRenderingAccount
|
976
1098
|
};
|
1099
|
+
const objectAnchorsAccount = {
|
1100
|
+
parameterPath: "objectAnchorsAccount",
|
1101
|
+
mapper: ObjectAnchorsAccount
|
1102
|
+
};
|
977
1103
|
|
978
1104
|
/*
|
979
1105
|
* Copyright (c) Microsoft Corporation.
|
@@ -1057,7 +1183,7 @@ class OperationsImpl {
|
|
1057
1183
|
}
|
1058
1184
|
}
|
1059
1185
|
// Operation Specifications
|
1060
|
-
const serializer =
|
1186
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1061
1187
|
const listOperationSpec = {
|
1062
1188
|
path: "/providers/Microsoft.MixedReality/operations",
|
1063
1189
|
httpMethod: "GET",
|
@@ -1072,7 +1198,7 @@ const listOperationSpec = {
|
|
1072
1198
|
queryParameters: [apiVersion],
|
1073
1199
|
urlParameters: [$host],
|
1074
1200
|
headerParameters: [accept],
|
1075
|
-
serializer
|
1201
|
+
serializer: serializer$4
|
1076
1202
|
};
|
1077
1203
|
const listNextOperationSpec = {
|
1078
1204
|
path: "{nextLink}",
|
@@ -1088,7 +1214,7 @@ const listNextOperationSpec = {
|
|
1088
1214
|
queryParameters: [apiVersion],
|
1089
1215
|
urlParameters: [$host, nextLink],
|
1090
1216
|
headerParameters: [accept],
|
1091
|
-
serializer
|
1217
|
+
serializer: serializer$4
|
1092
1218
|
};
|
1093
1219
|
|
1094
1220
|
/*
|
@@ -1210,7 +1336,7 @@ class SpatialAnchorsAccountsImpl {
|
|
1210
1336
|
* @param options The options parameters.
|
1211
1337
|
*/
|
1212
1338
|
_listBySubscription(options) {
|
1213
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
1339
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$2);
|
1214
1340
|
}
|
1215
1341
|
/**
|
1216
1342
|
* List Resources by Resource Group
|
@@ -1218,7 +1344,7 @@ class SpatialAnchorsAccountsImpl {
|
|
1218
1344
|
* @param options The options parameters.
|
1219
1345
|
*/
|
1220
1346
|
_listByResourceGroup(resourceGroupName, options) {
|
1221
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
1347
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$2);
|
1222
1348
|
}
|
1223
1349
|
/**
|
1224
1350
|
* Delete a Spatial Anchors Account.
|
@@ -1227,7 +1353,7 @@ class SpatialAnchorsAccountsImpl {
|
|
1227
1353
|
* @param options The options parameters.
|
1228
1354
|
*/
|
1229
1355
|
delete(resourceGroupName, accountName, options) {
|
1230
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec);
|
1356
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec$2);
|
1231
1357
|
}
|
1232
1358
|
/**
|
1233
1359
|
* Retrieve a Spatial Anchors Account.
|
@@ -1236,7 +1362,7 @@ class SpatialAnchorsAccountsImpl {
|
|
1236
1362
|
* @param options The options parameters.
|
1237
1363
|
*/
|
1238
1364
|
get(resourceGroupName, accountName, options) {
|
1239
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec);
|
1365
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec$2);
|
1240
1366
|
}
|
1241
1367
|
/**
|
1242
1368
|
* Updating a Spatial Anchors Account
|
@@ -1246,7 +1372,7 @@ class SpatialAnchorsAccountsImpl {
|
|
1246
1372
|
* @param options The options parameters.
|
1247
1373
|
*/
|
1248
1374
|
update(resourceGroupName, accountName, spatialAnchorsAccount, options) {
|
1249
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, spatialAnchorsAccount, options }, updateOperationSpec);
|
1375
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, spatialAnchorsAccount, options }, updateOperationSpec$2);
|
1250
1376
|
}
|
1251
1377
|
/**
|
1252
1378
|
* Creating or Updating a Spatial Anchors Account.
|
@@ -1256,7 +1382,7 @@ class SpatialAnchorsAccountsImpl {
|
|
1256
1382
|
* @param options The options parameters.
|
1257
1383
|
*/
|
1258
1384
|
create(resourceGroupName, accountName, spatialAnchorsAccount, options) {
|
1259
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, spatialAnchorsAccount, options }, createOperationSpec);
|
1385
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, spatialAnchorsAccount, options }, createOperationSpec$2);
|
1260
1386
|
}
|
1261
1387
|
/**
|
1262
1388
|
* List Both of the 2 Keys of a Spatial Anchors Account
|
@@ -1265,7 +1391,7 @@ class SpatialAnchorsAccountsImpl {
|
|
1265
1391
|
* @param options The options parameters.
|
1266
1392
|
*/
|
1267
1393
|
listKeys(resourceGroupName, accountName, options) {
|
1268
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listKeysOperationSpec);
|
1394
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listKeysOperationSpec$2);
|
1269
1395
|
}
|
1270
1396
|
/**
|
1271
1397
|
* Regenerate specified Key of a Spatial Anchors Account
|
@@ -1275,7 +1401,7 @@ class SpatialAnchorsAccountsImpl {
|
|
1275
1401
|
* @param options The options parameters.
|
1276
1402
|
*/
|
1277
1403
|
regenerateKeys(resourceGroupName, accountName, regenerate, options) {
|
1278
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, regenerate, options }, regenerateKeysOperationSpec);
|
1404
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, regenerate, options }, regenerateKeysOperationSpec$2);
|
1279
1405
|
}
|
1280
1406
|
/**
|
1281
1407
|
* ListBySubscriptionNext
|
@@ -1283,7 +1409,7 @@ class SpatialAnchorsAccountsImpl {
|
|
1283
1409
|
* @param options The options parameters.
|
1284
1410
|
*/
|
1285
1411
|
_listBySubscriptionNext(nextLink, options) {
|
1286
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
1412
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$2);
|
1287
1413
|
}
|
1288
1414
|
/**
|
1289
1415
|
* ListByResourceGroupNext
|
@@ -1292,12 +1418,12 @@ class SpatialAnchorsAccountsImpl {
|
|
1292
1418
|
* @param options The options parameters.
|
1293
1419
|
*/
|
1294
1420
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
1295
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
1421
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$2);
|
1296
1422
|
}
|
1297
1423
|
}
|
1298
1424
|
// Operation Specifications
|
1299
|
-
const serializer$
|
1300
|
-
const listBySubscriptionOperationSpec = {
|
1425
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1426
|
+
const listBySubscriptionOperationSpec$2 = {
|
1301
1427
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
|
1302
1428
|
httpMethod: "GET",
|
1303
1429
|
responses: {
|
@@ -1311,9 +1437,9 @@ const listBySubscriptionOperationSpec = {
|
|
1311
1437
|
queryParameters: [apiVersion],
|
1312
1438
|
urlParameters: [$host, subscriptionId],
|
1313
1439
|
headerParameters: [accept],
|
1314
|
-
serializer: serializer$
|
1440
|
+
serializer: serializer$3
|
1315
1441
|
};
|
1316
|
-
const listByResourceGroupOperationSpec = {
|
1442
|
+
const listByResourceGroupOperationSpec$2 = {
|
1317
1443
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts",
|
1318
1444
|
httpMethod: "GET",
|
1319
1445
|
responses: {
|
@@ -1331,9 +1457,9 @@ const listByResourceGroupOperationSpec = {
|
|
1331
1457
|
resourceGroupName
|
1332
1458
|
],
|
1333
1459
|
headerParameters: [accept],
|
1334
|
-
serializer: serializer$
|
1460
|
+
serializer: serializer$3
|
1335
1461
|
};
|
1336
|
-
const deleteOperationSpec = {
|
1462
|
+
const deleteOperationSpec$2 = {
|
1337
1463
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
1338
1464
|
httpMethod: "DELETE",
|
1339
1465
|
responses: {
|
@@ -1351,9 +1477,9 @@ const deleteOperationSpec = {
|
|
1351
1477
|
accountName
|
1352
1478
|
],
|
1353
1479
|
headerParameters: [accept],
|
1354
|
-
serializer: serializer$
|
1480
|
+
serializer: serializer$3
|
1355
1481
|
};
|
1356
|
-
const getOperationSpec = {
|
1482
|
+
const getOperationSpec$2 = {
|
1357
1483
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
1358
1484
|
httpMethod: "GET",
|
1359
1485
|
responses: {
|
@@ -1372,9 +1498,9 @@ const getOperationSpec = {
|
|
1372
1498
|
accountName
|
1373
1499
|
],
|
1374
1500
|
headerParameters: [accept],
|
1375
|
-
serializer: serializer$
|
1501
|
+
serializer: serializer$3
|
1376
1502
|
};
|
1377
|
-
const updateOperationSpec = {
|
1503
|
+
const updateOperationSpec$2 = {
|
1378
1504
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
1379
1505
|
httpMethod: "PATCH",
|
1380
1506
|
responses: {
|
@@ -1395,9 +1521,9 @@ const updateOperationSpec = {
|
|
1395
1521
|
],
|
1396
1522
|
headerParameters: [accept, contentType],
|
1397
1523
|
mediaType: "json",
|
1398
|
-
serializer: serializer$
|
1524
|
+
serializer: serializer$3
|
1399
1525
|
};
|
1400
|
-
const createOperationSpec = {
|
1526
|
+
const createOperationSpec$2 = {
|
1401
1527
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}",
|
1402
1528
|
httpMethod: "PUT",
|
1403
1529
|
responses: {
|
@@ -1421,9 +1547,9 @@ const createOperationSpec = {
|
|
1421
1547
|
],
|
1422
1548
|
headerParameters: [accept, contentType],
|
1423
1549
|
mediaType: "json",
|
1424
|
-
serializer: serializer$
|
1550
|
+
serializer: serializer$3
|
1425
1551
|
};
|
1426
|
-
const listKeysOperationSpec = {
|
1552
|
+
const listKeysOperationSpec$2 = {
|
1427
1553
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/listKeys",
|
1428
1554
|
httpMethod: "POST",
|
1429
1555
|
responses: {
|
@@ -1442,9 +1568,9 @@ const listKeysOperationSpec = {
|
|
1442
1568
|
accountName
|
1443
1569
|
],
|
1444
1570
|
headerParameters: [accept],
|
1445
|
-
serializer: serializer$
|
1571
|
+
serializer: serializer$3
|
1446
1572
|
};
|
1447
|
-
const regenerateKeysOperationSpec = {
|
1573
|
+
const regenerateKeysOperationSpec$2 = {
|
1448
1574
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/regenerateKeys",
|
1449
1575
|
httpMethod: "POST",
|
1450
1576
|
responses: {
|
@@ -1465,9 +1591,9 @@ const regenerateKeysOperationSpec = {
|
|
1465
1591
|
],
|
1466
1592
|
headerParameters: [accept, contentType],
|
1467
1593
|
mediaType: "json",
|
1468
|
-
serializer: serializer$
|
1594
|
+
serializer: serializer$3
|
1469
1595
|
};
|
1470
|
-
const listBySubscriptionNextOperationSpec = {
|
1596
|
+
const listBySubscriptionNextOperationSpec$2 = {
|
1471
1597
|
path: "{nextLink}",
|
1472
1598
|
httpMethod: "GET",
|
1473
1599
|
responses: {
|
@@ -1485,9 +1611,9 @@ const listBySubscriptionNextOperationSpec = {
|
|
1485
1611
|
subscriptionId
|
1486
1612
|
],
|
1487
1613
|
headerParameters: [accept],
|
1488
|
-
serializer: serializer$
|
1614
|
+
serializer: serializer$3
|
1489
1615
|
};
|
1490
|
-
const listByResourceGroupNextOperationSpec = {
|
1616
|
+
const listByResourceGroupNextOperationSpec$2 = {
|
1491
1617
|
path: "{nextLink}",
|
1492
1618
|
httpMethod: "GET",
|
1493
1619
|
responses: {
|
@@ -1506,7 +1632,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
1506
1632
|
resourceGroupName
|
1507
1633
|
],
|
1508
1634
|
headerParameters: [accept],
|
1509
|
-
serializer: serializer$
|
1635
|
+
serializer: serializer$3
|
1510
1636
|
};
|
1511
1637
|
|
1512
1638
|
/*
|
@@ -1714,7 +1840,7 @@ class RemoteRenderingAccountsImpl {
|
|
1714
1840
|
}
|
1715
1841
|
}
|
1716
1842
|
// Operation Specifications
|
1717
|
-
const serializer$2 =
|
1843
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1718
1844
|
const listBySubscriptionOperationSpec$1 = {
|
1719
1845
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/remoteRenderingAccounts",
|
1720
1846
|
httpMethod: "GET",
|
@@ -1934,82 +2060,518 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
1934
2060
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1935
2061
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1936
2062
|
*/
|
1937
|
-
|
2063
|
+
/// <reference lib="esnext.asynciterable" />
|
2064
|
+
/** Class containing ObjectAnchorsAccounts operations. */
|
2065
|
+
class ObjectAnchorsAccountsImpl {
|
1938
2066
|
/**
|
1939
|
-
*
|
1940
|
-
* @param
|
1941
|
-
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
1942
|
-
* 00000000-0000-0000-0000-000000000000)
|
1943
|
-
* @param options The parameter options
|
2067
|
+
* Initialize a new instance of the class ObjectAnchorsAccounts class.
|
2068
|
+
* @param client Reference to the service client
|
1944
2069
|
*/
|
1945
|
-
constructor(
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
2070
|
+
constructor(client) {
|
2071
|
+
this.client = client;
|
2072
|
+
}
|
2073
|
+
/**
|
2074
|
+
* List Object Anchors Accounts by Subscription
|
2075
|
+
* @param options The options parameters.
|
2076
|
+
*/
|
2077
|
+
listBySubscription(options) {
|
2078
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
2079
|
+
return {
|
2080
|
+
next() {
|
2081
|
+
return iter.next();
|
2082
|
+
},
|
2083
|
+
[Symbol.asyncIterator]() {
|
2084
|
+
return this;
|
2085
|
+
},
|
2086
|
+
byPage: () => {
|
2087
|
+
return this.listBySubscriptionPagingPage(options);
|
2088
|
+
}
|
1959
2089
|
};
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
this
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
2090
|
+
}
|
2091
|
+
listBySubscriptionPagingPage(options) {
|
2092
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
2093
|
+
let result = yield tslib.__await(this._listBySubscription(options));
|
2094
|
+
yield yield tslib.__await(result.value || []);
|
2095
|
+
let continuationToken = result.nextLink;
|
2096
|
+
while (continuationToken) {
|
2097
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
2098
|
+
continuationToken = result.nextLink;
|
2099
|
+
yield yield tslib.__await(result.value || []);
|
2100
|
+
}
|
2101
|
+
});
|
2102
|
+
}
|
2103
|
+
listBySubscriptionPagingAll(options) {
|
2104
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
2105
|
+
var e_1, _a;
|
2106
|
+
try {
|
2107
|
+
for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
2108
|
+
const page = _c.value;
|
2109
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2110
|
+
}
|
2111
|
+
}
|
2112
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
2113
|
+
finally {
|
2114
|
+
try {
|
2115
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
2116
|
+
}
|
2117
|
+
finally { if (e_1) throw e_1.error; }
|
2118
|
+
}
|
2119
|
+
});
|
1979
2120
|
}
|
1980
2121
|
/**
|
1981
|
-
*
|
1982
|
-
* @param
|
1983
|
-
* @param checkNameAvailability Check Name Availability Request.
|
2122
|
+
* List Resources by Resource Group
|
2123
|
+
* @param resourceGroupName Name of an Azure resource group.
|
1984
2124
|
* @param options The options parameters.
|
1985
2125
|
*/
|
1986
|
-
|
1987
|
-
|
2126
|
+
listByResourceGroup(resourceGroupName, options) {
|
2127
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
2128
|
+
return {
|
2129
|
+
next() {
|
2130
|
+
return iter.next();
|
2131
|
+
},
|
2132
|
+
[Symbol.asyncIterator]() {
|
2133
|
+
return this;
|
2134
|
+
},
|
2135
|
+
byPage: () => {
|
2136
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
2137
|
+
}
|
2138
|
+
};
|
1988
2139
|
}
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2006
|
-
|
2007
|
-
|
2008
|
-
|
2009
|
-
|
2010
|
-
|
2011
|
-
|
2012
|
-
|
2140
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
2141
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
2142
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
2143
|
+
yield yield tslib.__await(result.value || []);
|
2144
|
+
let continuationToken = result.nextLink;
|
2145
|
+
while (continuationToken) {
|
2146
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
2147
|
+
continuationToken = result.nextLink;
|
2148
|
+
yield yield tslib.__await(result.value || []);
|
2149
|
+
}
|
2150
|
+
});
|
2151
|
+
}
|
2152
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
2153
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
2154
|
+
var e_2, _a;
|
2155
|
+
try {
|
2156
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
2157
|
+
const page = _c.value;
|
2158
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2159
|
+
}
|
2160
|
+
}
|
2161
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
2162
|
+
finally {
|
2163
|
+
try {
|
2164
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
2165
|
+
}
|
2166
|
+
finally { if (e_2) throw e_2.error; }
|
2167
|
+
}
|
2168
|
+
});
|
2169
|
+
}
|
2170
|
+
/**
|
2171
|
+
* List Object Anchors Accounts by Subscription
|
2172
|
+
* @param options The options parameters.
|
2173
|
+
*/
|
2174
|
+
_listBySubscription(options) {
|
2175
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
2176
|
+
}
|
2177
|
+
/**
|
2178
|
+
* List Resources by Resource Group
|
2179
|
+
* @param resourceGroupName Name of an Azure resource group.
|
2180
|
+
* @param options The options parameters.
|
2181
|
+
*/
|
2182
|
+
_listByResourceGroup(resourceGroupName, options) {
|
2183
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
2184
|
+
}
|
2185
|
+
/**
|
2186
|
+
* Delete an Object Anchors Account.
|
2187
|
+
* @param resourceGroupName Name of an Azure resource group.
|
2188
|
+
* @param accountName Name of an Mixed Reality Account.
|
2189
|
+
* @param options The options parameters.
|
2190
|
+
*/
|
2191
|
+
delete(resourceGroupName, accountName, options) {
|
2192
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec);
|
2193
|
+
}
|
2194
|
+
/**
|
2195
|
+
* Retrieve an Object Anchors Account.
|
2196
|
+
* @param resourceGroupName Name of an Azure resource group.
|
2197
|
+
* @param accountName Name of an Mixed Reality Account.
|
2198
|
+
* @param options The options parameters.
|
2199
|
+
*/
|
2200
|
+
get(resourceGroupName, accountName, options) {
|
2201
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec);
|
2202
|
+
}
|
2203
|
+
/**
|
2204
|
+
* Updating an Object Anchors Account
|
2205
|
+
* @param resourceGroupName Name of an Azure resource group.
|
2206
|
+
* @param accountName Name of an Mixed Reality Account.
|
2207
|
+
* @param objectAnchorsAccount Object Anchors Account parameter.
|
2208
|
+
* @param options The options parameters.
|
2209
|
+
*/
|
2210
|
+
update(resourceGroupName, accountName, objectAnchorsAccount, options) {
|
2211
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, objectAnchorsAccount, options }, updateOperationSpec);
|
2212
|
+
}
|
2213
|
+
/**
|
2214
|
+
* Creating or Updating an object anchors Account.
|
2215
|
+
* @param resourceGroupName Name of an Azure resource group.
|
2216
|
+
* @param accountName Name of an Mixed Reality Account.
|
2217
|
+
* @param objectAnchorsAccount Object Anchors Account parameter.
|
2218
|
+
* @param options The options parameters.
|
2219
|
+
*/
|
2220
|
+
create(resourceGroupName, accountName, objectAnchorsAccount, options) {
|
2221
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, objectAnchorsAccount, options }, createOperationSpec);
|
2222
|
+
}
|
2223
|
+
/**
|
2224
|
+
* List Both of the 2 Keys of an object anchors Account
|
2225
|
+
* @param resourceGroupName Name of an Azure resource group.
|
2226
|
+
* @param accountName Name of an Mixed Reality Account.
|
2227
|
+
* @param options The options parameters.
|
2228
|
+
*/
|
2229
|
+
listKeys(resourceGroupName, accountName, options) {
|
2230
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listKeysOperationSpec);
|
2231
|
+
}
|
2232
|
+
/**
|
2233
|
+
* Regenerate specified Key of an object anchors Account
|
2234
|
+
* @param resourceGroupName Name of an Azure resource group.
|
2235
|
+
* @param accountName Name of an Mixed Reality Account.
|
2236
|
+
* @param regenerate Required information for key regeneration.
|
2237
|
+
* @param options The options parameters.
|
2238
|
+
*/
|
2239
|
+
regenerateKeys(resourceGroupName, accountName, regenerate, options) {
|
2240
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, regenerate, options }, regenerateKeysOperationSpec);
|
2241
|
+
}
|
2242
|
+
/**
|
2243
|
+
* ListBySubscriptionNext
|
2244
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
2245
|
+
* @param options The options parameters.
|
2246
|
+
*/
|
2247
|
+
_listBySubscriptionNext(nextLink, options) {
|
2248
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
2249
|
+
}
|
2250
|
+
/**
|
2251
|
+
* ListByResourceGroupNext
|
2252
|
+
* @param resourceGroupName Name of an Azure resource group.
|
2253
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
2254
|
+
* @param options The options parameters.
|
2255
|
+
*/
|
2256
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
2257
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
2258
|
+
}
|
2259
|
+
}
|
2260
|
+
// Operation Specifications
|
2261
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2262
|
+
const listBySubscriptionOperationSpec = {
|
2263
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/objectAnchorsAccounts",
|
2264
|
+
httpMethod: "GET",
|
2265
|
+
responses: {
|
2266
|
+
200: {
|
2267
|
+
bodyMapper: ObjectAnchorsAccountPage
|
2268
|
+
},
|
2269
|
+
default: {
|
2270
|
+
bodyMapper: CloudError
|
2271
|
+
}
|
2272
|
+
},
|
2273
|
+
queryParameters: [apiVersion],
|
2274
|
+
urlParameters: [$host, subscriptionId],
|
2275
|
+
headerParameters: [accept],
|
2276
|
+
serializer: serializer$1
|
2277
|
+
};
|
2278
|
+
const listByResourceGroupOperationSpec = {
|
2279
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts",
|
2280
|
+
httpMethod: "GET",
|
2281
|
+
responses: {
|
2282
|
+
200: {
|
2283
|
+
bodyMapper: ObjectAnchorsAccountPage
|
2284
|
+
},
|
2285
|
+
default: {
|
2286
|
+
bodyMapper: CloudError
|
2287
|
+
}
|
2288
|
+
},
|
2289
|
+
queryParameters: [apiVersion],
|
2290
|
+
urlParameters: [
|
2291
|
+
$host,
|
2292
|
+
subscriptionId,
|
2293
|
+
resourceGroupName
|
2294
|
+
],
|
2295
|
+
headerParameters: [accept],
|
2296
|
+
serializer: serializer$1
|
2297
|
+
};
|
2298
|
+
const deleteOperationSpec = {
|
2299
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts/{accountName}",
|
2300
|
+
httpMethod: "DELETE",
|
2301
|
+
responses: {
|
2302
|
+
200: {},
|
2303
|
+
204: {},
|
2304
|
+
default: {
|
2305
|
+
bodyMapper: CloudError
|
2306
|
+
}
|
2307
|
+
},
|
2308
|
+
queryParameters: [apiVersion],
|
2309
|
+
urlParameters: [
|
2310
|
+
$host,
|
2311
|
+
subscriptionId,
|
2312
|
+
resourceGroupName,
|
2313
|
+
accountName
|
2314
|
+
],
|
2315
|
+
headerParameters: [accept],
|
2316
|
+
serializer: serializer$1
|
2317
|
+
};
|
2318
|
+
const getOperationSpec = {
|
2319
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts/{accountName}",
|
2320
|
+
httpMethod: "GET",
|
2321
|
+
responses: {
|
2322
|
+
200: {
|
2323
|
+
bodyMapper: ObjectAnchorsAccount
|
2324
|
+
},
|
2325
|
+
default: {
|
2326
|
+
bodyMapper: CloudError
|
2327
|
+
}
|
2328
|
+
},
|
2329
|
+
queryParameters: [apiVersion],
|
2330
|
+
urlParameters: [
|
2331
|
+
$host,
|
2332
|
+
subscriptionId,
|
2333
|
+
resourceGroupName,
|
2334
|
+
accountName
|
2335
|
+
],
|
2336
|
+
headerParameters: [accept],
|
2337
|
+
serializer: serializer$1
|
2338
|
+
};
|
2339
|
+
const updateOperationSpec = {
|
2340
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts/{accountName}",
|
2341
|
+
httpMethod: "PATCH",
|
2342
|
+
responses: {
|
2343
|
+
200: {
|
2344
|
+
bodyMapper: ObjectAnchorsAccount
|
2345
|
+
},
|
2346
|
+
default: {
|
2347
|
+
bodyMapper: CloudError
|
2348
|
+
}
|
2349
|
+
},
|
2350
|
+
requestBody: objectAnchorsAccount,
|
2351
|
+
queryParameters: [apiVersion],
|
2352
|
+
urlParameters: [
|
2353
|
+
$host,
|
2354
|
+
subscriptionId,
|
2355
|
+
resourceGroupName,
|
2356
|
+
accountName
|
2357
|
+
],
|
2358
|
+
headerParameters: [accept, contentType],
|
2359
|
+
mediaType: "json",
|
2360
|
+
serializer: serializer$1
|
2361
|
+
};
|
2362
|
+
const createOperationSpec = {
|
2363
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts/{accountName}",
|
2364
|
+
httpMethod: "PUT",
|
2365
|
+
responses: {
|
2366
|
+
200: {
|
2367
|
+
bodyMapper: ObjectAnchorsAccount
|
2368
|
+
},
|
2369
|
+
201: {
|
2370
|
+
bodyMapper: ObjectAnchorsAccount
|
2371
|
+
},
|
2372
|
+
default: {
|
2373
|
+
bodyMapper: CloudError
|
2374
|
+
}
|
2375
|
+
},
|
2376
|
+
requestBody: objectAnchorsAccount,
|
2377
|
+
queryParameters: [apiVersion],
|
2378
|
+
urlParameters: [
|
2379
|
+
$host,
|
2380
|
+
subscriptionId,
|
2381
|
+
resourceGroupName,
|
2382
|
+
accountName
|
2383
|
+
],
|
2384
|
+
headerParameters: [accept, contentType],
|
2385
|
+
mediaType: "json",
|
2386
|
+
serializer: serializer$1
|
2387
|
+
};
|
2388
|
+
const listKeysOperationSpec = {
|
2389
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts/{accountName}/listKeys",
|
2390
|
+
httpMethod: "POST",
|
2391
|
+
responses: {
|
2392
|
+
200: {
|
2393
|
+
bodyMapper: AccountKeys
|
2394
|
+
},
|
2395
|
+
default: {
|
2396
|
+
bodyMapper: CloudError
|
2397
|
+
}
|
2398
|
+
},
|
2399
|
+
queryParameters: [apiVersion],
|
2400
|
+
urlParameters: [
|
2401
|
+
$host,
|
2402
|
+
subscriptionId,
|
2403
|
+
resourceGroupName,
|
2404
|
+
accountName
|
2405
|
+
],
|
2406
|
+
headerParameters: [accept],
|
2407
|
+
serializer: serializer$1
|
2408
|
+
};
|
2409
|
+
const regenerateKeysOperationSpec = {
|
2410
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/objectAnchorsAccounts/{accountName}/regenerateKeys",
|
2411
|
+
httpMethod: "POST",
|
2412
|
+
responses: {
|
2413
|
+
200: {
|
2414
|
+
bodyMapper: AccountKeys
|
2415
|
+
},
|
2416
|
+
default: {
|
2417
|
+
bodyMapper: CloudError
|
2418
|
+
}
|
2419
|
+
},
|
2420
|
+
requestBody: regenerate,
|
2421
|
+
queryParameters: [apiVersion],
|
2422
|
+
urlParameters: [
|
2423
|
+
$host,
|
2424
|
+
subscriptionId,
|
2425
|
+
resourceGroupName,
|
2426
|
+
accountName
|
2427
|
+
],
|
2428
|
+
headerParameters: [accept, contentType],
|
2429
|
+
mediaType: "json",
|
2430
|
+
serializer: serializer$1
|
2431
|
+
};
|
2432
|
+
const listBySubscriptionNextOperationSpec = {
|
2433
|
+
path: "{nextLink}",
|
2434
|
+
httpMethod: "GET",
|
2435
|
+
responses: {
|
2436
|
+
200: {
|
2437
|
+
bodyMapper: ObjectAnchorsAccountPage
|
2438
|
+
},
|
2439
|
+
default: {
|
2440
|
+
bodyMapper: CloudError
|
2441
|
+
}
|
2442
|
+
},
|
2443
|
+
queryParameters: [apiVersion],
|
2444
|
+
urlParameters: [
|
2445
|
+
$host,
|
2446
|
+
nextLink,
|
2447
|
+
subscriptionId
|
2448
|
+
],
|
2449
|
+
headerParameters: [accept],
|
2450
|
+
serializer: serializer$1
|
2451
|
+
};
|
2452
|
+
const listByResourceGroupNextOperationSpec = {
|
2453
|
+
path: "{nextLink}",
|
2454
|
+
httpMethod: "GET",
|
2455
|
+
responses: {
|
2456
|
+
200: {
|
2457
|
+
bodyMapper: ObjectAnchorsAccountPage
|
2458
|
+
},
|
2459
|
+
default: {
|
2460
|
+
bodyMapper: CloudError
|
2461
|
+
}
|
2462
|
+
},
|
2463
|
+
queryParameters: [apiVersion],
|
2464
|
+
urlParameters: [
|
2465
|
+
$host,
|
2466
|
+
nextLink,
|
2467
|
+
subscriptionId,
|
2468
|
+
resourceGroupName
|
2469
|
+
],
|
2470
|
+
headerParameters: [accept],
|
2471
|
+
serializer: serializer$1
|
2472
|
+
};
|
2473
|
+
|
2474
|
+
/*
|
2475
|
+
* Copyright (c) Microsoft Corporation.
|
2476
|
+
* Licensed under the MIT License.
|
2477
|
+
*
|
2478
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
2479
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
2480
|
+
*/
|
2481
|
+
class MixedRealityClient extends coreClient__namespace.ServiceClient {
|
2482
|
+
/**
|
2483
|
+
* Initializes a new instance of the MixedRealityClient class.
|
2484
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
2485
|
+
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
2486
|
+
* 00000000-0000-0000-0000-000000000000)
|
2487
|
+
* @param options The parameter options
|
2488
|
+
*/
|
2489
|
+
constructor(credentials, subscriptionId, options) {
|
2490
|
+
var _a, _b;
|
2491
|
+
if (credentials === undefined) {
|
2492
|
+
throw new Error("'credentials' cannot be null");
|
2493
|
+
}
|
2494
|
+
if (subscriptionId === undefined) {
|
2495
|
+
throw new Error("'subscriptionId' cannot be null");
|
2496
|
+
}
|
2497
|
+
// Initializing default values for options
|
2498
|
+
if (!options) {
|
2499
|
+
options = {};
|
2500
|
+
}
|
2501
|
+
const defaults = {
|
2502
|
+
requestContentType: "application/json; charset=utf-8",
|
2503
|
+
credential: credentials
|
2504
|
+
};
|
2505
|
+
const packageDetails = `azsdk-js-arm-mixedreality/4.1.0-beta.1`;
|
2506
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
2507
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
2508
|
+
: `${packageDetails}`;
|
2509
|
+
if (!options.credentialScopes) {
|
2510
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
2511
|
+
}
|
2512
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
2513
|
+
userAgentPrefix
|
2514
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
2515
|
+
super(optionsWithDefaults);
|
2516
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
2517
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
2518
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
2519
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
2520
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
2521
|
+
this.pipeline.removePolicy({
|
2522
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
2523
|
+
});
|
2524
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
2525
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
2526
|
+
challengeCallbacks: {
|
2527
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
2528
|
+
}
|
2529
|
+
}));
|
2530
|
+
}
|
2531
|
+
}
|
2532
|
+
// Parameter assignments
|
2533
|
+
this.subscriptionId = subscriptionId;
|
2534
|
+
// Assigning values to Constant parameters
|
2535
|
+
this.$host = options.$host || "https://management.azure.com";
|
2536
|
+
this.apiVersion = options.apiVersion || "2021-03-01-preview";
|
2537
|
+
this.operations = new OperationsImpl(this);
|
2538
|
+
this.spatialAnchorsAccounts = new SpatialAnchorsAccountsImpl(this);
|
2539
|
+
this.remoteRenderingAccounts = new RemoteRenderingAccountsImpl(this);
|
2540
|
+
this.objectAnchorsAccounts = new ObjectAnchorsAccountsImpl(this);
|
2541
|
+
}
|
2542
|
+
/**
|
2543
|
+
* Check Name Availability for local uniqueness
|
2544
|
+
* @param location The location in which uniqueness will be verified.
|
2545
|
+
* @param checkNameAvailability Check Name Availability Request.
|
2546
|
+
* @param options The options parameters.
|
2547
|
+
*/
|
2548
|
+
checkNameAvailabilityLocal(location, checkNameAvailability, options) {
|
2549
|
+
return this.sendOperationRequest({ location, checkNameAvailability, options }, checkNameAvailabilityLocalOperationSpec);
|
2550
|
+
}
|
2551
|
+
}
|
2552
|
+
// Operation Specifications
|
2553
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2554
|
+
const checkNameAvailabilityLocalOperationSpec = {
|
2555
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/locations/{location}/checkNameAvailability",
|
2556
|
+
httpMethod: "POST",
|
2557
|
+
responses: {
|
2558
|
+
200: {
|
2559
|
+
bodyMapper: CheckNameAvailabilityResponse
|
2560
|
+
},
|
2561
|
+
default: {
|
2562
|
+
bodyMapper: CloudError
|
2563
|
+
}
|
2564
|
+
},
|
2565
|
+
requestBody: checkNameAvailability,
|
2566
|
+
queryParameters: [apiVersion],
|
2567
|
+
urlParameters: [
|
2568
|
+
$host,
|
2569
|
+
subscriptionId,
|
2570
|
+
location
|
2571
|
+
],
|
2572
|
+
headerParameters: [accept, contentType],
|
2573
|
+
mediaType: "json",
|
2574
|
+
serializer
|
2013
2575
|
};
|
2014
2576
|
|
2015
2577
|
exports.MixedRealityClient = MixedRealityClient;
|