@azure/arm-managedapplications 2.0.0-beta.1 → 2.0.0
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 +6 -11
- package/README.md +15 -9
- package/dist/index.js +145 -929
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/{esm → dist-esm/src}/applicationClient.d.ts +7 -19
- package/dist-esm/src/applicationClient.d.ts.map +1 -0
- package/{esm → dist-esm/src}/applicationClient.js +31 -74
- package/dist-esm/src/applicationClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/{esm → dist-esm/src}/models/index.d.ts +39 -59
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/index.js +0 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.d.ts +2 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +34 -34
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.d.ts +0 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +0 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/applicationDefinitions.d.ts +4 -22
- package/dist-esm/src/operations/applicationDefinitions.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/applicationDefinitions.js +23 -93
- package/dist-esm/src/operations/applicationDefinitions.js.map +1 -0
- package/{esm → dist-esm/src}/operations/applications.d.ts +4 -36
- package/dist-esm/src/operations/applications.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/applications.js +23 -170
- package/dist-esm/src/operations/applications.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 +0 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/applicationDefinitions.d.ts +1 -9
- package/dist-esm/src/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/applicationDefinitions.js +1 -1
- package/dist-esm/src/operationsInterfaces/applicationDefinitions.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/applications.d.ts +1 -15
- package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/applications.js +1 -1
- package/dist-esm/src/operationsInterfaces/applications.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/index.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/index.js +0 -0
- package/dist-esm/src/operationsInterfaces/index.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 +27 -33
- package/review/arm-managedapplications.api.md +20 -58
- package/src/applicationClient.ts +56 -94
- package/src/index.ts +0 -1
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +37 -65
- package/src/models/mappers.ts +34 -34
- package/src/operations/applicationDefinitions.ts +27 -128
- package/src/operations/applications.ts +27 -217
- package/src/operationsInterfaces/applicationDefinitions.ts +0 -13
- package/src/operationsInterfaces/applications.ts +0 -23
- package/tsconfig.json +2 -3
- package/{esm/index.d.ts → types/arm-managedapplications.d.ts} +19 -91
- package/types/tsdoc-metadata.json +11 -0
- package/esm/applicationClient.d.ts.map +0 -1
- package/esm/applicationClient.js.map +0 -1
- package/esm/applicationClientContext.d.ts +0 -16
- package/esm/applicationClientContext.d.ts.map +0 -1
- package/esm/applicationClientContext.js +0 -49
- package/esm/applicationClientContext.js.map +0 -1
- package/esm/coreClientLro.d.ts +0 -26
- package/esm/coreClientLro.d.ts.map +0 -1
- package/esm/coreClientLro.js +0 -186
- package/esm/coreClientLro.js.map +0 -1
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/lro/azureAsyncPolling.d.ts +0 -3
- package/esm/lro/azureAsyncPolling.d.ts.map +0 -1
- package/esm/lro/azureAsyncPolling.js +0 -67
- package/esm/lro/azureAsyncPolling.js.map +0 -1
- package/esm/lro/bodyPolling.d.ts +0 -8
- package/esm/lro/bodyPolling.d.ts.map +0 -1
- package/esm/lro/bodyPolling.js +0 -37
- package/esm/lro/bodyPolling.js.map +0 -1
- package/esm/lro/index.d.ts +0 -4
- package/esm/lro/index.d.ts.map +0 -1
- package/esm/lro/index.js +0 -12
- package/esm/lro/index.js.map +0 -1
- package/esm/lro/locationPolling.d.ts +0 -3
- package/esm/lro/locationPolling.d.ts.map +0 -1
- package/esm/lro/locationPolling.js +0 -19
- package/esm/lro/locationPolling.js.map +0 -1
- package/esm/lro/lroEngine.d.ts +0 -14
- package/esm/lro/lroEngine.d.ts.map +0 -1
- package/esm/lro/lroEngine.js +0 -41
- package/esm/lro/lroEngine.js.map +0 -1
- package/esm/lro/models.d.ts +0 -138
- package/esm/lro/models.d.ts.map +0 -1
- package/esm/lro/models.js +0 -14
- package/esm/lro/models.js.map +0 -1
- package/esm/lro/operation.d.ts +0 -36
- package/esm/lro/operation.d.ts.map +0 -1
- package/esm/lro/operation.js +0 -82
- package/esm/lro/operation.js.map +0 -1
- package/esm/lro/passthrough.d.ts +0 -3
- package/esm/lro/passthrough.d.ts.map +0 -1
- package/esm/lro/passthrough.js +0 -15
- package/esm/lro/passthrough.js.map +0 -1
- package/esm/lro/requestUtils.d.ts +0 -16
- package/esm/lro/requestUtils.d.ts.map +0 -1
- package/esm/lro/requestUtils.js +0 -73
- package/esm/lro/requestUtils.js.map +0 -1
- package/esm/lro/stateMachine.d.ts +0 -18
- package/esm/lro/stateMachine.d.ts.map +0 -1
- package/esm/lro/stateMachine.js +0 -84
- package/esm/lro/stateMachine.js.map +0 -1
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/applicationDefinitions.d.ts.map +0 -1
- package/esm/operations/applicationDefinitions.js.map +0 -1
- package/esm/operations/applications.d.ts.map +0 -1
- package/esm/operations/applications.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operationsInterfaces/applicationDefinitions.d.ts.map +0 -1
- package/esm/operationsInterfaces/applicationDefinitions.js.map +0 -1
- package/esm/operationsInterfaces/applications.d.ts.map +0 -1
- package/esm/operationsInterfaces/applications.js.map +0 -1
- package/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/esm/operationsInterfaces/index.js.map +0 -1
- package/src/applicationClientContext.ts +0 -70
- package/src/coreClientLro.ts +0 -323
- package/src/lro/azureAsyncPolling.ts +0 -96
- package/src/lro/bodyPolling.ts +0 -54
- package/src/lro/index.ts +0 -26
- package/src/lro/locationPolling.ts +0 -30
- package/src/lro/lroEngine.ts +0 -61
- package/src/lro/models.ts +0 -173
- package/src/lro/operation.ts +0 -120
- package/src/lro/passthrough.ts +0 -23
- package/src/lro/requestUtils.ts +0 -105
- package/src/lro/stateMachine.ts +0 -138
package/src/models/mappers.ts
CHANGED
|
@@ -84,43 +84,43 @@ export const OperationDisplay: coreClient.CompositeMapper = {
|
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
export const
|
|
87
|
+
export const Plan: coreClient.CompositeMapper = {
|
|
88
88
|
type: {
|
|
89
89
|
name: "Composite",
|
|
90
|
-
className: "
|
|
90
|
+
className: "Plan",
|
|
91
91
|
modelProperties: {
|
|
92
|
-
|
|
93
|
-
serializedName: "
|
|
94
|
-
|
|
92
|
+
name: {
|
|
93
|
+
serializedName: "name",
|
|
94
|
+
required: true,
|
|
95
95
|
type: {
|
|
96
96
|
name: "String"
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
-
|
|
100
|
-
serializedName: "
|
|
101
|
-
|
|
99
|
+
publisher: {
|
|
100
|
+
serializedName: "publisher",
|
|
101
|
+
required: true,
|
|
102
102
|
type: {
|
|
103
103
|
name: "String"
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
-
|
|
107
|
-
serializedName: "
|
|
108
|
-
|
|
106
|
+
product: {
|
|
107
|
+
serializedName: "product",
|
|
108
|
+
required: true,
|
|
109
109
|
type: {
|
|
110
110
|
name: "String"
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
|
|
114
|
-
serializedName: "
|
|
113
|
+
promotionCode: {
|
|
114
|
+
serializedName: "promotionCode",
|
|
115
115
|
type: {
|
|
116
116
|
name: "String"
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
|
-
|
|
120
|
-
serializedName: "
|
|
119
|
+
version: {
|
|
120
|
+
serializedName: "version",
|
|
121
|
+
required: true,
|
|
121
122
|
type: {
|
|
122
|
-
name: "
|
|
123
|
-
value: { type: { name: "String" } }
|
|
123
|
+
name: "String"
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -204,43 +204,43 @@ export const Identity: coreClient.CompositeMapper = {
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
export const
|
|
207
|
+
export const Resource: coreClient.CompositeMapper = {
|
|
208
208
|
type: {
|
|
209
209
|
name: "Composite",
|
|
210
|
-
className: "
|
|
210
|
+
className: "Resource",
|
|
211
211
|
modelProperties: {
|
|
212
|
-
|
|
213
|
-
serializedName: "
|
|
214
|
-
|
|
212
|
+
id: {
|
|
213
|
+
serializedName: "id",
|
|
214
|
+
readOnly: true,
|
|
215
215
|
type: {
|
|
216
216
|
name: "String"
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
|
-
|
|
220
|
-
serializedName: "
|
|
221
|
-
|
|
219
|
+
name: {
|
|
220
|
+
serializedName: "name",
|
|
221
|
+
readOnly: true,
|
|
222
222
|
type: {
|
|
223
223
|
name: "String"
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
|
-
|
|
227
|
-
serializedName: "
|
|
228
|
-
|
|
226
|
+
type: {
|
|
227
|
+
serializedName: "type",
|
|
228
|
+
readOnly: true,
|
|
229
229
|
type: {
|
|
230
230
|
name: "String"
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
|
-
|
|
234
|
-
serializedName: "
|
|
233
|
+
location: {
|
|
234
|
+
serializedName: "location",
|
|
235
235
|
type: {
|
|
236
236
|
name: "String"
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
|
-
|
|
240
|
-
serializedName: "
|
|
241
|
-
required: true,
|
|
239
|
+
tags: {
|
|
240
|
+
serializedName: "tags",
|
|
242
241
|
type: {
|
|
243
|
-
name: "
|
|
242
|
+
name: "Dictionary",
|
|
243
|
+
value: { type: { name: "String" } }
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
}
|
|
@@ -6,21 +6,18 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { ApplicationDefinitions } from "../operationsInterfaces";
|
|
12
11
|
import * as coreClient from "@azure/core-client";
|
|
13
12
|
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
16
|
-
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
17
|
-
import {
|
|
18
|
-
import { CoreClientLro, shouldDeserializeLro } from "../coreClientLro";
|
|
14
|
+
import { ApplicationClient } from "../applicationClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
19
17
|
import {
|
|
20
18
|
ApplicationDefinition,
|
|
21
19
|
ApplicationDefinitionsListByResourceGroupNextOptionalParams,
|
|
22
20
|
ApplicationDefinitionsListByResourceGroupOptionalParams,
|
|
23
|
-
ApplicationDefinitionsListByResourceGroupNextNextOptionalParams,
|
|
24
21
|
ApplicationDefinitionsGetOptionalParams,
|
|
25
22
|
ApplicationDefinitionsGetResponse,
|
|
26
23
|
ApplicationDefinitionsDeleteOptionalParams,
|
|
@@ -32,20 +29,19 @@ import {
|
|
|
32
29
|
ApplicationDefinitionsDeleteByIdOptionalParams,
|
|
33
30
|
ApplicationDefinitionsCreateOrUpdateByIdOptionalParams,
|
|
34
31
|
ApplicationDefinitionsCreateOrUpdateByIdResponse,
|
|
35
|
-
ApplicationDefinitionsListByResourceGroupNextResponse
|
|
36
|
-
ApplicationDefinitionsListByResourceGroupNextNextResponse
|
|
32
|
+
ApplicationDefinitionsListByResourceGroupNextResponse
|
|
37
33
|
} from "../models";
|
|
38
34
|
|
|
39
35
|
/// <reference lib="esnext.asynciterable" />
|
|
40
|
-
/** Class
|
|
36
|
+
/** Class containing ApplicationDefinitions operations. */
|
|
41
37
|
export class ApplicationDefinitionsImpl implements ApplicationDefinitions {
|
|
42
|
-
private readonly client:
|
|
38
|
+
private readonly client: ApplicationClient;
|
|
43
39
|
|
|
44
40
|
/**
|
|
45
41
|
* Initialize a new instance of the class ApplicationDefinitions class.
|
|
46
42
|
* @param client Reference to the service client
|
|
47
43
|
*/
|
|
48
|
-
constructor(client:
|
|
44
|
+
constructor(client: ApplicationClient) {
|
|
49
45
|
this.client = client;
|
|
50
46
|
}
|
|
51
47
|
|
|
@@ -102,76 +98,6 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions {
|
|
|
102
98
|
}
|
|
103
99
|
}
|
|
104
100
|
|
|
105
|
-
/**
|
|
106
|
-
* ListByResourceGroupNext
|
|
107
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
108
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
109
|
-
* @param options The options parameters.
|
|
110
|
-
*/
|
|
111
|
-
public listByResourceGroupNext(
|
|
112
|
-
resourceGroupName: string,
|
|
113
|
-
nextLink: string,
|
|
114
|
-
options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams
|
|
115
|
-
): PagedAsyncIterableIterator<ApplicationDefinition> {
|
|
116
|
-
const iter = this.listByResourceGroupNextPagingAll(
|
|
117
|
-
resourceGroupName,
|
|
118
|
-
nextLink,
|
|
119
|
-
options
|
|
120
|
-
);
|
|
121
|
-
return {
|
|
122
|
-
next() {
|
|
123
|
-
return iter.next();
|
|
124
|
-
},
|
|
125
|
-
[Symbol.asyncIterator]() {
|
|
126
|
-
return this;
|
|
127
|
-
},
|
|
128
|
-
byPage: () => {
|
|
129
|
-
return this.listByResourceGroupNextPagingPage(
|
|
130
|
-
resourceGroupName,
|
|
131
|
-
nextLink,
|
|
132
|
-
options
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
private async *listByResourceGroupNextPagingPage(
|
|
139
|
-
resourceGroupName: string,
|
|
140
|
-
nextLink: string,
|
|
141
|
-
options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams
|
|
142
|
-
): AsyncIterableIterator<ApplicationDefinition[]> {
|
|
143
|
-
let result = await this._listByResourceGroupNext(
|
|
144
|
-
resourceGroupName,
|
|
145
|
-
nextLink,
|
|
146
|
-
options
|
|
147
|
-
);
|
|
148
|
-
yield result.value || [];
|
|
149
|
-
let continuationToken = result.nextLink;
|
|
150
|
-
while (continuationToken) {
|
|
151
|
-
result = await this._listByResourceGroupNextNext(
|
|
152
|
-
resourceGroupName,
|
|
153
|
-
continuationToken,
|
|
154
|
-
options
|
|
155
|
-
);
|
|
156
|
-
continuationToken = result.nextLink;
|
|
157
|
-
yield result.value || [];
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
private async *listByResourceGroupNextPagingAll(
|
|
162
|
-
resourceGroupName: string,
|
|
163
|
-
nextLink: string,
|
|
164
|
-
options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams
|
|
165
|
-
): AsyncIterableIterator<ApplicationDefinition> {
|
|
166
|
-
for await (const page of this.listByResourceGroupNextPagingPage(
|
|
167
|
-
resourceGroupName,
|
|
168
|
-
nextLink,
|
|
169
|
-
options
|
|
170
|
-
)) {
|
|
171
|
-
yield* page;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
101
|
/**
|
|
176
102
|
* Gets the managed application definition.
|
|
177
103
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -239,12 +165,15 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions {
|
|
|
239
165
|
};
|
|
240
166
|
};
|
|
241
167
|
|
|
242
|
-
const lro = new
|
|
168
|
+
const lro = new LroImpl(
|
|
243
169
|
sendOperation,
|
|
244
170
|
{ resourceGroupName, applicationDefinitionName, options },
|
|
245
171
|
deleteOperationSpec
|
|
246
172
|
);
|
|
247
|
-
return new LroEngine(lro, {
|
|
173
|
+
return new LroEngine(lro, {
|
|
174
|
+
resumeFrom: options?.resumeFrom,
|
|
175
|
+
intervalInMs: options?.updateIntervalInMs
|
|
176
|
+
});
|
|
248
177
|
}
|
|
249
178
|
|
|
250
179
|
/**
|
|
@@ -323,12 +252,15 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions {
|
|
|
323
252
|
};
|
|
324
253
|
};
|
|
325
254
|
|
|
326
|
-
const lro = new
|
|
255
|
+
const lro = new LroImpl(
|
|
327
256
|
sendOperation,
|
|
328
257
|
{ resourceGroupName, applicationDefinitionName, parameters, options },
|
|
329
258
|
createOrUpdateOperationSpec
|
|
330
259
|
);
|
|
331
|
-
return new LroEngine(lro, {
|
|
260
|
+
return new LroEngine(lro, {
|
|
261
|
+
resumeFrom: options?.resumeFrom,
|
|
262
|
+
intervalInMs: options?.updateIntervalInMs
|
|
263
|
+
});
|
|
332
264
|
}
|
|
333
265
|
|
|
334
266
|
/**
|
|
@@ -435,12 +367,15 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions {
|
|
|
435
367
|
};
|
|
436
368
|
};
|
|
437
369
|
|
|
438
|
-
const lro = new
|
|
370
|
+
const lro = new LroImpl(
|
|
439
371
|
sendOperation,
|
|
440
372
|
{ resourceGroupName, applicationDefinitionName, options },
|
|
441
373
|
deleteByIdOperationSpec
|
|
442
374
|
);
|
|
443
|
-
return new LroEngine(lro, {
|
|
375
|
+
return new LroEngine(lro, {
|
|
376
|
+
resumeFrom: options?.resumeFrom,
|
|
377
|
+
intervalInMs: options?.updateIntervalInMs
|
|
378
|
+
});
|
|
444
379
|
}
|
|
445
380
|
|
|
446
381
|
/**
|
|
@@ -519,12 +454,15 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions {
|
|
|
519
454
|
};
|
|
520
455
|
};
|
|
521
456
|
|
|
522
|
-
const lro = new
|
|
457
|
+
const lro = new LroImpl(
|
|
523
458
|
sendOperation,
|
|
524
459
|
{ resourceGroupName, applicationDefinitionName, parameters, options },
|
|
525
460
|
createOrUpdateByIdOperationSpec
|
|
526
461
|
);
|
|
527
|
-
return new LroEngine(lro, {
|
|
462
|
+
return new LroEngine(lro, {
|
|
463
|
+
resumeFrom: options?.resumeFrom,
|
|
464
|
+
intervalInMs: options?.updateIntervalInMs
|
|
465
|
+
});
|
|
528
466
|
}
|
|
529
467
|
|
|
530
468
|
/**
|
|
@@ -565,24 +503,6 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions {
|
|
|
565
503
|
listByResourceGroupNextOperationSpec
|
|
566
504
|
);
|
|
567
505
|
}
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* ListByResourceGroupNextNext
|
|
571
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
572
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroupNext
|
|
573
|
-
* method.
|
|
574
|
-
* @param options The options parameters.
|
|
575
|
-
*/
|
|
576
|
-
private _listByResourceGroupNextNext(
|
|
577
|
-
resourceGroupName: string,
|
|
578
|
-
nextLink: string,
|
|
579
|
-
options?: ApplicationDefinitionsListByResourceGroupNextNextOptionalParams
|
|
580
|
-
): Promise<ApplicationDefinitionsListByResourceGroupNextNextResponse> {
|
|
581
|
-
return this.client.sendOperationRequest(
|
|
582
|
-
{ resourceGroupName, nextLink, options },
|
|
583
|
-
listByResourceGroupNextNextOperationSpec
|
|
584
|
-
);
|
|
585
|
-
}
|
|
586
506
|
}
|
|
587
507
|
// Operation Specifications
|
|
588
508
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -787,24 +707,3 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
787
707
|
headerParameters: [Parameters.accept],
|
|
788
708
|
serializer
|
|
789
709
|
};
|
|
790
|
-
const listByResourceGroupNextNextOperationSpec: coreClient.OperationSpec = {
|
|
791
|
-
path: "{nextLink}",
|
|
792
|
-
httpMethod: "GET",
|
|
793
|
-
responses: {
|
|
794
|
-
200: {
|
|
795
|
-
bodyMapper: Mappers.ApplicationDefinitionListResult
|
|
796
|
-
},
|
|
797
|
-
default: {
|
|
798
|
-
bodyMapper: Mappers.ErrorResponse
|
|
799
|
-
}
|
|
800
|
-
},
|
|
801
|
-
queryParameters: [Parameters.apiVersion],
|
|
802
|
-
urlParameters: [
|
|
803
|
-
Parameters.$host,
|
|
804
|
-
Parameters.nextLink,
|
|
805
|
-
Parameters.resourceGroupName,
|
|
806
|
-
Parameters.subscriptionId
|
|
807
|
-
],
|
|
808
|
-
headerParameters: [Parameters.accept],
|
|
809
|
-
serializer
|
|
810
|
-
};
|
|
@@ -6,24 +6,20 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { Applications } from "../operationsInterfaces";
|
|
12
11
|
import * as coreClient from "@azure/core-client";
|
|
13
12
|
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
16
|
-
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
17
|
-
import {
|
|
18
|
-
import { CoreClientLro, shouldDeserializeLro } from "../coreClientLro";
|
|
14
|
+
import { ApplicationClient } from "../applicationClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
19
17
|
import {
|
|
20
18
|
Application,
|
|
21
19
|
ApplicationsListByResourceGroupNextOptionalParams,
|
|
22
20
|
ApplicationsListByResourceGroupOptionalParams,
|
|
23
21
|
ApplicationsListBySubscriptionNextOptionalParams,
|
|
24
22
|
ApplicationsListBySubscriptionOptionalParams,
|
|
25
|
-
ApplicationsListByResourceGroupNextNextOptionalParams,
|
|
26
|
-
ApplicationsListBySubscriptionNextNextOptionalParams,
|
|
27
23
|
ApplicationsGetOptionalParams,
|
|
28
24
|
ApplicationsGetResponse,
|
|
29
25
|
ApplicationsDeleteOptionalParams,
|
|
@@ -41,21 +37,19 @@ import {
|
|
|
41
37
|
ApplicationsUpdateByIdOptionalParams,
|
|
42
38
|
ApplicationsUpdateByIdResponse,
|
|
43
39
|
ApplicationsListByResourceGroupNextResponse,
|
|
44
|
-
ApplicationsListBySubscriptionNextResponse
|
|
45
|
-
ApplicationsListByResourceGroupNextNextResponse,
|
|
46
|
-
ApplicationsListBySubscriptionNextNextResponse
|
|
40
|
+
ApplicationsListBySubscriptionNextResponse
|
|
47
41
|
} from "../models";
|
|
48
42
|
|
|
49
43
|
/// <reference lib="esnext.asynciterable" />
|
|
50
|
-
/** Class
|
|
44
|
+
/** Class containing Applications operations. */
|
|
51
45
|
export class ApplicationsImpl implements Applications {
|
|
52
|
-
private readonly client:
|
|
46
|
+
private readonly client: ApplicationClient;
|
|
53
47
|
|
|
54
48
|
/**
|
|
55
49
|
* Initialize a new instance of the class Applications class.
|
|
56
50
|
* @param client Reference to the service client
|
|
57
51
|
*/
|
|
58
|
-
constructor(client:
|
|
52
|
+
constructor(client: ApplicationClient) {
|
|
59
53
|
this.client = client;
|
|
60
54
|
}
|
|
61
55
|
|
|
@@ -154,128 +148,6 @@ export class ApplicationsImpl implements Applications {
|
|
|
154
148
|
}
|
|
155
149
|
}
|
|
156
150
|
|
|
157
|
-
/**
|
|
158
|
-
* ListByResourceGroupNext
|
|
159
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
160
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
161
|
-
* @param options The options parameters.
|
|
162
|
-
*/
|
|
163
|
-
public listByResourceGroupNext(
|
|
164
|
-
resourceGroupName: string,
|
|
165
|
-
nextLink: string,
|
|
166
|
-
options?: ApplicationsListByResourceGroupNextOptionalParams
|
|
167
|
-
): PagedAsyncIterableIterator<Application> {
|
|
168
|
-
const iter = this.listByResourceGroupNextPagingAll(
|
|
169
|
-
resourceGroupName,
|
|
170
|
-
nextLink,
|
|
171
|
-
options
|
|
172
|
-
);
|
|
173
|
-
return {
|
|
174
|
-
next() {
|
|
175
|
-
return iter.next();
|
|
176
|
-
},
|
|
177
|
-
[Symbol.asyncIterator]() {
|
|
178
|
-
return this;
|
|
179
|
-
},
|
|
180
|
-
byPage: () => {
|
|
181
|
-
return this.listByResourceGroupNextPagingPage(
|
|
182
|
-
resourceGroupName,
|
|
183
|
-
nextLink,
|
|
184
|
-
options
|
|
185
|
-
);
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
private async *listByResourceGroupNextPagingPage(
|
|
191
|
-
resourceGroupName: string,
|
|
192
|
-
nextLink: string,
|
|
193
|
-
options?: ApplicationsListByResourceGroupNextOptionalParams
|
|
194
|
-
): AsyncIterableIterator<Application[]> {
|
|
195
|
-
let result = await this._listByResourceGroupNext(
|
|
196
|
-
resourceGroupName,
|
|
197
|
-
nextLink,
|
|
198
|
-
options
|
|
199
|
-
);
|
|
200
|
-
yield result.value || [];
|
|
201
|
-
let continuationToken = result.nextLink;
|
|
202
|
-
while (continuationToken) {
|
|
203
|
-
result = await this._listByResourceGroupNextNext(
|
|
204
|
-
resourceGroupName,
|
|
205
|
-
continuationToken,
|
|
206
|
-
options
|
|
207
|
-
);
|
|
208
|
-
continuationToken = result.nextLink;
|
|
209
|
-
yield result.value || [];
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
private async *listByResourceGroupNextPagingAll(
|
|
214
|
-
resourceGroupName: string,
|
|
215
|
-
nextLink: string,
|
|
216
|
-
options?: ApplicationsListByResourceGroupNextOptionalParams
|
|
217
|
-
): AsyncIterableIterator<Application> {
|
|
218
|
-
for await (const page of this.listByResourceGroupNextPagingPage(
|
|
219
|
-
resourceGroupName,
|
|
220
|
-
nextLink,
|
|
221
|
-
options
|
|
222
|
-
)) {
|
|
223
|
-
yield* page;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* ListBySubscriptionNext
|
|
229
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
230
|
-
* @param options The options parameters.
|
|
231
|
-
*/
|
|
232
|
-
public listBySubscriptionNext(
|
|
233
|
-
nextLink: string,
|
|
234
|
-
options?: ApplicationsListBySubscriptionNextOptionalParams
|
|
235
|
-
): PagedAsyncIterableIterator<Application> {
|
|
236
|
-
const iter = this.listBySubscriptionNextPagingAll(nextLink, options);
|
|
237
|
-
return {
|
|
238
|
-
next() {
|
|
239
|
-
return iter.next();
|
|
240
|
-
},
|
|
241
|
-
[Symbol.asyncIterator]() {
|
|
242
|
-
return this;
|
|
243
|
-
},
|
|
244
|
-
byPage: () => {
|
|
245
|
-
return this.listBySubscriptionNextPagingPage(nextLink, options);
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
private async *listBySubscriptionNextPagingPage(
|
|
251
|
-
nextLink: string,
|
|
252
|
-
options?: ApplicationsListBySubscriptionNextOptionalParams
|
|
253
|
-
): AsyncIterableIterator<Application[]> {
|
|
254
|
-
let result = await this._listBySubscriptionNext(nextLink, options);
|
|
255
|
-
yield result.value || [];
|
|
256
|
-
let continuationToken = result.nextLink;
|
|
257
|
-
while (continuationToken) {
|
|
258
|
-
result = await this._listBySubscriptionNextNext(
|
|
259
|
-
continuationToken,
|
|
260
|
-
options
|
|
261
|
-
);
|
|
262
|
-
continuationToken = result.nextLink;
|
|
263
|
-
yield result.value || [];
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
private async *listBySubscriptionNextPagingAll(
|
|
268
|
-
nextLink: string,
|
|
269
|
-
options?: ApplicationsListBySubscriptionNextOptionalParams
|
|
270
|
-
): AsyncIterableIterator<Application> {
|
|
271
|
-
for await (const page of this.listBySubscriptionNextPagingPage(
|
|
272
|
-
nextLink,
|
|
273
|
-
options
|
|
274
|
-
)) {
|
|
275
|
-
yield* page;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
151
|
/**
|
|
280
152
|
* Gets the managed application.
|
|
281
153
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -343,12 +215,15 @@ export class ApplicationsImpl implements Applications {
|
|
|
343
215
|
};
|
|
344
216
|
};
|
|
345
217
|
|
|
346
|
-
const lro = new
|
|
218
|
+
const lro = new LroImpl(
|
|
347
219
|
sendOperation,
|
|
348
220
|
{ resourceGroupName, applicationName, options },
|
|
349
221
|
deleteOperationSpec
|
|
350
222
|
);
|
|
351
|
-
return new LroEngine(lro, {
|
|
223
|
+
return new LroEngine(lro, {
|
|
224
|
+
resumeFrom: options?.resumeFrom,
|
|
225
|
+
intervalInMs: options?.updateIntervalInMs
|
|
226
|
+
});
|
|
352
227
|
}
|
|
353
228
|
|
|
354
229
|
/**
|
|
@@ -427,12 +302,15 @@ export class ApplicationsImpl implements Applications {
|
|
|
427
302
|
};
|
|
428
303
|
};
|
|
429
304
|
|
|
430
|
-
const lro = new
|
|
305
|
+
const lro = new LroImpl(
|
|
431
306
|
sendOperation,
|
|
432
307
|
{ resourceGroupName, applicationName, parameters, options },
|
|
433
308
|
createOrUpdateOperationSpec
|
|
434
309
|
);
|
|
435
|
-
return new LroEngine(lro, {
|
|
310
|
+
return new LroEngine(lro, {
|
|
311
|
+
resumeFrom: options?.resumeFrom,
|
|
312
|
+
intervalInMs: options?.updateIntervalInMs
|
|
313
|
+
});
|
|
436
314
|
}
|
|
437
315
|
|
|
438
316
|
/**
|
|
@@ -570,12 +448,15 @@ export class ApplicationsImpl implements Applications {
|
|
|
570
448
|
};
|
|
571
449
|
};
|
|
572
450
|
|
|
573
|
-
const lro = new
|
|
451
|
+
const lro = new LroImpl(
|
|
574
452
|
sendOperation,
|
|
575
453
|
{ applicationId, options },
|
|
576
454
|
deleteByIdOperationSpec
|
|
577
455
|
);
|
|
578
|
-
return new LroEngine(lro, {
|
|
456
|
+
return new LroEngine(lro, {
|
|
457
|
+
resumeFrom: options?.resumeFrom,
|
|
458
|
+
intervalInMs: options?.updateIntervalInMs
|
|
459
|
+
});
|
|
579
460
|
}
|
|
580
461
|
|
|
581
462
|
/**
|
|
@@ -650,12 +531,15 @@ export class ApplicationsImpl implements Applications {
|
|
|
650
531
|
};
|
|
651
532
|
};
|
|
652
533
|
|
|
653
|
-
const lro = new
|
|
534
|
+
const lro = new LroImpl(
|
|
654
535
|
sendOperation,
|
|
655
536
|
{ applicationId, parameters, options },
|
|
656
537
|
createOrUpdateByIdOperationSpec
|
|
657
538
|
);
|
|
658
|
-
return new LroEngine(lro, {
|
|
539
|
+
return new LroEngine(lro, {
|
|
540
|
+
resumeFrom: options?.resumeFrom,
|
|
541
|
+
intervalInMs: options?.updateIntervalInMs
|
|
542
|
+
});
|
|
659
543
|
}
|
|
660
544
|
|
|
661
545
|
/**
|
|
@@ -728,39 +612,6 @@ export class ApplicationsImpl implements Applications {
|
|
|
728
612
|
listBySubscriptionNextOperationSpec
|
|
729
613
|
);
|
|
730
614
|
}
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* ListByResourceGroupNextNext
|
|
734
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
735
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroupNext
|
|
736
|
-
* method.
|
|
737
|
-
* @param options The options parameters.
|
|
738
|
-
*/
|
|
739
|
-
private _listByResourceGroupNextNext(
|
|
740
|
-
resourceGroupName: string,
|
|
741
|
-
nextLink: string,
|
|
742
|
-
options?: ApplicationsListByResourceGroupNextNextOptionalParams
|
|
743
|
-
): Promise<ApplicationsListByResourceGroupNextNextResponse> {
|
|
744
|
-
return this.client.sendOperationRequest(
|
|
745
|
-
{ resourceGroupName, nextLink, options },
|
|
746
|
-
listByResourceGroupNextNextOperationSpec
|
|
747
|
-
);
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* ListBySubscriptionNextNext
|
|
752
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscriptionNext method.
|
|
753
|
-
* @param options The options parameters.
|
|
754
|
-
*/
|
|
755
|
-
private _listBySubscriptionNextNext(
|
|
756
|
-
nextLink: string,
|
|
757
|
-
options?: ApplicationsListBySubscriptionNextNextOptionalParams
|
|
758
|
-
): Promise<ApplicationsListBySubscriptionNextNextResponse> {
|
|
759
|
-
return this.client.sendOperationRequest(
|
|
760
|
-
{ nextLink, options },
|
|
761
|
-
listBySubscriptionNextNextOperationSpec
|
|
762
|
-
);
|
|
763
|
-
}
|
|
764
615
|
}
|
|
765
616
|
// Operation Specifications
|
|
766
617
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -1026,44 +877,3 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
1026
877
|
headerParameters: [Parameters.accept],
|
|
1027
878
|
serializer
|
|
1028
879
|
};
|
|
1029
|
-
const listByResourceGroupNextNextOperationSpec: coreClient.OperationSpec = {
|
|
1030
|
-
path: "{nextLink}",
|
|
1031
|
-
httpMethod: "GET",
|
|
1032
|
-
responses: {
|
|
1033
|
-
200: {
|
|
1034
|
-
bodyMapper: Mappers.ApplicationListResult
|
|
1035
|
-
},
|
|
1036
|
-
default: {
|
|
1037
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1038
|
-
}
|
|
1039
|
-
},
|
|
1040
|
-
queryParameters: [Parameters.apiVersion],
|
|
1041
|
-
urlParameters: [
|
|
1042
|
-
Parameters.$host,
|
|
1043
|
-
Parameters.nextLink,
|
|
1044
|
-
Parameters.resourceGroupName,
|
|
1045
|
-
Parameters.subscriptionId
|
|
1046
|
-
],
|
|
1047
|
-
headerParameters: [Parameters.accept],
|
|
1048
|
-
serializer
|
|
1049
|
-
};
|
|
1050
|
-
const listBySubscriptionNextNextOperationSpec: coreClient.OperationSpec = {
|
|
1051
|
-
path: "{nextLink}",
|
|
1052
|
-
httpMethod: "GET",
|
|
1053
|
-
responses: {
|
|
1054
|
-
200: {
|
|
1055
|
-
bodyMapper: Mappers.ApplicationListResult
|
|
1056
|
-
},
|
|
1057
|
-
default: {
|
|
1058
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1059
|
-
}
|
|
1060
|
-
},
|
|
1061
|
-
queryParameters: [Parameters.apiVersion],
|
|
1062
|
-
urlParameters: [
|
|
1063
|
-
Parameters.$host,
|
|
1064
|
-
Parameters.nextLink,
|
|
1065
|
-
Parameters.subscriptionId
|
|
1066
|
-
],
|
|
1067
|
-
headerParameters: [Parameters.accept],
|
|
1068
|
-
serializer
|
|
1069
|
-
};
|