@azure/arm-managementpartner 1.1.0 → 2.0.0-alpha.20220131.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +75 -75
- package/dist/index.js +634 -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/deletePartnerDetails.d.ts +2 -0
- package/dist-esm/samples-dev/deletePartnerDetails.d.ts.map +1 -0
- package/dist-esm/samples-dev/deletePartnerDetails.js +29 -0
- package/dist-esm/samples-dev/deletePartnerDetails.js.map +1 -0
- package/dist-esm/samples-dev/getOperations.d.ts +2 -0
- package/dist-esm/samples-dev/getOperations.d.ts.map +1 -0
- package/dist-esm/samples-dev/getOperations.js +42 -0
- package/dist-esm/samples-dev/getOperations.js.map +1 -0
- package/dist-esm/samples-dev/getPartnerDetails.d.ts +2 -0
- package/dist-esm/samples-dev/getPartnerDetails.d.ts.map +1 -0
- package/dist-esm/samples-dev/getPartnerDetails.js +28 -0
- package/dist-esm/samples-dev/getPartnerDetails.js.map +1 -0
- package/dist-esm/samples-dev/patchPartnerDetails.d.ts +2 -0
- package/dist-esm/samples-dev/patchPartnerDetails.d.ts.map +1 -0
- package/dist-esm/samples-dev/patchPartnerDetails.js +29 -0
- package/dist-esm/samples-dev/patchPartnerDetails.js.map +1 -0
- package/dist-esm/samples-dev/putPartnerDetails.d.ts +2 -0
- package/dist-esm/samples-dev/putPartnerDetails.d.ts.map +1 -0
- package/dist-esm/samples-dev/putPartnerDetails.js +29 -0
- package/dist-esm/samples-dev/putPartnerDetails.js.map +1 -0
- package/dist-esm/src/aCEProvisioningManagementPartnerAPI.d.ts +18 -0
- package/dist-esm/src/aCEProvisioningManagementPartnerAPI.d.ts.map +1 -0
- package/dist-esm/src/aCEProvisioningManagementPartnerAPI.js +47 -0
- package/dist-esm/src/aCEProvisioningManagementPartnerAPI.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/models/index.d.ts +137 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +14 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +8 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +67 -66
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +7 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +33 -22
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operation.d.ts +32 -0
- package/dist-esm/src/operations/operation.d.ts.map +1 -0
- package/dist-esm/src/operations/operation.js +120 -0
- package/dist-esm/src/operations/operation.js.map +1 -0
- package/dist-esm/src/operations/partner.d.ts +37 -0
- package/dist-esm/src/operations/partner.d.ts.map +1 -0
- package/dist-esm/src/operations/partner.js +117 -0
- package/dist-esm/src/operations/partner.js.map +1 -0
- package/dist-esm/src/operations/partners.d.ts +18 -0
- package/dist-esm/src/operations/partners.d.ts.map +1 -0
- package/dist-esm/src/operations/partners.js +46 -0
- package/dist-esm/src/operations/partners.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/operation.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operation.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operation.js +9 -0
- package/dist-esm/src/operationsInterfaces/operation.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/partner.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/partner.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/partner.js +9 -0
- package/dist-esm/src/operationsInterfaces/partner.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/partners.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/partners.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/partners.js +9 -0
- package/dist-esm/src/operationsInterfaces/partners.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 +85 -25
- package/review/arm-managementpartner.api.md +160 -0
- package/rollup.config.js +184 -27
- package/src/aCEProvisioningManagementPartnerAPI.ts +71 -0
- package/src/index.ts +12 -0
- package/src/models/index.ts +166 -0
- package/{lib → src}/models/mappers.ts +68 -68
- package/src/models/parameters.ts +72 -0
- package/{lib → src}/operations/index.ts +4 -5
- package/src/operations/operation.ts +137 -0
- package/src/operations/partner.ts +160 -0
- package/src/operations/partners.ts +54 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operation.ts +22 -0
- package/src/operationsInterfaces/partner.ts +57 -0
- package/src/operationsInterfaces/partners.ts +18 -0
- package/tsconfig.json +6 -5
- package/types/arm-managementpartner.d.ts +222 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-managementpartner.js +0 -676
- package/dist/arm-managementpartner.js.map +0 -1
- package/dist/arm-managementpartner.min.js +0 -1
- package/dist/arm-managementpartner.min.js.map +0 -1
- package/esm/aCEProvisioningManagementPartnerAPI.d.ts +0 -18
- package/esm/aCEProvisioningManagementPartnerAPI.d.ts.map +0 -1
- package/esm/aCEProvisioningManagementPartnerAPI.js +0 -33
- package/esm/aCEProvisioningManagementPartnerAPI.js.map +0 -1
- package/esm/aCEProvisioningManagementPartnerAPIContext.d.ts +0 -14
- package/esm/aCEProvisioningManagementPartnerAPIContext.d.ts.map +0 -1
- package/esm/aCEProvisioningManagementPartnerAPIContext.js +0 -51
- package/esm/aCEProvisioningManagementPartnerAPIContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -273
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -10
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationMappers.d.ts +0 -2
- package/esm/models/operationMappers.d.ts.map +0 -1
- package/esm/models/operationMappers.js +0 -11
- package/esm/models/operationMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -6
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/partnerMappers.d.ts +0 -2
- package/esm/models/partnerMappers.d.ts.map +0 -1
- package/esm/models/partnerMappers.js +0 -11
- package/esm/models/partnerMappers.js.map +0 -1
- package/esm/operations/index.d.ts +0 -3
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operation.d.ts +0 -48
- package/esm/operations/operation.d.ts.map +0 -1
- package/esm/operations/operation.js +0 -77
- package/esm/operations/operation.js.map +0 -1
- package/esm/operations/partner.d.ts +0 -89
- package/esm/operations/partner.d.ts.map +0 -1
- package/esm/operations/partner.js +0 -137
- package/esm/operations/partner.js.map +0 -1
- package/lib/aCEProvisioningManagementPartnerAPI.ts +0 -43
- package/lib/aCEProvisioningManagementPartnerAPIContext.ts +0 -56
- package/lib/models/index.ts +0 -299
- package/lib/models/operationMappers.ts +0 -18
- package/lib/models/parameters.ts +0 -53
- package/lib/models/partnerMappers.ts +0 -17
- package/lib/operations/operation.ts +0 -125
- package/lib/operations/partner.ts +0 -236
|
@@ -1,21 +1,14 @@
|
|
|
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 * as msRest from "@azure/ms-rest-js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
13
10
|
|
|
14
|
-
export const
|
|
15
|
-
export const BaseResource = BaseResourceMapper;
|
|
16
|
-
|
|
17
|
-
export const PartnerResponse: msRest.CompositeMapper = {
|
|
18
|
-
serializedName: "PartnerResponse",
|
|
11
|
+
export const PartnerResponse: coreClient.CompositeMapper = {
|
|
19
12
|
type: {
|
|
20
13
|
name: "Composite",
|
|
21
14
|
className: "PartnerResponse",
|
|
@@ -27,15 +20,22 @@ export const PartnerResponse: msRest.CompositeMapper = {
|
|
|
27
20
|
}
|
|
28
21
|
},
|
|
29
22
|
id: {
|
|
30
|
-
readOnly: true,
|
|
31
23
|
serializedName: "id",
|
|
24
|
+
readOnly: true,
|
|
32
25
|
type: {
|
|
33
26
|
name: "String"
|
|
34
27
|
}
|
|
35
28
|
},
|
|
36
29
|
name: {
|
|
37
|
-
readOnly: true,
|
|
38
30
|
serializedName: "name",
|
|
31
|
+
readOnly: true,
|
|
32
|
+
type: {
|
|
33
|
+
name: "String"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
type: {
|
|
37
|
+
serializedName: "type",
|
|
38
|
+
readOnly: true,
|
|
39
39
|
type: {
|
|
40
40
|
name: "String"
|
|
41
41
|
}
|
|
@@ -67,7 +67,7 @@ export const PartnerResponse: msRest.CompositeMapper = {
|
|
|
67
67
|
version: {
|
|
68
68
|
serializedName: "properties.version",
|
|
69
69
|
type: {
|
|
70
|
-
name: "
|
|
70
|
+
name: "Number"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
updatedTime: {
|
|
@@ -87,24 +87,23 @@ export const PartnerResponse: msRest.CompositeMapper = {
|
|
|
87
87
|
type: {
|
|
88
88
|
name: "String"
|
|
89
89
|
}
|
|
90
|
-
},
|
|
91
|
-
type: {
|
|
92
|
-
readOnly: true,
|
|
93
|
-
serializedName: "type",
|
|
94
|
-
type: {
|
|
95
|
-
name: "String"
|
|
96
|
-
}
|
|
97
90
|
}
|
|
98
91
|
}
|
|
99
92
|
}
|
|
100
93
|
};
|
|
101
94
|
|
|
102
|
-
export const
|
|
103
|
-
serializedName: "ExtendedErrorInfo",
|
|
95
|
+
export const ErrorModel: coreClient.CompositeMapper = {
|
|
104
96
|
type: {
|
|
105
97
|
name: "Composite",
|
|
106
|
-
className: "
|
|
98
|
+
className: "ErrorModel",
|
|
107
99
|
modelProperties: {
|
|
100
|
+
error: {
|
|
101
|
+
serializedName: "error",
|
|
102
|
+
type: {
|
|
103
|
+
name: "Composite",
|
|
104
|
+
className: "ExtendedErrorInfo"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
108
107
|
code: {
|
|
109
108
|
serializedName: "code",
|
|
110
109
|
type: {
|
|
@@ -121,49 +120,46 @@ export const ExtendedErrorInfo: msRest.CompositeMapper = {
|
|
|
121
120
|
}
|
|
122
121
|
};
|
|
123
122
|
|
|
124
|
-
export const
|
|
125
|
-
serializedName: "Error",
|
|
123
|
+
export const ExtendedErrorInfo: coreClient.CompositeMapper = {
|
|
126
124
|
type: {
|
|
127
125
|
name: "Composite",
|
|
128
|
-
className: "
|
|
126
|
+
className: "ExtendedErrorInfo",
|
|
129
127
|
modelProperties: {
|
|
130
|
-
|
|
131
|
-
serializedName: "
|
|
128
|
+
code: {
|
|
129
|
+
serializedName: "code",
|
|
132
130
|
type: {
|
|
133
|
-
name: "
|
|
134
|
-
|
|
131
|
+
name: "String"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
message: {
|
|
135
|
+
serializedName: "message",
|
|
136
|
+
type: {
|
|
137
|
+
name: "String"
|
|
135
138
|
}
|
|
136
139
|
}
|
|
137
140
|
}
|
|
138
141
|
}
|
|
139
142
|
};
|
|
140
143
|
|
|
141
|
-
export const
|
|
142
|
-
serializedName: "OperationDisplay",
|
|
144
|
+
export const OperationList: coreClient.CompositeMapper = {
|
|
143
145
|
type: {
|
|
144
146
|
name: "Composite",
|
|
145
|
-
className: "
|
|
147
|
+
className: "OperationList",
|
|
146
148
|
modelProperties: {
|
|
147
|
-
|
|
148
|
-
serializedName: "
|
|
149
|
-
type: {
|
|
150
|
-
name: "String"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
resource: {
|
|
154
|
-
serializedName: "resource",
|
|
155
|
-
type: {
|
|
156
|
-
name: "String"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
operation: {
|
|
160
|
-
serializedName: "operation",
|
|
149
|
+
value: {
|
|
150
|
+
serializedName: "value",
|
|
161
151
|
type: {
|
|
162
|
-
name: "
|
|
152
|
+
name: "Sequence",
|
|
153
|
+
element: {
|
|
154
|
+
type: {
|
|
155
|
+
name: "Composite",
|
|
156
|
+
className: "OperationResponse"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
163
159
|
}
|
|
164
160
|
},
|
|
165
|
-
|
|
166
|
-
serializedName: "
|
|
161
|
+
nextLink: {
|
|
162
|
+
serializedName: "nextLink",
|
|
167
163
|
type: {
|
|
168
164
|
name: "String"
|
|
169
165
|
}
|
|
@@ -172,8 +168,7 @@ export const OperationDisplay: msRest.CompositeMapper = {
|
|
|
172
168
|
}
|
|
173
169
|
};
|
|
174
170
|
|
|
175
|
-
export const OperationResponse:
|
|
176
|
-
serializedName: "OperationResponse",
|
|
171
|
+
export const OperationResponse: coreClient.CompositeMapper = {
|
|
177
172
|
type: {
|
|
178
173
|
name: "Composite",
|
|
179
174
|
className: "OperationResponse",
|
|
@@ -201,26 +196,31 @@ export const OperationResponse: msRest.CompositeMapper = {
|
|
|
201
196
|
}
|
|
202
197
|
};
|
|
203
198
|
|
|
204
|
-
export const
|
|
205
|
-
serializedName: "OperationList",
|
|
199
|
+
export const OperationDisplay: coreClient.CompositeMapper = {
|
|
206
200
|
type: {
|
|
207
201
|
name: "Composite",
|
|
208
|
-
className: "
|
|
202
|
+
className: "OperationDisplay",
|
|
209
203
|
modelProperties: {
|
|
210
|
-
|
|
211
|
-
serializedName: "",
|
|
204
|
+
provider: {
|
|
205
|
+
serializedName: "provider",
|
|
212
206
|
type: {
|
|
213
|
-
name: "
|
|
214
|
-
element: {
|
|
215
|
-
type: {
|
|
216
|
-
name: "Composite",
|
|
217
|
-
className: "OperationResponse"
|
|
218
|
-
}
|
|
219
|
-
}
|
|
207
|
+
name: "String"
|
|
220
208
|
}
|
|
221
209
|
},
|
|
222
|
-
|
|
223
|
-
serializedName: "
|
|
210
|
+
resource: {
|
|
211
|
+
serializedName: "resource",
|
|
212
|
+
type: {
|
|
213
|
+
name: "String"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
operation: {
|
|
217
|
+
serializedName: "operation",
|
|
218
|
+
type: {
|
|
219
|
+
name: "String"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
description: {
|
|
223
|
+
serializedName: "description",
|
|
224
224
|
type: {
|
|
225
225
|
name: "String"
|
|
226
226
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
OperationParameter,
|
|
11
|
+
OperationURLParameter,
|
|
12
|
+
OperationQueryParameter
|
|
13
|
+
} from "@azure/core-client";
|
|
14
|
+
|
|
15
|
+
export const accept: OperationParameter = {
|
|
16
|
+
parameterPath: "accept",
|
|
17
|
+
mapper: {
|
|
18
|
+
defaultValue: "application/json",
|
|
19
|
+
isConstant: true,
|
|
20
|
+
serializedName: "Accept",
|
|
21
|
+
type: {
|
|
22
|
+
name: "String"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const $host: OperationURLParameter = {
|
|
28
|
+
parameterPath: "$host",
|
|
29
|
+
mapper: {
|
|
30
|
+
serializedName: "$host",
|
|
31
|
+
required: true,
|
|
32
|
+
type: {
|
|
33
|
+
name: "String"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
skipEncoding: true
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const partnerId: OperationURLParameter = {
|
|
40
|
+
parameterPath: "partnerId",
|
|
41
|
+
mapper: {
|
|
42
|
+
serializedName: "partnerId",
|
|
43
|
+
required: true,
|
|
44
|
+
type: {
|
|
45
|
+
name: "String"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export const apiVersion: OperationQueryParameter = {
|
|
51
|
+
parameterPath: "apiVersion",
|
|
52
|
+
mapper: {
|
|
53
|
+
defaultValue: "2018-02-01",
|
|
54
|
+
isConstant: true,
|
|
55
|
+
serializedName: "api-version",
|
|
56
|
+
type: {
|
|
57
|
+
name: "String"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const nextLink: OperationURLParameter = {
|
|
63
|
+
parameterPath: "nextLink",
|
|
64
|
+
mapper: {
|
|
65
|
+
serializedName: "nextLink",
|
|
66
|
+
required: true,
|
|
67
|
+
type: {
|
|
68
|
+
name: "String"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
skipEncoding: true
|
|
72
|
+
};
|
|
@@ -1,12 +1,11 @@
|
|
|
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 "./partner";
|
|
12
10
|
export * from "./operation";
|
|
11
|
+
export * from "./partners";
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operation } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { ACEProvisioningManagementPartnerAPI } from "../aCEProvisioningManagementPartnerAPI";
|
|
15
|
+
import {
|
|
16
|
+
OperationResponse,
|
|
17
|
+
OperationListNextOptionalParams,
|
|
18
|
+
OperationListOptionalParams,
|
|
19
|
+
OperationListResponse,
|
|
20
|
+
OperationListNextResponse
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Operation operations. */
|
|
25
|
+
export class OperationImpl implements Operation {
|
|
26
|
+
private readonly client: ACEProvisioningManagementPartnerAPI;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Initialize a new instance of the class Operation class.
|
|
30
|
+
* @param client Reference to the service client
|
|
31
|
+
*/
|
|
32
|
+
constructor(client: ACEProvisioningManagementPartnerAPI) {
|
|
33
|
+
this.client = client;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* List all the operations.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
public list(
|
|
41
|
+
options?: OperationListOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<OperationResponse> {
|
|
43
|
+
const iter = this.listPagingAll(options);
|
|
44
|
+
return {
|
|
45
|
+
next() {
|
|
46
|
+
return iter.next();
|
|
47
|
+
},
|
|
48
|
+
[Symbol.asyncIterator]() {
|
|
49
|
+
return this;
|
|
50
|
+
},
|
|
51
|
+
byPage: () => {
|
|
52
|
+
return this.listPagingPage(options);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async *listPagingPage(
|
|
58
|
+
options?: OperationListOptionalParams
|
|
59
|
+
): AsyncIterableIterator<OperationResponse[]> {
|
|
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?: OperationListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<OperationResponse> {
|
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* List all the operations.
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
private _list(
|
|
83
|
+
options?: OperationListOptionalParams
|
|
84
|
+
): Promise<OperationListResponse> {
|
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* ListNext
|
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
private _listNext(
|
|
94
|
+
nextLink: string,
|
|
95
|
+
options?: OperationListNextOptionalParams
|
|
96
|
+
): Promise<OperationListNextResponse> {
|
|
97
|
+
return this.client.sendOperationRequest(
|
|
98
|
+
{ nextLink, options },
|
|
99
|
+
listNextOperationSpec
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// Operation Specifications
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
|
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
107
|
+
path: "/providers/Microsoft.ManagementPartner/operations",
|
|
108
|
+
httpMethod: "GET",
|
|
109
|
+
responses: {
|
|
110
|
+
200: {
|
|
111
|
+
bodyMapper: Mappers.OperationList
|
|
112
|
+
},
|
|
113
|
+
default: {
|
|
114
|
+
bodyMapper: Mappers.ErrorModel
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
120
|
+
serializer
|
|
121
|
+
};
|
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
123
|
+
path: "{nextLink}",
|
|
124
|
+
httpMethod: "GET",
|
|
125
|
+
responses: {
|
|
126
|
+
200: {
|
|
127
|
+
bodyMapper: Mappers.OperationList
|
|
128
|
+
},
|
|
129
|
+
default: {
|
|
130
|
+
bodyMapper: Mappers.ErrorModel
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
136
|
+
serializer
|
|
137
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { Partner } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { ACEProvisioningManagementPartnerAPI } from "../aCEProvisioningManagementPartnerAPI";
|
|
14
|
+
import {
|
|
15
|
+
PartnerGetOptionalParams,
|
|
16
|
+
PartnerGetResponse,
|
|
17
|
+
PartnerCreateOptionalParams,
|
|
18
|
+
PartnerCreateResponse,
|
|
19
|
+
PartnerUpdateOptionalParams,
|
|
20
|
+
PartnerUpdateResponse,
|
|
21
|
+
PartnerDeleteOptionalParams
|
|
22
|
+
} from "../models";
|
|
23
|
+
|
|
24
|
+
/** Class containing Partner operations. */
|
|
25
|
+
export class PartnerImpl implements Partner {
|
|
26
|
+
private readonly client: ACEProvisioningManagementPartnerAPI;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Initialize a new instance of the class Partner class.
|
|
30
|
+
* @param client Reference to the service client
|
|
31
|
+
*/
|
|
32
|
+
constructor(client: ACEProvisioningManagementPartnerAPI) {
|
|
33
|
+
this.client = client;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Get the management partner using the partnerId, objectId and tenantId.
|
|
38
|
+
* @param partnerId Id of the Partner
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
get(
|
|
42
|
+
partnerId: string,
|
|
43
|
+
options?: PartnerGetOptionalParams
|
|
44
|
+
): Promise<PartnerGetResponse> {
|
|
45
|
+
return this.client.sendOperationRequest(
|
|
46
|
+
{ partnerId, options },
|
|
47
|
+
getOperationSpec
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Create a management partner for the objectId and tenantId.
|
|
53
|
+
* @param partnerId Id of the Partner
|
|
54
|
+
* @param options The options parameters.
|
|
55
|
+
*/
|
|
56
|
+
create(
|
|
57
|
+
partnerId: string,
|
|
58
|
+
options?: PartnerCreateOptionalParams
|
|
59
|
+
): Promise<PartnerCreateResponse> {
|
|
60
|
+
return this.client.sendOperationRequest(
|
|
61
|
+
{ partnerId, options },
|
|
62
|
+
createOperationSpec
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Update the management partner for the objectId and tenantId.
|
|
68
|
+
* @param partnerId Id of the Partner
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
update(
|
|
72
|
+
partnerId: string,
|
|
73
|
+
options?: PartnerUpdateOptionalParams
|
|
74
|
+
): Promise<PartnerUpdateResponse> {
|
|
75
|
+
return this.client.sendOperationRequest(
|
|
76
|
+
{ partnerId, options },
|
|
77
|
+
updateOperationSpec
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Delete the management partner for the objectId and tenantId.
|
|
83
|
+
* @param partnerId Id of the Partner
|
|
84
|
+
* @param options The options parameters.
|
|
85
|
+
*/
|
|
86
|
+
delete(
|
|
87
|
+
partnerId: string,
|
|
88
|
+
options?: PartnerDeleteOptionalParams
|
|
89
|
+
): Promise<void> {
|
|
90
|
+
return this.client.sendOperationRequest(
|
|
91
|
+
{ partnerId, options },
|
|
92
|
+
deleteOperationSpec
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// Operation Specifications
|
|
97
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
98
|
+
|
|
99
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
100
|
+
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
101
|
+
httpMethod: "GET",
|
|
102
|
+
responses: {
|
|
103
|
+
200: {
|
|
104
|
+
bodyMapper: Mappers.PartnerResponse
|
|
105
|
+
},
|
|
106
|
+
default: {
|
|
107
|
+
bodyMapper: Mappers.ErrorModel
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
queryParameters: [Parameters.apiVersion],
|
|
111
|
+
urlParameters: [Parameters.$host, Parameters.partnerId],
|
|
112
|
+
headerParameters: [Parameters.accept],
|
|
113
|
+
serializer
|
|
114
|
+
};
|
|
115
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
116
|
+
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
117
|
+
httpMethod: "PUT",
|
|
118
|
+
responses: {
|
|
119
|
+
200: {
|
|
120
|
+
bodyMapper: Mappers.PartnerResponse
|
|
121
|
+
},
|
|
122
|
+
default: {
|
|
123
|
+
bodyMapper: Mappers.ErrorModel
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
queryParameters: [Parameters.apiVersion],
|
|
127
|
+
urlParameters: [Parameters.$host, Parameters.partnerId],
|
|
128
|
+
headerParameters: [Parameters.accept],
|
|
129
|
+
serializer
|
|
130
|
+
};
|
|
131
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
132
|
+
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
133
|
+
httpMethod: "PATCH",
|
|
134
|
+
responses: {
|
|
135
|
+
200: {
|
|
136
|
+
bodyMapper: Mappers.PartnerResponse
|
|
137
|
+
},
|
|
138
|
+
default: {
|
|
139
|
+
bodyMapper: Mappers.ErrorModel
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
queryParameters: [Parameters.apiVersion],
|
|
143
|
+
urlParameters: [Parameters.$host, Parameters.partnerId],
|
|
144
|
+
headerParameters: [Parameters.accept],
|
|
145
|
+
serializer
|
|
146
|
+
};
|
|
147
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
148
|
+
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
149
|
+
httpMethod: "DELETE",
|
|
150
|
+
responses: {
|
|
151
|
+
200: {},
|
|
152
|
+
default: {
|
|
153
|
+
bodyMapper: Mappers.ErrorModel
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
queryParameters: [Parameters.apiVersion],
|
|
157
|
+
urlParameters: [Parameters.$host, Parameters.partnerId],
|
|
158
|
+
headerParameters: [Parameters.accept],
|
|
159
|
+
serializer
|
|
160
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { Partners } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { ACEProvisioningManagementPartnerAPI } from "../aCEProvisioningManagementPartnerAPI";
|
|
14
|
+
import { PartnersGetOptionalParams, PartnersGetResponse } from "../models";
|
|
15
|
+
|
|
16
|
+
/** Class containing Partners operations. */
|
|
17
|
+
export class PartnersImpl implements Partners {
|
|
18
|
+
private readonly client: ACEProvisioningManagementPartnerAPI;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Initialize a new instance of the class Partners class.
|
|
22
|
+
* @param client Reference to the service client
|
|
23
|
+
*/
|
|
24
|
+
constructor(client: ACEProvisioningManagementPartnerAPI) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get the management partner using the objectId and tenantId.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
get(options?: PartnersGetOptionalParams): Promise<PartnersGetResponse> {
|
|
33
|
+
return this.client.sendOperationRequest({ options }, getOperationSpec);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
// Operation Specifications
|
|
37
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
38
|
+
|
|
39
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
40
|
+
path: "/providers/Microsoft.ManagementPartner/partners",
|
|
41
|
+
httpMethod: "GET",
|
|
42
|
+
responses: {
|
|
43
|
+
200: {
|
|
44
|
+
bodyMapper: Mappers.PartnerResponse
|
|
45
|
+
},
|
|
46
|
+
default: {
|
|
47
|
+
bodyMapper: Mappers.ErrorModel
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
queryParameters: [Parameters.apiVersion],
|
|
51
|
+
urlParameters: [Parameters.$host],
|
|
52
|
+
headerParameters: [Parameters.accept],
|
|
53
|
+
serializer
|
|
54
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export * from "./partner";
|
|
10
|
+
export * from "./operation";
|
|
11
|
+
export * from "./partners";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { OperationResponse, OperationListOptionalParams } from "../models";
|
|
11
|
+
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Interface representing a Operation. */
|
|
14
|
+
export interface Operation {
|
|
15
|
+
/**
|
|
16
|
+
* List all the operations.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
list(
|
|
20
|
+
options?: OperationListOptionalParams
|
|
21
|
+
): PagedAsyncIterableIterator<OperationResponse>;
|
|
22
|
+
}
|