@azure/arm-mixedreality 3.1.1 → 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/README.md +69 -80
- 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 +362 -457
- 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 +1 -2
- 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/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
- 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 -33
- package/review/arm-mixedreality.api.md +436 -0
- package/rollup.config.js +181 -30
- package/src/{models/operationsMappers.ts → index.ts} +4 -11
- package/src/mixedRealityClient.ts +102 -80
- package/src/models/index.ts +370 -884
- package/src/models/mappers.ts +367 -478
- package/src/models/parameters.ts +100 -39
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +85 -73
- package/src/operations/remoteRenderingAccounts.ts +319 -392
- package/src/operations/spatialAnchorsAccounts.ts +319 -392
- 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 -2052
- 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 -48
- package/esm/mixedRealityClient.d.ts.map +0 -1
- package/esm/mixedRealityClient.js +0 -77
- package/esm/mixedRealityClient.js.map +0 -1
- package/esm/mixedRealityClientContext.d.ts +0 -23
- package/esm/mixedRealityClientContext.d.ts.map +0 -1
- package/esm/mixedRealityClientContext.js +0 -61
- package/esm/mixedRealityClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -957
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -32
- 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 -9
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -95
- 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 -79
- 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 -344
- 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 -344
- package/esm/operations/spatialAnchorsAccounts.js.map +0 -1
- package/src/mixedRealityClientContext.ts +0 -68
- package/src/models/remoteRenderingAccountsMappers.ts +0 -29
- package/src/models/spatialAnchorsAccountsMappers.ts +0 -29
package/src/models/parameters.ts
CHANGED
@@ -3,95 +3,156 @@
|
|
3
3
|
* Licensed under the MIT License.
|
4
4
|
*
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
7
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
7
|
*/
|
9
8
|
|
10
|
-
import
|
9
|
+
import {
|
10
|
+
OperationParameter,
|
11
|
+
OperationURLParameter,
|
12
|
+
OperationQueryParameter
|
13
|
+
} from "@azure/core-client";
|
14
|
+
import {
|
15
|
+
CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper,
|
16
|
+
SpatialAnchorsAccount as SpatialAnchorsAccountMapper,
|
17
|
+
AccountKeyRegenerateRequest as AccountKeyRegenerateRequestMapper,
|
18
|
+
RemoteRenderingAccount as RemoteRenderingAccountMapper
|
19
|
+
} from "../models/mappers";
|
11
20
|
|
12
|
-
export const
|
13
|
-
parameterPath: "
|
21
|
+
export const accept: OperationParameter = {
|
22
|
+
parameterPath: "accept",
|
14
23
|
mapper: {
|
15
|
-
|
16
|
-
|
24
|
+
defaultValue: "application/json",
|
25
|
+
isConstant: true,
|
26
|
+
serializedName: "Accept",
|
17
27
|
type: {
|
18
28
|
name: "String"
|
19
29
|
}
|
20
30
|
}
|
21
31
|
};
|
22
|
-
|
23
|
-
|
32
|
+
|
33
|
+
export const $host: OperationURLParameter = {
|
34
|
+
parameterPath: "$host",
|
24
35
|
mapper: {
|
36
|
+
serializedName: "$host",
|
25
37
|
required: true,
|
26
|
-
serializedName: "accountName",
|
27
|
-
constraints: {
|
28
|
-
MaxLength: 90,
|
29
|
-
MinLength: 1,
|
30
|
-
Pattern: /^[-\w\._\(\)]+$/
|
31
|
-
},
|
32
38
|
type: {
|
33
39
|
name: "String"
|
34
40
|
}
|
35
|
-
}
|
41
|
+
},
|
42
|
+
skipEncoding: true
|
36
43
|
};
|
37
|
-
|
44
|
+
|
45
|
+
export const apiVersion: OperationQueryParameter = {
|
38
46
|
parameterPath: "apiVersion",
|
39
47
|
mapper: {
|
40
|
-
|
48
|
+
defaultValue: "2021-01-01",
|
49
|
+
isConstant: true,
|
41
50
|
serializedName: "api-version",
|
42
51
|
type: {
|
43
52
|
name: "String"
|
44
53
|
}
|
45
54
|
}
|
46
55
|
};
|
47
|
-
|
48
|
-
|
56
|
+
|
57
|
+
export const nextLink: OperationURLParameter = {
|
58
|
+
parameterPath: "nextLink",
|
49
59
|
mapper: {
|
60
|
+
serializedName: "nextLink",
|
50
61
|
required: true,
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
62
|
+
type: {
|
63
|
+
name: "String"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
skipEncoding: true
|
67
|
+
};
|
68
|
+
|
69
|
+
export const contentType: OperationParameter = {
|
70
|
+
parameterPath: ["options", "contentType"],
|
71
|
+
mapper: {
|
72
|
+
defaultValue: "application/json",
|
73
|
+
isConstant: true,
|
74
|
+
serializedName: "Content-Type",
|
57
75
|
type: {
|
58
76
|
name: "String"
|
59
77
|
}
|
60
78
|
}
|
61
79
|
};
|
62
|
-
|
63
|
-
|
80
|
+
|
81
|
+
export const checkNameAvailability: OperationParameter = {
|
82
|
+
parameterPath: "checkNameAvailability",
|
83
|
+
mapper: CheckNameAvailabilityRequestMapper
|
84
|
+
};
|
85
|
+
|
86
|
+
export const subscriptionId: OperationURLParameter = {
|
87
|
+
parameterPath: "subscriptionId",
|
64
88
|
mapper: {
|
89
|
+
serializedName: "subscriptionId",
|
65
90
|
required: true,
|
66
|
-
serializedName: "nextLink",
|
67
91
|
type: {
|
68
92
|
name: "String"
|
69
93
|
}
|
70
|
-
}
|
71
|
-
skipEncoding: true
|
94
|
+
}
|
72
95
|
};
|
73
|
-
|
74
|
-
|
96
|
+
|
97
|
+
export const location: OperationURLParameter = {
|
98
|
+
parameterPath: "location",
|
75
99
|
mapper: {
|
100
|
+
constraints: {
|
101
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
102
|
+
MaxLength: 90,
|
103
|
+
MinLength: 1
|
104
|
+
},
|
105
|
+
serializedName: "location",
|
76
106
|
required: true,
|
77
|
-
|
107
|
+
type: {
|
108
|
+
name: "String"
|
109
|
+
}
|
110
|
+
}
|
111
|
+
};
|
112
|
+
|
113
|
+
export const resourceGroupName: OperationURLParameter = {
|
114
|
+
parameterPath: "resourceGroupName",
|
115
|
+
mapper: {
|
78
116
|
constraints: {
|
117
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
79
118
|
MaxLength: 90,
|
80
|
-
MinLength: 1
|
81
|
-
Pattern: /^[-\w\._\(\)]+$/
|
119
|
+
MinLength: 1
|
82
120
|
},
|
121
|
+
serializedName: "resourceGroupName",
|
122
|
+
required: true,
|
83
123
|
type: {
|
84
124
|
name: "String"
|
85
125
|
}
|
86
126
|
}
|
87
127
|
};
|
88
|
-
|
89
|
-
|
128
|
+
|
129
|
+
export const accountName: OperationURLParameter = {
|
130
|
+
parameterPath: "accountName",
|
90
131
|
mapper: {
|
132
|
+
constraints: {
|
133
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
134
|
+
MaxLength: 90,
|
135
|
+
MinLength: 1
|
136
|
+
},
|
137
|
+
serializedName: "accountName",
|
91
138
|
required: true,
|
92
|
-
serializedName: "subscriptionId",
|
93
139
|
type: {
|
94
140
|
name: "String"
|
95
141
|
}
|
96
142
|
}
|
97
143
|
};
|
144
|
+
|
145
|
+
export const spatialAnchorsAccount: OperationParameter = {
|
146
|
+
parameterPath: "spatialAnchorsAccount",
|
147
|
+
mapper: SpatialAnchorsAccountMapper
|
148
|
+
};
|
149
|
+
|
150
|
+
export const regenerate: OperationParameter = {
|
151
|
+
parameterPath: "regenerate",
|
152
|
+
mapper: AccountKeyRegenerateRequestMapper
|
153
|
+
};
|
154
|
+
|
155
|
+
export const remoteRenderingAccount: OperationParameter = {
|
156
|
+
parameterPath: "remoteRenderingAccount",
|
157
|
+
mapper: RemoteRenderingAccountMapper
|
158
|
+
};
|
package/src/operations/index.ts
CHANGED
@@ -3,8 +3,7 @@
|
|
3
3
|
* Licensed under the MIT License.
|
4
4
|
*
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
7
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
7
|
*/
|
9
8
|
|
10
9
|
export * from "./operations";
|
@@ -3,92 +3,109 @@
|
|
3
3
|
* Licensed under the MIT License.
|
4
4
|
*
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
7
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
7
|
*/
|
9
8
|
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import * as
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
11
|
+
import * as coreClient from "@azure/core-client";
|
12
|
+
import * as Mappers from "../models/mappers";
|
13
13
|
import * as Parameters from "../models/parameters";
|
14
|
-
import {
|
14
|
+
import { MixedRealityClient } from "../mixedRealityClient";
|
15
|
+
import {
|
16
|
+
Operation,
|
17
|
+
OperationsListNextOptionalParams,
|
18
|
+
OperationsListOptionalParams,
|
19
|
+
OperationsListResponse,
|
20
|
+
OperationsListNextResponse
|
21
|
+
} from "../models";
|
15
22
|
|
16
|
-
|
17
|
-
|
18
|
-
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
24
|
+
/** Class containing Operations operations. */
|
25
|
+
export class OperationsImpl implements Operations {
|
26
|
+
private readonly client: MixedRealityClient;
|
19
27
|
|
20
28
|
/**
|
21
|
-
*
|
22
|
-
* @param
|
29
|
+
* Initialize a new instance of the class Operations class.
|
30
|
+
* @param client Reference to the service client
|
23
31
|
*/
|
24
|
-
constructor(client:
|
32
|
+
constructor(client: MixedRealityClient) {
|
25
33
|
this.client = client;
|
26
34
|
}
|
27
35
|
|
28
36
|
/**
|
29
37
|
* Exposing Available Operations
|
30
|
-
* @param
|
31
|
-
* @returns Promise<Models.OperationsListResponse>
|
38
|
+
* @param options The options parameters.
|
32
39
|
*/
|
33
|
-
list(
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationPage>, callback?: msRest.ServiceCallback<Models.OperationPage>): Promise<Models.OperationsListResponse> {
|
44
|
-
return this.client.sendOperationRequest(
|
45
|
-
{
|
46
|
-
options
|
40
|
+
public list(
|
41
|
+
options?: OperationsListOptionalParams
|
42
|
+
): PagedAsyncIterableIterator<Operation> {
|
43
|
+
const iter = this.listPagingAll(options);
|
44
|
+
return {
|
45
|
+
next() {
|
46
|
+
return iter.next();
|
47
|
+
},
|
48
|
+
[Symbol.asyncIterator]() {
|
49
|
+
return this;
|
47
50
|
},
|
48
|
-
|
49
|
-
|
51
|
+
byPage: () => {
|
52
|
+
return this.listPagingPage(options);
|
53
|
+
}
|
54
|
+
};
|
55
|
+
}
|
56
|
+
|
57
|
+
private async *listPagingPage(
|
58
|
+
options?: OperationsListOptionalParams
|
59
|
+
): AsyncIterableIterator<Operation[]> {
|
60
|
+
let result = await this._list(options);
|
61
|
+
yield result.value || [];
|
62
|
+
let continuationToken = result.nextLink;
|
63
|
+
while (continuationToken) {
|
64
|
+
result = await this._listNext(continuationToken, options);
|
65
|
+
continuationToken = result.nextLink;
|
66
|
+
yield result.value || [];
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
private async *listPagingAll(
|
71
|
+
options?: OperationsListOptionalParams
|
72
|
+
): AsyncIterableIterator<Operation> {
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
74
|
+
yield* page;
|
75
|
+
}
|
50
76
|
}
|
51
77
|
|
52
78
|
/**
|
53
79
|
* Exposing Available Operations
|
54
|
-
* @param
|
55
|
-
* @param [options] The optional parameters
|
56
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
57
|
-
*/
|
58
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
59
|
-
/**
|
60
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
61
|
-
* @param callback The callback
|
80
|
+
* @param options The options parameters.
|
62
81
|
*/
|
63
|
-
|
82
|
+
private _list(
|
83
|
+
options?: OperationsListOptionalParams
|
84
|
+
): Promise<OperationsListResponse> {
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
86
|
+
}
|
87
|
+
|
64
88
|
/**
|
65
|
-
*
|
66
|
-
* @param
|
67
|
-
* @param
|
89
|
+
* ListNext
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
91
|
+
* @param options The options parameters.
|
68
92
|
*/
|
69
|
-
|
70
|
-
|
93
|
+
private _listNext(
|
94
|
+
nextLink: string,
|
95
|
+
options?: OperationsListNextOptionalParams
|
96
|
+
): Promise<OperationsListNextResponse> {
|
71
97
|
return this.client.sendOperationRequest(
|
72
|
-
{
|
73
|
-
|
74
|
-
|
75
|
-
},
|
76
|
-
listNextOperationSpec,
|
77
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
98
|
+
{ nextLink, options },
|
99
|
+
listNextOperationSpec
|
100
|
+
);
|
78
101
|
}
|
79
102
|
}
|
80
|
-
|
81
103
|
// Operation Specifications
|
82
|
-
const serializer =
|
83
|
-
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
105
|
+
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
107
|
+
path: "/providers/Microsoft.MixedReality/operations",
|
84
108
|
httpMethod: "GET",
|
85
|
-
path: "providers/Microsoft.MixedReality/operations",
|
86
|
-
queryParameters: [
|
87
|
-
Parameters.apiVersion
|
88
|
-
],
|
89
|
-
headerParameters: [
|
90
|
-
Parameters.acceptLanguage
|
91
|
-
],
|
92
109
|
responses: {
|
93
110
|
200: {
|
94
111
|
bodyMapper: Mappers.OperationPage
|
@@ -97,22 +114,14 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
97
114
|
bodyMapper: Mappers.CloudError
|
98
115
|
}
|
99
116
|
},
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
118
|
+
urlParameters: [Parameters.$host],
|
119
|
+
headerParameters: [Parameters.accept],
|
100
120
|
serializer
|
101
121
|
};
|
102
|
-
|
103
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
104
|
-
httpMethod: "GET",
|
105
|
-
baseUrl: "https://management.azure.com",
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
106
123
|
path: "{nextLink}",
|
107
|
-
|
108
|
-
Parameters.nextPageLink
|
109
|
-
],
|
110
|
-
queryParameters: [
|
111
|
-
Parameters.apiVersion
|
112
|
-
],
|
113
|
-
headerParameters: [
|
114
|
-
Parameters.acceptLanguage
|
115
|
-
],
|
124
|
+
httpMethod: "GET",
|
116
125
|
responses: {
|
117
126
|
200: {
|
118
127
|
bodyMapper: Mappers.OperationPage
|
@@ -121,5 +130,8 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
121
130
|
bodyMapper: Mappers.CloudError
|
122
131
|
}
|
123
132
|
},
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
135
|
+
headerParameters: [Parameters.accept],
|
124
136
|
serializer
|
125
137
|
};
|