@azure/arm-managedapplications 1.0.2 → 2.0.0-alpha.20211011.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 +16 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +66 -72
- package/dist/index.js +2896 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/esm/applicationClient.d.ts +50 -0
- package/esm/applicationClient.d.ts.map +1 -0
- package/esm/applicationClient.js +190 -0
- package/esm/applicationClient.js.map +1 -0
- package/esm/applicationClientContext.d.ts +16 -0
- package/esm/applicationClientContext.d.ts.map +1 -0
- package/esm/applicationClientContext.js +49 -0
- package/esm/applicationClientContext.js.map +1 -0
- package/esm/coreClientLro.d.ts +26 -0
- package/esm/coreClientLro.d.ts.map +1 -0
- package/esm/coreClientLro.js +186 -0
- package/esm/coreClientLro.js.map +1 -0
- package/esm/index.d.ts +770 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +13 -0
- package/esm/index.js.map +1 -0
- package/esm/lro/azureAsyncPolling.d.ts +3 -0
- package/esm/lro/azureAsyncPolling.d.ts.map +1 -0
- package/esm/lro/azureAsyncPolling.js +67 -0
- package/esm/lro/azureAsyncPolling.js.map +1 -0
- package/esm/lro/bodyPolling.d.ts +8 -0
- package/esm/lro/bodyPolling.d.ts.map +1 -0
- package/esm/lro/bodyPolling.js +37 -0
- package/esm/lro/bodyPolling.js.map +1 -0
- package/esm/lro/index.d.ts +4 -0
- package/esm/lro/index.d.ts.map +1 -0
- package/esm/lro/index.js +12 -0
- package/esm/lro/index.js.map +1 -0
- package/esm/lro/locationPolling.d.ts +3 -0
- package/esm/lro/locationPolling.d.ts.map +1 -0
- package/esm/lro/locationPolling.js +19 -0
- package/esm/lro/locationPolling.js.map +1 -0
- package/esm/lro/lroEngine.d.ts +14 -0
- package/esm/lro/lroEngine.d.ts.map +1 -0
- package/esm/lro/lroEngine.js +41 -0
- package/esm/lro/lroEngine.js.map +1 -0
- package/esm/lro/models.d.ts +138 -0
- package/esm/lro/models.d.ts.map +1 -0
- package/esm/lro/models.js +14 -0
- package/esm/lro/models.js.map +1 -0
- package/esm/lro/operation.d.ts +36 -0
- package/esm/lro/operation.d.ts.map +1 -0
- package/esm/lro/operation.js +82 -0
- package/esm/lro/operation.js.map +1 -0
- package/esm/lro/passthrough.d.ts +3 -0
- package/esm/lro/passthrough.d.ts.map +1 -0
- package/esm/lro/passthrough.js +15 -0
- package/esm/lro/passthrough.js.map +1 -0
- package/esm/lro/requestUtils.d.ts +16 -0
- package/esm/lro/requestUtils.d.ts.map +1 -0
- package/esm/lro/requestUtils.js +73 -0
- package/esm/lro/requestUtils.js.map +1 -0
- package/esm/lro/stateMachine.d.ts +18 -0
- package/esm/lro/stateMachine.d.ts.map +1 -0
- package/esm/lro/stateMachine.js +84 -0
- package/esm/lro/stateMachine.js.map +1 -0
- package/esm/models/index.d.ts +360 -762
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +17 -2
- package/esm/models/index.js.map +1 -1
- package/esm/models/mappers.d.ts +18 -20
- package/esm/models/mappers.d.ts.map +1 -1
- package/esm/models/mappers.js +296 -318
- package/esm/models/mappers.js.map +1 -1
- package/esm/models/parameters.d.ts +15 -10
- package/esm/models/parameters.d.ts.map +1 -1
- package/esm/models/parameters.js +77 -49
- package/esm/models/parameters.js.map +1 -1
- package/esm/operations/applicationDefinitions.d.ts +128 -0
- package/esm/operations/applicationDefinitions.d.ts.map +1 -0
- package/esm/operations/applicationDefinitions.js +574 -0
- package/esm/operations/applicationDefinitions.js.map +1 -0
- package/esm/operations/applications.d.ts +182 -0
- package/esm/operations/applications.d.ts.map +1 -0
- package/esm/operations/applications.js +802 -0
- package/esm/operations/applications.js.map +1 -0
- package/esm/operations/index.d.ts +2 -2
- package/esm/operations/index.d.ts.map +1 -1
- package/esm/operations/index.js +5 -7
- package/esm/operations/index.js.map +1 -1
- package/esm/operationsInterfaces/applicationDefinitions.d.ts +95 -0
- package/esm/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
- package/esm/operationsInterfaces/applicationDefinitions.js +9 -0
- package/esm/operationsInterfaces/applicationDefinitions.js.map +1 -0
- package/esm/operationsInterfaces/applications.d.ts +128 -0
- package/esm/operationsInterfaces/applications.d.ts.map +1 -0
- package/esm/operationsInterfaces/applications.js +9 -0
- package/esm/operationsInterfaces/applications.js.map +1 -0
- package/esm/operationsInterfaces/index.d.ts +3 -0
- package/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/esm/operationsInterfaces/index.js +10 -0
- package/esm/operationsInterfaces/index.js.map +1 -0
- package/package.json +56 -16
- package/review/arm-managedapplications.api.md +443 -0
- package/rollup.config.js +181 -30
- package/src/applicationClient.ts +222 -0
- package/src/applicationClientContext.ts +70 -0
- package/src/coreClientLro.ts +323 -0
- package/src/index.ts +13 -0
- package/src/lro/azureAsyncPolling.ts +96 -0
- package/src/lro/bodyPolling.ts +54 -0
- package/src/lro/index.ts +26 -0
- package/src/lro/locationPolling.ts +30 -0
- package/src/lro/lroEngine.ts +61 -0
- package/src/lro/models.ts +173 -0
- package/src/lro/operation.ts +120 -0
- package/src/lro/passthrough.ts +23 -0
- package/src/lro/requestUtils.ts +105 -0
- package/src/lro/stateMachine.ts +138 -0
- package/src/models/index.ts +402 -794
- package/src/models/mappers.ts +290 -311
- package/src/models/parameters.ts +99 -50
- package/src/operations/applicationDefinitions.ts +810 -0
- package/src/operations/applications.ts +1069 -0
- package/src/operations/index.ts +5 -7
- package/src/operationsInterfaces/applicationDefinitions.ts +179 -0
- package/src/operationsInterfaces/applications.ts +225 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/tsconfig.json +3 -2
- package/dist/arm-managedapplications.js +0 -1855
- package/dist/arm-managedapplications.js.map +0 -1
- package/dist/arm-managedapplications.min.js +0 -1
- package/dist/arm-managedapplications.min.js.map +0 -1
- package/esm/managedApplicationClient.d.ts +0 -52
- package/esm/managedApplicationClient.d.ts.map +0 -1
- package/esm/managedApplicationClient.js +0 -87
- package/esm/managedApplicationClient.js.map +0 -1
- package/esm/managedApplicationClientContext.d.ts +0 -16
- package/esm/managedApplicationClientContext.d.ts.map +0 -1
- package/esm/managedApplicationClientContext.js +0 -56
- package/esm/managedApplicationClientContext.js.map +0 -1
- package/esm/models/applianceDefinitionsMappers.d.ts +0 -2
- package/esm/models/applianceDefinitionsMappers.d.ts.map +0 -1
- package/esm/models/applianceDefinitionsMappers.js +0 -9
- package/esm/models/applianceDefinitionsMappers.js.map +0 -1
- package/esm/models/appliancesMappers.d.ts +0 -2
- package/esm/models/appliancesMappers.d.ts.map +0 -1
- package/esm/models/appliancesMappers.js +0 -9
- package/esm/models/appliancesMappers.js.map +0 -1
- package/esm/operations/applianceDefinitions.d.ts +0 -167
- package/esm/operations/applianceDefinitions.d.ts.map +0 -1
- package/esm/operations/applianceDefinitions.js +0 -358
- package/esm/operations/applianceDefinitions.js.map +0 -1
- package/esm/operations/appliances.d.ts +0 -247
- package/esm/operations/appliances.d.ts.map +0 -1
- package/esm/operations/appliances.js +0 -482
- package/esm/operations/appliances.js.map +0 -1
- package/src/managedApplicationClient.ts +0 -138
- package/src/managedApplicationClientContext.ts +0 -62
- package/src/models/applianceDefinitionsMappers.ts +0 -24
- package/src/models/appliancesMappers.ts +0 -24
- package/src/operations/applianceDefinitions.ts +0 -492
- package/src/operations/appliances.ts +0 -716
|
@@ -0,0 +1,810 @@
|
|
|
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 "@azure/core-paging";
|
|
10
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
|
+
import { ApplicationDefinitions } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { ApplicationClientContext } from "../applicationClientContext";
|
|
16
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
17
|
+
import { LroEngine } from "../lro";
|
|
18
|
+
import { CoreClientLro, shouldDeserializeLro } from "../coreClientLro";
|
|
19
|
+
import {
|
|
20
|
+
ApplicationDefinition,
|
|
21
|
+
ApplicationDefinitionsListByResourceGroupNextOptionalParams,
|
|
22
|
+
ApplicationDefinitionsListByResourceGroupOptionalParams,
|
|
23
|
+
ApplicationDefinitionsListByResourceGroupNextNextOptionalParams,
|
|
24
|
+
ApplicationDefinitionsGetOptionalParams,
|
|
25
|
+
ApplicationDefinitionsGetResponse,
|
|
26
|
+
ApplicationDefinitionsDeleteOptionalParams,
|
|
27
|
+
ApplicationDefinitionsCreateOrUpdateOptionalParams,
|
|
28
|
+
ApplicationDefinitionsCreateOrUpdateResponse,
|
|
29
|
+
ApplicationDefinitionsListByResourceGroupResponse,
|
|
30
|
+
ApplicationDefinitionsGetByIdOptionalParams,
|
|
31
|
+
ApplicationDefinitionsGetByIdResponse,
|
|
32
|
+
ApplicationDefinitionsDeleteByIdOptionalParams,
|
|
33
|
+
ApplicationDefinitionsCreateOrUpdateByIdOptionalParams,
|
|
34
|
+
ApplicationDefinitionsCreateOrUpdateByIdResponse,
|
|
35
|
+
ApplicationDefinitionsListByResourceGroupNextResponse,
|
|
36
|
+
ApplicationDefinitionsListByResourceGroupNextNextResponse
|
|
37
|
+
} from "../models";
|
|
38
|
+
|
|
39
|
+
/// <reference lib="esnext.asynciterable" />
|
|
40
|
+
/** Class representing a ApplicationDefinitions. */
|
|
41
|
+
export class ApplicationDefinitionsImpl implements ApplicationDefinitions {
|
|
42
|
+
private readonly client: ApplicationClientContext;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initialize a new instance of the class ApplicationDefinitions class.
|
|
46
|
+
* @param client Reference to the service client
|
|
47
|
+
*/
|
|
48
|
+
constructor(client: ApplicationClientContext) {
|
|
49
|
+
this.client = client;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Lists the managed application definitions in a resource group.
|
|
54
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
public listByResourceGroup(
|
|
58
|
+
resourceGroupName: string,
|
|
59
|
+
options?: ApplicationDefinitionsListByResourceGroupOptionalParams
|
|
60
|
+
): PagedAsyncIterableIterator<ApplicationDefinition> {
|
|
61
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
62
|
+
return {
|
|
63
|
+
next() {
|
|
64
|
+
return iter.next();
|
|
65
|
+
},
|
|
66
|
+
[Symbol.asyncIterator]() {
|
|
67
|
+
return this;
|
|
68
|
+
},
|
|
69
|
+
byPage: () => {
|
|
70
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private async *listByResourceGroupPagingPage(
|
|
76
|
+
resourceGroupName: string,
|
|
77
|
+
options?: ApplicationDefinitionsListByResourceGroupOptionalParams
|
|
78
|
+
): AsyncIterableIterator<ApplicationDefinition[]> {
|
|
79
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
80
|
+
yield result.value || [];
|
|
81
|
+
let continuationToken = result.nextLink;
|
|
82
|
+
while (continuationToken) {
|
|
83
|
+
result = await this._listByResourceGroupNext(
|
|
84
|
+
resourceGroupName,
|
|
85
|
+
continuationToken,
|
|
86
|
+
options
|
|
87
|
+
);
|
|
88
|
+
continuationToken = result.nextLink;
|
|
89
|
+
yield result.value || [];
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
private async *listByResourceGroupPagingAll(
|
|
94
|
+
resourceGroupName: string,
|
|
95
|
+
options?: ApplicationDefinitionsListByResourceGroupOptionalParams
|
|
96
|
+
): AsyncIterableIterator<ApplicationDefinition> {
|
|
97
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
98
|
+
resourceGroupName,
|
|
99
|
+
options
|
|
100
|
+
)) {
|
|
101
|
+
yield* page;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
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
|
+
/**
|
|
176
|
+
* Gets the managed application definition.
|
|
177
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
178
|
+
* @param applicationDefinitionName The name of the managed application definition.
|
|
179
|
+
* @param options The options parameters.
|
|
180
|
+
*/
|
|
181
|
+
get(
|
|
182
|
+
resourceGroupName: string,
|
|
183
|
+
applicationDefinitionName: string,
|
|
184
|
+
options?: ApplicationDefinitionsGetOptionalParams
|
|
185
|
+
): Promise<ApplicationDefinitionsGetResponse> {
|
|
186
|
+
return this.client.sendOperationRequest(
|
|
187
|
+
{ resourceGroupName, applicationDefinitionName, options },
|
|
188
|
+
getOperationSpec
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Deletes the managed application definition.
|
|
194
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
195
|
+
* @param applicationDefinitionName The name of the managed application definition to delete.
|
|
196
|
+
* @param options The options parameters.
|
|
197
|
+
*/
|
|
198
|
+
async beginDelete(
|
|
199
|
+
resourceGroupName: string,
|
|
200
|
+
applicationDefinitionName: string,
|
|
201
|
+
options?: ApplicationDefinitionsDeleteOptionalParams
|
|
202
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
203
|
+
const directSendOperation = async (
|
|
204
|
+
args: coreClient.OperationArguments,
|
|
205
|
+
spec: coreClient.OperationSpec
|
|
206
|
+
): Promise<void> => {
|
|
207
|
+
return this.client.sendOperationRequest(args, spec);
|
|
208
|
+
};
|
|
209
|
+
const sendOperation = async (
|
|
210
|
+
args: coreClient.OperationArguments,
|
|
211
|
+
spec: coreClient.OperationSpec
|
|
212
|
+
) => {
|
|
213
|
+
let currentRawResponse:
|
|
214
|
+
| coreClient.FullOperationResponse
|
|
215
|
+
| undefined = undefined;
|
|
216
|
+
const providedCallback = args.options?.onResponse;
|
|
217
|
+
const callback: coreClient.RawResponseCallback = (
|
|
218
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
219
|
+
flatResponse: unknown
|
|
220
|
+
) => {
|
|
221
|
+
currentRawResponse = rawResponse;
|
|
222
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
223
|
+
};
|
|
224
|
+
const updatedArgs = {
|
|
225
|
+
...args,
|
|
226
|
+
options: {
|
|
227
|
+
...args.options,
|
|
228
|
+
onResponse: callback
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
232
|
+
return {
|
|
233
|
+
flatResponse,
|
|
234
|
+
rawResponse: {
|
|
235
|
+
statusCode: currentRawResponse!.status,
|
|
236
|
+
body: currentRawResponse!.parsedBody,
|
|
237
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
const lro = new CoreClientLro(
|
|
243
|
+
sendOperation,
|
|
244
|
+
{ resourceGroupName, applicationDefinitionName, options },
|
|
245
|
+
deleteOperationSpec
|
|
246
|
+
);
|
|
247
|
+
return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Deletes the managed application definition.
|
|
252
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
253
|
+
* @param applicationDefinitionName The name of the managed application definition to delete.
|
|
254
|
+
* @param options The options parameters.
|
|
255
|
+
*/
|
|
256
|
+
async beginDeleteAndWait(
|
|
257
|
+
resourceGroupName: string,
|
|
258
|
+
applicationDefinitionName: string,
|
|
259
|
+
options?: ApplicationDefinitionsDeleteOptionalParams
|
|
260
|
+
): Promise<void> {
|
|
261
|
+
const poller = await this.beginDelete(
|
|
262
|
+
resourceGroupName,
|
|
263
|
+
applicationDefinitionName,
|
|
264
|
+
options
|
|
265
|
+
);
|
|
266
|
+
return poller.pollUntilDone();
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Creates a new managed application definition.
|
|
271
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
272
|
+
* @param applicationDefinitionName The name of the managed application definition.
|
|
273
|
+
* @param parameters Parameters supplied to the create or update an managed application definition.
|
|
274
|
+
* @param options The options parameters.
|
|
275
|
+
*/
|
|
276
|
+
async beginCreateOrUpdate(
|
|
277
|
+
resourceGroupName: string,
|
|
278
|
+
applicationDefinitionName: string,
|
|
279
|
+
parameters: ApplicationDefinition,
|
|
280
|
+
options?: ApplicationDefinitionsCreateOrUpdateOptionalParams
|
|
281
|
+
): Promise<
|
|
282
|
+
PollerLike<
|
|
283
|
+
PollOperationState<ApplicationDefinitionsCreateOrUpdateResponse>,
|
|
284
|
+
ApplicationDefinitionsCreateOrUpdateResponse
|
|
285
|
+
>
|
|
286
|
+
> {
|
|
287
|
+
const directSendOperation = async (
|
|
288
|
+
args: coreClient.OperationArguments,
|
|
289
|
+
spec: coreClient.OperationSpec
|
|
290
|
+
): Promise<ApplicationDefinitionsCreateOrUpdateResponse> => {
|
|
291
|
+
return this.client.sendOperationRequest(args, spec);
|
|
292
|
+
};
|
|
293
|
+
const sendOperation = async (
|
|
294
|
+
args: coreClient.OperationArguments,
|
|
295
|
+
spec: coreClient.OperationSpec
|
|
296
|
+
) => {
|
|
297
|
+
let currentRawResponse:
|
|
298
|
+
| coreClient.FullOperationResponse
|
|
299
|
+
| undefined = undefined;
|
|
300
|
+
const providedCallback = args.options?.onResponse;
|
|
301
|
+
const callback: coreClient.RawResponseCallback = (
|
|
302
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
303
|
+
flatResponse: unknown
|
|
304
|
+
) => {
|
|
305
|
+
currentRawResponse = rawResponse;
|
|
306
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
307
|
+
};
|
|
308
|
+
const updatedArgs = {
|
|
309
|
+
...args,
|
|
310
|
+
options: {
|
|
311
|
+
...args.options,
|
|
312
|
+
onResponse: callback
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
316
|
+
return {
|
|
317
|
+
flatResponse,
|
|
318
|
+
rawResponse: {
|
|
319
|
+
statusCode: currentRawResponse!.status,
|
|
320
|
+
body: currentRawResponse!.parsedBody,
|
|
321
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
const lro = new CoreClientLro(
|
|
327
|
+
sendOperation,
|
|
328
|
+
{ resourceGroupName, applicationDefinitionName, parameters, options },
|
|
329
|
+
createOrUpdateOperationSpec
|
|
330
|
+
);
|
|
331
|
+
return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Creates a new managed application definition.
|
|
336
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
337
|
+
* @param applicationDefinitionName The name of the managed application definition.
|
|
338
|
+
* @param parameters Parameters supplied to the create or update an managed application definition.
|
|
339
|
+
* @param options The options parameters.
|
|
340
|
+
*/
|
|
341
|
+
async beginCreateOrUpdateAndWait(
|
|
342
|
+
resourceGroupName: string,
|
|
343
|
+
applicationDefinitionName: string,
|
|
344
|
+
parameters: ApplicationDefinition,
|
|
345
|
+
options?: ApplicationDefinitionsCreateOrUpdateOptionalParams
|
|
346
|
+
): Promise<ApplicationDefinitionsCreateOrUpdateResponse> {
|
|
347
|
+
const poller = await this.beginCreateOrUpdate(
|
|
348
|
+
resourceGroupName,
|
|
349
|
+
applicationDefinitionName,
|
|
350
|
+
parameters,
|
|
351
|
+
options
|
|
352
|
+
);
|
|
353
|
+
return poller.pollUntilDone();
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Lists the managed application definitions in a resource group.
|
|
358
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
359
|
+
* @param options The options parameters.
|
|
360
|
+
*/
|
|
361
|
+
private _listByResourceGroup(
|
|
362
|
+
resourceGroupName: string,
|
|
363
|
+
options?: ApplicationDefinitionsListByResourceGroupOptionalParams
|
|
364
|
+
): Promise<ApplicationDefinitionsListByResourceGroupResponse> {
|
|
365
|
+
return this.client.sendOperationRequest(
|
|
366
|
+
{ resourceGroupName, options },
|
|
367
|
+
listByResourceGroupOperationSpec
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Gets the managed application definition.
|
|
373
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
374
|
+
* @param applicationDefinitionName The name of the managed application definition.
|
|
375
|
+
* @param options The options parameters.
|
|
376
|
+
*/
|
|
377
|
+
getById(
|
|
378
|
+
resourceGroupName: string,
|
|
379
|
+
applicationDefinitionName: string,
|
|
380
|
+
options?: ApplicationDefinitionsGetByIdOptionalParams
|
|
381
|
+
): Promise<ApplicationDefinitionsGetByIdResponse> {
|
|
382
|
+
return this.client.sendOperationRequest(
|
|
383
|
+
{ resourceGroupName, applicationDefinitionName, options },
|
|
384
|
+
getByIdOperationSpec
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Deletes the managed application definition.
|
|
390
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
391
|
+
* @param applicationDefinitionName The name of the managed application definition.
|
|
392
|
+
* @param options The options parameters.
|
|
393
|
+
*/
|
|
394
|
+
async beginDeleteById(
|
|
395
|
+
resourceGroupName: string,
|
|
396
|
+
applicationDefinitionName: string,
|
|
397
|
+
options?: ApplicationDefinitionsDeleteByIdOptionalParams
|
|
398
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
399
|
+
const directSendOperation = async (
|
|
400
|
+
args: coreClient.OperationArguments,
|
|
401
|
+
spec: coreClient.OperationSpec
|
|
402
|
+
): Promise<void> => {
|
|
403
|
+
return this.client.sendOperationRequest(args, spec);
|
|
404
|
+
};
|
|
405
|
+
const sendOperation = async (
|
|
406
|
+
args: coreClient.OperationArguments,
|
|
407
|
+
spec: coreClient.OperationSpec
|
|
408
|
+
) => {
|
|
409
|
+
let currentRawResponse:
|
|
410
|
+
| coreClient.FullOperationResponse
|
|
411
|
+
| undefined = undefined;
|
|
412
|
+
const providedCallback = args.options?.onResponse;
|
|
413
|
+
const callback: coreClient.RawResponseCallback = (
|
|
414
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
415
|
+
flatResponse: unknown
|
|
416
|
+
) => {
|
|
417
|
+
currentRawResponse = rawResponse;
|
|
418
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
419
|
+
};
|
|
420
|
+
const updatedArgs = {
|
|
421
|
+
...args,
|
|
422
|
+
options: {
|
|
423
|
+
...args.options,
|
|
424
|
+
onResponse: callback
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
428
|
+
return {
|
|
429
|
+
flatResponse,
|
|
430
|
+
rawResponse: {
|
|
431
|
+
statusCode: currentRawResponse!.status,
|
|
432
|
+
body: currentRawResponse!.parsedBody,
|
|
433
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
const lro = new CoreClientLro(
|
|
439
|
+
sendOperation,
|
|
440
|
+
{ resourceGroupName, applicationDefinitionName, options },
|
|
441
|
+
deleteByIdOperationSpec
|
|
442
|
+
);
|
|
443
|
+
return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Deletes the managed application definition.
|
|
448
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
449
|
+
* @param applicationDefinitionName The name of the managed application definition.
|
|
450
|
+
* @param options The options parameters.
|
|
451
|
+
*/
|
|
452
|
+
async beginDeleteByIdAndWait(
|
|
453
|
+
resourceGroupName: string,
|
|
454
|
+
applicationDefinitionName: string,
|
|
455
|
+
options?: ApplicationDefinitionsDeleteByIdOptionalParams
|
|
456
|
+
): Promise<void> {
|
|
457
|
+
const poller = await this.beginDeleteById(
|
|
458
|
+
resourceGroupName,
|
|
459
|
+
applicationDefinitionName,
|
|
460
|
+
options
|
|
461
|
+
);
|
|
462
|
+
return poller.pollUntilDone();
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Creates a new managed application definition.
|
|
467
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
468
|
+
* @param applicationDefinitionName The name of the managed application definition.
|
|
469
|
+
* @param parameters Parameters supplied to the create or update a managed application definition.
|
|
470
|
+
* @param options The options parameters.
|
|
471
|
+
*/
|
|
472
|
+
async beginCreateOrUpdateById(
|
|
473
|
+
resourceGroupName: string,
|
|
474
|
+
applicationDefinitionName: string,
|
|
475
|
+
parameters: ApplicationDefinition,
|
|
476
|
+
options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams
|
|
477
|
+
): Promise<
|
|
478
|
+
PollerLike<
|
|
479
|
+
PollOperationState<ApplicationDefinitionsCreateOrUpdateByIdResponse>,
|
|
480
|
+
ApplicationDefinitionsCreateOrUpdateByIdResponse
|
|
481
|
+
>
|
|
482
|
+
> {
|
|
483
|
+
const directSendOperation = async (
|
|
484
|
+
args: coreClient.OperationArguments,
|
|
485
|
+
spec: coreClient.OperationSpec
|
|
486
|
+
): Promise<ApplicationDefinitionsCreateOrUpdateByIdResponse> => {
|
|
487
|
+
return this.client.sendOperationRequest(args, spec);
|
|
488
|
+
};
|
|
489
|
+
const sendOperation = async (
|
|
490
|
+
args: coreClient.OperationArguments,
|
|
491
|
+
spec: coreClient.OperationSpec
|
|
492
|
+
) => {
|
|
493
|
+
let currentRawResponse:
|
|
494
|
+
| coreClient.FullOperationResponse
|
|
495
|
+
| undefined = undefined;
|
|
496
|
+
const providedCallback = args.options?.onResponse;
|
|
497
|
+
const callback: coreClient.RawResponseCallback = (
|
|
498
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
499
|
+
flatResponse: unknown
|
|
500
|
+
) => {
|
|
501
|
+
currentRawResponse = rawResponse;
|
|
502
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
503
|
+
};
|
|
504
|
+
const updatedArgs = {
|
|
505
|
+
...args,
|
|
506
|
+
options: {
|
|
507
|
+
...args.options,
|
|
508
|
+
onResponse: callback
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
512
|
+
return {
|
|
513
|
+
flatResponse,
|
|
514
|
+
rawResponse: {
|
|
515
|
+
statusCode: currentRawResponse!.status,
|
|
516
|
+
body: currentRawResponse!.parsedBody,
|
|
517
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
const lro = new CoreClientLro(
|
|
523
|
+
sendOperation,
|
|
524
|
+
{ resourceGroupName, applicationDefinitionName, parameters, options },
|
|
525
|
+
createOrUpdateByIdOperationSpec
|
|
526
|
+
);
|
|
527
|
+
return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Creates a new managed application definition.
|
|
532
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
533
|
+
* @param applicationDefinitionName The name of the managed application definition.
|
|
534
|
+
* @param parameters Parameters supplied to the create or update a managed application definition.
|
|
535
|
+
* @param options The options parameters.
|
|
536
|
+
*/
|
|
537
|
+
async beginCreateOrUpdateByIdAndWait(
|
|
538
|
+
resourceGroupName: string,
|
|
539
|
+
applicationDefinitionName: string,
|
|
540
|
+
parameters: ApplicationDefinition,
|
|
541
|
+
options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams
|
|
542
|
+
): Promise<ApplicationDefinitionsCreateOrUpdateByIdResponse> {
|
|
543
|
+
const poller = await this.beginCreateOrUpdateById(
|
|
544
|
+
resourceGroupName,
|
|
545
|
+
applicationDefinitionName,
|
|
546
|
+
parameters,
|
|
547
|
+
options
|
|
548
|
+
);
|
|
549
|
+
return poller.pollUntilDone();
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* ListByResourceGroupNext
|
|
554
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
555
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
556
|
+
* @param options The options parameters.
|
|
557
|
+
*/
|
|
558
|
+
private _listByResourceGroupNext(
|
|
559
|
+
resourceGroupName: string,
|
|
560
|
+
nextLink: string,
|
|
561
|
+
options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams
|
|
562
|
+
): Promise<ApplicationDefinitionsListByResourceGroupNextResponse> {
|
|
563
|
+
return this.client.sendOperationRequest(
|
|
564
|
+
{ resourceGroupName, nextLink, options },
|
|
565
|
+
listByResourceGroupNextOperationSpec
|
|
566
|
+
);
|
|
567
|
+
}
|
|
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
|
+
}
|
|
587
|
+
// Operation Specifications
|
|
588
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
589
|
+
|
|
590
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
591
|
+
path:
|
|
592
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
|
|
593
|
+
httpMethod: "GET",
|
|
594
|
+
responses: {
|
|
595
|
+
200: {
|
|
596
|
+
bodyMapper: Mappers.ApplicationDefinition
|
|
597
|
+
},
|
|
598
|
+
404: {},
|
|
599
|
+
default: {
|
|
600
|
+
bodyMapper: Mappers.ErrorResponse
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
queryParameters: [Parameters.apiVersion],
|
|
604
|
+
urlParameters: [
|
|
605
|
+
Parameters.$host,
|
|
606
|
+
Parameters.resourceGroupName,
|
|
607
|
+
Parameters.subscriptionId,
|
|
608
|
+
Parameters.applicationDefinitionName
|
|
609
|
+
],
|
|
610
|
+
headerParameters: [Parameters.accept],
|
|
611
|
+
serializer
|
|
612
|
+
};
|
|
613
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
614
|
+
path:
|
|
615
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
|
|
616
|
+
httpMethod: "DELETE",
|
|
617
|
+
responses: {
|
|
618
|
+
200: {},
|
|
619
|
+
201: {},
|
|
620
|
+
202: {},
|
|
621
|
+
204: {},
|
|
622
|
+
default: {
|
|
623
|
+
bodyMapper: Mappers.ErrorResponse
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
queryParameters: [Parameters.apiVersion],
|
|
627
|
+
urlParameters: [
|
|
628
|
+
Parameters.$host,
|
|
629
|
+
Parameters.resourceGroupName,
|
|
630
|
+
Parameters.subscriptionId,
|
|
631
|
+
Parameters.applicationDefinitionName
|
|
632
|
+
],
|
|
633
|
+
headerParameters: [Parameters.accept],
|
|
634
|
+
serializer
|
|
635
|
+
};
|
|
636
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
637
|
+
path:
|
|
638
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
|
|
639
|
+
httpMethod: "PUT",
|
|
640
|
+
responses: {
|
|
641
|
+
200: {
|
|
642
|
+
bodyMapper: Mappers.ApplicationDefinition
|
|
643
|
+
},
|
|
644
|
+
201: {
|
|
645
|
+
bodyMapper: Mappers.ApplicationDefinition
|
|
646
|
+
},
|
|
647
|
+
202: {
|
|
648
|
+
bodyMapper: Mappers.ApplicationDefinition
|
|
649
|
+
},
|
|
650
|
+
204: {
|
|
651
|
+
bodyMapper: Mappers.ApplicationDefinition
|
|
652
|
+
},
|
|
653
|
+
default: {
|
|
654
|
+
bodyMapper: Mappers.ErrorResponse
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
requestBody: Parameters.parameters3,
|
|
658
|
+
queryParameters: [Parameters.apiVersion],
|
|
659
|
+
urlParameters: [
|
|
660
|
+
Parameters.$host,
|
|
661
|
+
Parameters.resourceGroupName,
|
|
662
|
+
Parameters.subscriptionId,
|
|
663
|
+
Parameters.applicationDefinitionName
|
|
664
|
+
],
|
|
665
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
666
|
+
mediaType: "json",
|
|
667
|
+
serializer
|
|
668
|
+
};
|
|
669
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
670
|
+
path:
|
|
671
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions",
|
|
672
|
+
httpMethod: "GET",
|
|
673
|
+
responses: {
|
|
674
|
+
200: {
|
|
675
|
+
bodyMapper: Mappers.ApplicationDefinitionListResult
|
|
676
|
+
},
|
|
677
|
+
default: {
|
|
678
|
+
bodyMapper: Mappers.ErrorResponse
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
queryParameters: [Parameters.apiVersion],
|
|
682
|
+
urlParameters: [
|
|
683
|
+
Parameters.$host,
|
|
684
|
+
Parameters.resourceGroupName,
|
|
685
|
+
Parameters.subscriptionId
|
|
686
|
+
],
|
|
687
|
+
headerParameters: [Parameters.accept],
|
|
688
|
+
serializer
|
|
689
|
+
};
|
|
690
|
+
const getByIdOperationSpec: coreClient.OperationSpec = {
|
|
691
|
+
path:
|
|
692
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
|
|
693
|
+
httpMethod: "GET",
|
|
694
|
+
responses: {
|
|
695
|
+
200: {
|
|
696
|
+
bodyMapper: Mappers.ApplicationDefinition
|
|
697
|
+
},
|
|
698
|
+
404: {},
|
|
699
|
+
default: {
|
|
700
|
+
bodyMapper: Mappers.ErrorResponse
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
queryParameters: [Parameters.apiVersion],
|
|
704
|
+
urlParameters: [
|
|
705
|
+
Parameters.$host,
|
|
706
|
+
Parameters.resourceGroupName,
|
|
707
|
+
Parameters.subscriptionId,
|
|
708
|
+
Parameters.applicationDefinitionName
|
|
709
|
+
],
|
|
710
|
+
headerParameters: [Parameters.accept],
|
|
711
|
+
serializer
|
|
712
|
+
};
|
|
713
|
+
const deleteByIdOperationSpec: coreClient.OperationSpec = {
|
|
714
|
+
path:
|
|
715
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
|
|
716
|
+
httpMethod: "DELETE",
|
|
717
|
+
responses: {
|
|
718
|
+
200: {},
|
|
719
|
+
201: {},
|
|
720
|
+
202: {},
|
|
721
|
+
204: {},
|
|
722
|
+
default: {
|
|
723
|
+
bodyMapper: Mappers.ErrorResponse
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
queryParameters: [Parameters.apiVersion],
|
|
727
|
+
urlParameters: [
|
|
728
|
+
Parameters.$host,
|
|
729
|
+
Parameters.resourceGroupName,
|
|
730
|
+
Parameters.subscriptionId,
|
|
731
|
+
Parameters.applicationDefinitionName
|
|
732
|
+
],
|
|
733
|
+
headerParameters: [Parameters.accept],
|
|
734
|
+
serializer
|
|
735
|
+
};
|
|
736
|
+
const createOrUpdateByIdOperationSpec: coreClient.OperationSpec = {
|
|
737
|
+
path:
|
|
738
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
|
|
739
|
+
httpMethod: "PUT",
|
|
740
|
+
responses: {
|
|
741
|
+
200: {
|
|
742
|
+
bodyMapper: Mappers.ApplicationDefinition
|
|
743
|
+
},
|
|
744
|
+
201: {
|
|
745
|
+
bodyMapper: Mappers.ApplicationDefinition
|
|
746
|
+
},
|
|
747
|
+
202: {
|
|
748
|
+
bodyMapper: Mappers.ApplicationDefinition
|
|
749
|
+
},
|
|
750
|
+
204: {
|
|
751
|
+
bodyMapper: Mappers.ApplicationDefinition
|
|
752
|
+
},
|
|
753
|
+
default: {
|
|
754
|
+
bodyMapper: Mappers.ErrorResponse
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
requestBody: Parameters.parameters3,
|
|
758
|
+
queryParameters: [Parameters.apiVersion],
|
|
759
|
+
urlParameters: [
|
|
760
|
+
Parameters.$host,
|
|
761
|
+
Parameters.resourceGroupName,
|
|
762
|
+
Parameters.subscriptionId,
|
|
763
|
+
Parameters.applicationDefinitionName
|
|
764
|
+
],
|
|
765
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
766
|
+
mediaType: "json",
|
|
767
|
+
serializer
|
|
768
|
+
};
|
|
769
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
770
|
+
path: "{nextLink}",
|
|
771
|
+
httpMethod: "GET",
|
|
772
|
+
responses: {
|
|
773
|
+
200: {
|
|
774
|
+
bodyMapper: Mappers.ApplicationDefinitionListResult
|
|
775
|
+
},
|
|
776
|
+
default: {
|
|
777
|
+
bodyMapper: Mappers.ErrorResponse
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
queryParameters: [Parameters.apiVersion],
|
|
781
|
+
urlParameters: [
|
|
782
|
+
Parameters.$host,
|
|
783
|
+
Parameters.nextLink,
|
|
784
|
+
Parameters.resourceGroupName,
|
|
785
|
+
Parameters.subscriptionId
|
|
786
|
+
],
|
|
787
|
+
headerParameters: [Parameters.accept],
|
|
788
|
+
serializer
|
|
789
|
+
};
|
|
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
|
+
};
|