@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
package/src/models/parameters.ts
CHANGED
@@ -1,112 +1,158 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
8
|
|
11
|
-
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";
|
12
20
|
|
13
|
-
export const
|
14
|
-
parameterPath: "
|
21
|
+
export const accept: OperationParameter = {
|
22
|
+
parameterPath: "accept",
|
15
23
|
mapper: {
|
16
|
-
|
17
|
-
|
24
|
+
defaultValue: "application/json",
|
25
|
+
isConstant: true,
|
26
|
+
serializedName: "Accept",
|
18
27
|
type: {
|
19
28
|
name: "String"
|
20
29
|
}
|
21
30
|
}
|
22
31
|
};
|
23
|
-
|
24
|
-
|
32
|
+
|
33
|
+
export const $host: OperationURLParameter = {
|
34
|
+
parameterPath: "$host",
|
25
35
|
mapper: {
|
36
|
+
serializedName: "$host",
|
26
37
|
required: true,
|
27
|
-
serializedName: "accountName",
|
28
|
-
constraints: {
|
29
|
-
MaxLength: 90,
|
30
|
-
MinLength: 1,
|
31
|
-
Pattern: /^[-\w\._\(\)]+$/
|
32
|
-
},
|
33
38
|
type: {
|
34
39
|
name: "String"
|
35
40
|
}
|
36
|
-
}
|
41
|
+
},
|
42
|
+
skipEncoding: true
|
37
43
|
};
|
38
|
-
|
44
|
+
|
45
|
+
export const apiVersion: OperationQueryParameter = {
|
39
46
|
parameterPath: "apiVersion",
|
40
47
|
mapper: {
|
41
|
-
|
48
|
+
defaultValue: "2021-01-01",
|
42
49
|
isConstant: true,
|
43
50
|
serializedName: "api-version",
|
44
|
-
defaultValue: '2020-05-01',
|
45
51
|
type: {
|
46
52
|
name: "String"
|
47
53
|
}
|
48
54
|
}
|
49
55
|
};
|
50
|
-
|
51
|
-
|
56
|
+
|
57
|
+
export const nextLink: OperationURLParameter = {
|
58
|
+
parameterPath: "nextLink",
|
52
59
|
mapper: {
|
60
|
+
serializedName: "nextLink",
|
53
61
|
required: true,
|
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",
|
54
73
|
isConstant: true,
|
55
|
-
serializedName: "
|
56
|
-
defaultValue: '2020-04-06-preview',
|
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: "location",
|
67
|
-
constraints: {
|
68
|
-
MaxLength: 90,
|
69
|
-
MinLength: 1,
|
70
|
-
Pattern: /^[-\w\._\(\)]+$/
|
71
|
-
},
|
72
91
|
type: {
|
73
92
|
name: "String"
|
74
93
|
}
|
75
94
|
}
|
76
95
|
};
|
77
|
-
|
78
|
-
|
96
|
+
|
97
|
+
export const location: OperationURLParameter = {
|
98
|
+
parameterPath: "location",
|
79
99
|
mapper: {
|
100
|
+
constraints: {
|
101
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
102
|
+
MaxLength: 90,
|
103
|
+
MinLength: 1
|
104
|
+
},
|
105
|
+
serializedName: "location",
|
80
106
|
required: true,
|
81
|
-
serializedName: "nextLink",
|
82
107
|
type: {
|
83
108
|
name: "String"
|
84
109
|
}
|
85
|
-
}
|
86
|
-
skipEncoding: true
|
110
|
+
}
|
87
111
|
};
|
88
|
-
|
112
|
+
|
113
|
+
export const resourceGroupName: OperationURLParameter = {
|
89
114
|
parameterPath: "resourceGroupName",
|
90
115
|
mapper: {
|
91
|
-
required: true,
|
92
|
-
serializedName: "resourceGroupName",
|
93
116
|
constraints: {
|
117
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
94
118
|
MaxLength: 90,
|
95
|
-
MinLength: 1
|
96
|
-
Pattern: /^[-\w\._\(\)]+$/
|
119
|
+
MinLength: 1
|
97
120
|
},
|
121
|
+
serializedName: "resourceGroupName",
|
122
|
+
required: true,
|
98
123
|
type: {
|
99
124
|
name: "String"
|
100
125
|
}
|
101
126
|
}
|
102
127
|
};
|
103
|
-
|
104
|
-
|
128
|
+
|
129
|
+
export const accountName: OperationURLParameter = {
|
130
|
+
parameterPath: "accountName",
|
105
131
|
mapper: {
|
132
|
+
constraints: {
|
133
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
134
|
+
MaxLength: 90,
|
135
|
+
MinLength: 1
|
136
|
+
},
|
137
|
+
serializedName: "accountName",
|
106
138
|
required: true,
|
107
|
-
serializedName: "subscriptionId",
|
108
139
|
type: {
|
109
140
|
name: "String"
|
110
141
|
}
|
111
142
|
}
|
112
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
@@ -1,11 +1,9 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
8
|
|
11
9
|
export * from "./operations";
|
@@ -1,95 +1,111 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
8
|
|
11
|
-
import
|
12
|
-
import
|
13
|
-
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";
|
14
13
|
import * as Parameters from "../models/parameters";
|
15
|
-
import {
|
14
|
+
import { MixedRealityClient } from "../mixedRealityClient";
|
15
|
+
import {
|
16
|
+
Operation,
|
17
|
+
OperationsListNextOptionalParams,
|
18
|
+
OperationsListOptionalParams,
|
19
|
+
OperationsListResponse,
|
20
|
+
OperationsListNextResponse
|
21
|
+
} from "../models";
|
16
22
|
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
24
|
+
/** Class containing Operations operations. */
|
25
|
+
export class OperationsImpl implements Operations {
|
26
|
+
private readonly client: MixedRealityClient;
|
20
27
|
|
21
28
|
/**
|
22
|
-
*
|
23
|
-
* @param
|
29
|
+
* Initialize a new instance of the class Operations class.
|
30
|
+
* @param client Reference to the service client
|
24
31
|
*/
|
25
|
-
constructor(client:
|
32
|
+
constructor(client: MixedRealityClient) {
|
26
33
|
this.client = client;
|
27
34
|
}
|
28
35
|
|
29
36
|
/**
|
30
37
|
* Exposing Available Operations
|
31
|
-
* @param
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
38
|
+
* @param options The options parameters.
|
33
39
|
*/
|
34
|
-
list(
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationPage>, callback?: msRest.ServiceCallback<Models.OperationPage>): Promise<Models.OperationsListResponse> {
|
45
|
-
return this.client.sendOperationRequest(
|
46
|
-
{
|
47
|
-
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;
|
48
50
|
},
|
49
|
-
|
50
|
-
|
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
|
+
}
|
51
76
|
}
|
52
77
|
|
53
78
|
/**
|
54
79
|
* Exposing Available Operations
|
55
|
-
* @param
|
56
|
-
* @param [options] The optional parameters
|
57
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
58
|
-
*/
|
59
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
60
|
-
/**
|
61
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
62
|
-
* @param callback The callback
|
80
|
+
* @param options The options parameters.
|
63
81
|
*/
|
64
|
-
|
82
|
+
private _list(
|
83
|
+
options?: OperationsListOptionalParams
|
84
|
+
): Promise<OperationsListResponse> {
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
86
|
+
}
|
87
|
+
|
65
88
|
/**
|
66
|
-
*
|
67
|
-
* @param
|
68
|
-
* @param
|
89
|
+
* ListNext
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
91
|
+
* @param options The options parameters.
|
69
92
|
*/
|
70
|
-
|
71
|
-
|
93
|
+
private _listNext(
|
94
|
+
nextLink: string,
|
95
|
+
options?: OperationsListNextOptionalParams
|
96
|
+
): Promise<OperationsListNextResponse> {
|
72
97
|
return this.client.sendOperationRequest(
|
73
|
-
{
|
74
|
-
|
75
|
-
|
76
|
-
},
|
77
|
-
listNextOperationSpec,
|
78
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
98
|
+
{ nextLink, options },
|
99
|
+
listNextOperationSpec
|
100
|
+
);
|
79
101
|
}
|
80
102
|
}
|
81
|
-
|
82
103
|
// Operation Specifications
|
83
|
-
const serializer =
|
84
|
-
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
105
|
+
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
107
|
+
path: "/providers/Microsoft.MixedReality/operations",
|
85
108
|
httpMethod: "GET",
|
86
|
-
path: "providers/Microsoft.MixedReality/operations",
|
87
|
-
queryParameters: [
|
88
|
-
Parameters.apiVersion0
|
89
|
-
],
|
90
|
-
headerParameters: [
|
91
|
-
Parameters.acceptLanguage
|
92
|
-
],
|
93
109
|
responses: {
|
94
110
|
200: {
|
95
111
|
bodyMapper: Mappers.OperationPage
|
@@ -98,19 +114,14 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
98
114
|
bodyMapper: Mappers.CloudError
|
99
115
|
}
|
100
116
|
},
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
118
|
+
urlParameters: [Parameters.$host],
|
119
|
+
headerParameters: [Parameters.accept],
|
101
120
|
serializer
|
102
121
|
};
|
103
|
-
|
104
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
105
|
-
httpMethod: "GET",
|
106
|
-
baseUrl: "https://management.azure.com",
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
107
123
|
path: "{nextLink}",
|
108
|
-
|
109
|
-
Parameters.nextPageLink
|
110
|
-
],
|
111
|
-
headerParameters: [
|
112
|
-
Parameters.acceptLanguage
|
113
|
-
],
|
124
|
+
httpMethod: "GET",
|
114
125
|
responses: {
|
115
126
|
200: {
|
116
127
|
bodyMapper: Mappers.OperationPage
|
@@ -119,5 +130,8 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
119
130
|
bodyMapper: Mappers.CloudError
|
120
131
|
}
|
121
132
|
},
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
135
|
+
headerParameters: [Parameters.accept],
|
122
136
|
serializer
|
123
137
|
};
|