@azure/arm-managedapplications 2.0.0-beta.1 → 2.0.1-alpha.20220105.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 +15 -10
- 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 +24 -20
- 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/package.json
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for ApplicationClient.",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.1-alpha.20220105.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=12.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@azure/core-lro": "^2.2.0",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
|
-
"@azure/core-paging": "^1.
|
|
13
|
+
"@azure/core-paging": "^1.2.0",
|
|
14
14
|
"@azure/core-client": "^1.0.0",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
16
|
"@azure/core-rest-pipeline": "^1.1.0",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"main": "./dist/index.js",
|
|
28
|
-
"module": "./esm/index.js",
|
|
29
|
-
"types": "./
|
|
28
|
+
"module": "./dist-esm/src/index.js",
|
|
29
|
+
"types": "./types/arm-managedapplications.d.ts",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@microsoft/api-extractor": "^7.18.11",
|
|
32
32
|
"@rollup/plugin-commonjs": "11.0.2",
|
|
@@ -36,9 +36,13 @@
|
|
|
36
36
|
"mkdirp": "^1.0.4",
|
|
37
37
|
"rollup": "^1.16.3",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.4.2",
|
|
39
|
-
"rollup-plugin-node-resolve": "^3.4.0",
|
|
40
39
|
"typescript": "~4.2.0",
|
|
41
|
-
"uglify-js": "^3.4.9"
|
|
40
|
+
"uglify-js": "^3.4.9",
|
|
41
|
+
"rimraf": "^3.0.0",
|
|
42
|
+
"@azure/identity": "^2.0.1",
|
|
43
|
+
"@azure-tools/test-recorder": "^1.0.0",
|
|
44
|
+
"mocha": "^7.1.1",
|
|
45
|
+
"cross-env": "^7.0.2"
|
|
42
46
|
},
|
|
43
47
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managedapplications/arm-managedapplications",
|
|
44
48
|
"repository": {
|
|
@@ -53,27 +57,28 @@
|
|
|
53
57
|
"dist/**/*.js.map",
|
|
54
58
|
"dist/**/*.d.ts",
|
|
55
59
|
"dist/**/*.d.ts.map",
|
|
56
|
-
"esm/**/*.js",
|
|
57
|
-
"esm/**/*.js.map",
|
|
58
|
-
"esm/**/*.d.ts",
|
|
59
|
-
"esm/**/*.d.ts.map",
|
|
60
|
+
"dist-esm/**/*.js",
|
|
61
|
+
"dist-esm/**/*.js.map",
|
|
62
|
+
"dist-esm/**/*.d.ts",
|
|
63
|
+
"dist-esm/**/*.d.ts.map",
|
|
60
64
|
"src/**/*.ts",
|
|
61
65
|
"README.md",
|
|
62
66
|
"LICENSE",
|
|
63
67
|
"rollup.config.js",
|
|
64
68
|
"tsconfig.json",
|
|
65
69
|
"review/*",
|
|
66
|
-
"CHANGELOG.md"
|
|
70
|
+
"CHANGELOG.md",
|
|
71
|
+
"types/*"
|
|
67
72
|
],
|
|
68
73
|
"scripts": {
|
|
69
|
-
"build": "tsc && rollup -c
|
|
74
|
+
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
|
70
75
|
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
71
76
|
"prepack": "npm run build",
|
|
72
77
|
"pack": "npm pack 2>&1",
|
|
73
|
-
"extract-api": "
|
|
78
|
+
"extract-api": "api-extractor run --local",
|
|
74
79
|
"lint": "echo skipped",
|
|
75
80
|
"audit": "echo skipped",
|
|
76
|
-
"clean": "
|
|
81
|
+
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
77
82
|
"build:node": "echo skipped",
|
|
78
83
|
"build:browser": "echo skipped",
|
|
79
84
|
"build:test": "echo skipped",
|
|
@@ -81,16 +86,15 @@
|
|
|
81
86
|
"check-format": "echo skipped",
|
|
82
87
|
"execute:samples": "echo skipped",
|
|
83
88
|
"format": "echo skipped",
|
|
84
|
-
"test": "
|
|
85
|
-
"prebuild": "echo skipped",
|
|
89
|
+
"test": "npm run integration-test",
|
|
86
90
|
"test:node": "echo skipped",
|
|
87
91
|
"test:browser": "echo skipped",
|
|
88
|
-
"unit-test": "
|
|
89
|
-
"unit-test:node": "
|
|
92
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
93
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
90
94
|
"unit-test:browser": "echo skipped",
|
|
95
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
+
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
|
|
91
97
|
"integration-test:browser": "echo skipped",
|
|
92
|
-
"integration-test:node": "echo skipped",
|
|
93
|
-
"integration-test": "echo skipped",
|
|
94
98
|
"docs": "echo skipped"
|
|
95
99
|
},
|
|
96
100
|
"sideEffects": false,
|
|
@@ -32,48 +32,21 @@ export interface ApplicationArtifact {
|
|
|
32
32
|
export type ApplicationArtifactType = "Template" | "Custom";
|
|
33
33
|
|
|
34
34
|
// @public (undocumented)
|
|
35
|
-
export class ApplicationClient extends
|
|
36
|
-
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApplicationClientOptionalParams);
|
|
37
|
-
// (undocumented)
|
|
38
|
-
applicationDefinitions: ApplicationDefinitions;
|
|
39
|
-
// (undocumented)
|
|
40
|
-
applications: Applications;
|
|
41
|
-
listOperations(options?: ApplicationClientListOperationsOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
42
|
-
listOperationsNext(nextLink: string, options?: ApplicationClientListOperationsNextOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// @public (undocumented)
|
|
46
|
-
export class ApplicationClientContext extends coreClient.ServiceClient {
|
|
35
|
+
export class ApplicationClient extends coreClient.ServiceClient {
|
|
47
36
|
// (undocumented)
|
|
48
37
|
$host: string;
|
|
49
38
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApplicationClientOptionalParams);
|
|
50
39
|
// (undocumented)
|
|
51
40
|
apiVersion: string;
|
|
52
41
|
// (undocumented)
|
|
42
|
+
applicationDefinitions: ApplicationDefinitions;
|
|
43
|
+
// (undocumented)
|
|
44
|
+
applications: Applications;
|
|
45
|
+
listOperations(options?: ListOperationsOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
46
|
+
// (undocumented)
|
|
53
47
|
subscriptionId: string;
|
|
54
48
|
}
|
|
55
49
|
|
|
56
|
-
// @public
|
|
57
|
-
export interface ApplicationClientListOperationsNextNextOptionalParams extends coreClient.OperationOptions {
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// @public
|
|
61
|
-
export type ApplicationClientListOperationsNextNextResponse = OperationListResult;
|
|
62
|
-
|
|
63
|
-
// @public
|
|
64
|
-
export interface ApplicationClientListOperationsNextOptionalParams extends coreClient.OperationOptions {
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// @public
|
|
68
|
-
export type ApplicationClientListOperationsNextResponse = OperationListResult;
|
|
69
|
-
|
|
70
|
-
// @public
|
|
71
|
-
export interface ApplicationClientListOperationsOptionalParams extends coreClient.OperationOptions {
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// @public
|
|
75
|
-
export type ApplicationClientListOperationsResponse = OperationListResult;
|
|
76
|
-
|
|
77
50
|
// @public
|
|
78
51
|
export interface ApplicationClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
79
52
|
$host?: string;
|
|
@@ -113,7 +86,6 @@ export interface ApplicationDefinitions {
|
|
|
113
86
|
get(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsGetOptionalParams): Promise<ApplicationDefinitionsGetResponse>;
|
|
114
87
|
getById(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsGetByIdOptionalParams): Promise<ApplicationDefinitionsGetByIdResponse>;
|
|
115
88
|
listByResourceGroup(resourceGroupName: string, options?: ApplicationDefinitionsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ApplicationDefinition>;
|
|
116
|
-
listByResourceGroupNext(resourceGroupName: string, nextLink: string, options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams): PagedAsyncIterableIterator<ApplicationDefinition>;
|
|
117
89
|
}
|
|
118
90
|
|
|
119
91
|
// @public
|
|
@@ -160,13 +132,6 @@ export interface ApplicationDefinitionsGetOptionalParams extends coreClient.Oper
|
|
|
160
132
|
// @public
|
|
161
133
|
export type ApplicationDefinitionsGetResponse = ApplicationDefinition;
|
|
162
134
|
|
|
163
|
-
// @public
|
|
164
|
-
export interface ApplicationDefinitionsListByResourceGroupNextNextOptionalParams extends coreClient.OperationOptions {
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
// @public
|
|
168
|
-
export type ApplicationDefinitionsListByResourceGroupNextNextResponse = ApplicationDefinitionListResult;
|
|
169
|
-
|
|
170
135
|
// @public
|
|
171
136
|
export interface ApplicationDefinitionsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
172
137
|
}
|
|
@@ -220,9 +185,7 @@ export interface Applications {
|
|
|
220
185
|
get(resourceGroupName: string, applicationName: string, options?: ApplicationsGetOptionalParams): Promise<ApplicationsGetResponse>;
|
|
221
186
|
getById(applicationId: string, options?: ApplicationsGetByIdOptionalParams): Promise<ApplicationsGetByIdResponse>;
|
|
222
187
|
listByResourceGroup(resourceGroupName: string, options?: ApplicationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Application>;
|
|
223
|
-
listByResourceGroupNext(resourceGroupName: string, nextLink: string, options?: ApplicationsListByResourceGroupNextOptionalParams): PagedAsyncIterableIterator<Application>;
|
|
224
188
|
listBySubscription(options?: ApplicationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Application>;
|
|
225
|
-
listBySubscriptionNext(nextLink: string, options?: ApplicationsListBySubscriptionNextOptionalParams): PagedAsyncIterableIterator<Application>;
|
|
226
189
|
update(resourceGroupName: string, applicationName: string, options?: ApplicationsUpdateOptionalParams): Promise<ApplicationsUpdateResponse>;
|
|
227
190
|
updateById(applicationId: string, options?: ApplicationsUpdateByIdOptionalParams): Promise<ApplicationsUpdateByIdResponse>;
|
|
228
191
|
}
|
|
@@ -271,13 +234,6 @@ export interface ApplicationsGetOptionalParams extends coreClient.OperationOptio
|
|
|
271
234
|
// @public
|
|
272
235
|
export type ApplicationsGetResponse = Application;
|
|
273
236
|
|
|
274
|
-
// @public
|
|
275
|
-
export interface ApplicationsListByResourceGroupNextNextOptionalParams extends coreClient.OperationOptions {
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
// @public
|
|
279
|
-
export type ApplicationsListByResourceGroupNextNextResponse = ApplicationListResult;
|
|
280
|
-
|
|
281
237
|
// @public
|
|
282
238
|
export interface ApplicationsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
283
239
|
}
|
|
@@ -292,13 +248,6 @@ export interface ApplicationsListByResourceGroupOptionalParams extends coreClien
|
|
|
292
248
|
// @public
|
|
293
249
|
export type ApplicationsListByResourceGroupResponse = ApplicationListResult;
|
|
294
250
|
|
|
295
|
-
// @public
|
|
296
|
-
export interface ApplicationsListBySubscriptionNextNextOptionalParams extends coreClient.OperationOptions {
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
// @public
|
|
300
|
-
export type ApplicationsListBySubscriptionNextNextResponse = ApplicationListResult;
|
|
301
|
-
|
|
302
251
|
// @public
|
|
303
252
|
export interface ApplicationsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
|
|
304
253
|
}
|
|
@@ -376,6 +325,20 @@ export enum KnownProvisioningState {
|
|
|
376
325
|
Updating = "Updating"
|
|
377
326
|
}
|
|
378
327
|
|
|
328
|
+
// @public
|
|
329
|
+
export interface ListOperationsNextOptionalParams extends coreClient.OperationOptions {
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// @public
|
|
333
|
+
export type ListOperationsNextResponse = OperationListResult;
|
|
334
|
+
|
|
335
|
+
// @public
|
|
336
|
+
export interface ListOperationsOptionalParams extends coreClient.OperationOptions {
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// @public
|
|
340
|
+
export type ListOperationsResponse = OperationListResult;
|
|
341
|
+
|
|
379
342
|
// @public
|
|
380
343
|
export interface Operation {
|
|
381
344
|
display?: OperationDisplay;
|
|
@@ -437,7 +400,6 @@ export interface Sku {
|
|
|
437
400
|
tier?: string;
|
|
438
401
|
}
|
|
439
402
|
|
|
440
|
-
|
|
441
403
|
// (No @packageDocumentation comment for this package)
|
|
442
404
|
|
|
443
405
|
```
|
package/src/applicationClient.ts
CHANGED
|
@@ -8,26 +8,26 @@
|
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as coreAuth from "@azure/core-auth";
|
|
11
|
-
import "@azure/core-paging";
|
|
12
11
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
13
12
|
import { ApplicationsImpl, ApplicationDefinitionsImpl } from "./operations";
|
|
14
13
|
import { Applications, ApplicationDefinitions } from "./operationsInterfaces";
|
|
15
14
|
import * as Parameters from "./models/parameters";
|
|
16
15
|
import * as Mappers from "./models/mappers";
|
|
17
|
-
import { ApplicationClientContext } from "./applicationClientContext";
|
|
18
16
|
import {
|
|
19
17
|
ApplicationClientOptionalParams,
|
|
20
18
|
Operation,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
ApplicationClientListOperationsNextResponse,
|
|
26
|
-
ApplicationClientListOperationsNextNextResponse
|
|
19
|
+
ListOperationsNextOptionalParams,
|
|
20
|
+
ListOperationsOptionalParams,
|
|
21
|
+
ListOperationsResponse,
|
|
22
|
+
ListOperationsNextResponse
|
|
27
23
|
} from "./models";
|
|
28
24
|
|
|
29
25
|
/// <reference lib="esnext.asynciterable" />
|
|
30
|
-
export class ApplicationClient extends
|
|
26
|
+
export class ApplicationClient extends coreClient.ServiceClient {
|
|
27
|
+
$host: string;
|
|
28
|
+
apiVersion: string;
|
|
29
|
+
subscriptionId: string;
|
|
30
|
+
|
|
31
31
|
/**
|
|
32
32
|
* Initializes a new instance of the ApplicationClient class.
|
|
33
33
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -39,7 +39,46 @@ export class ApplicationClient extends ApplicationClientContext {
|
|
|
39
39
|
subscriptionId: string,
|
|
40
40
|
options?: ApplicationClientOptionalParams
|
|
41
41
|
) {
|
|
42
|
-
|
|
42
|
+
if (credentials === undefined) {
|
|
43
|
+
throw new Error("'credentials' cannot be null");
|
|
44
|
+
}
|
|
45
|
+
if (subscriptionId === undefined) {
|
|
46
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Initializing default values for options
|
|
50
|
+
if (!options) {
|
|
51
|
+
options = {};
|
|
52
|
+
}
|
|
53
|
+
const defaults: ApplicationClientOptionalParams = {
|
|
54
|
+
requestContentType: "application/json; charset=utf-8",
|
|
55
|
+
credential: credentials
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const packageDetails = `azsdk-js-arm-managedapplications/2.0.0`;
|
|
59
|
+
const userAgentPrefix =
|
|
60
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
61
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
62
|
+
: `${packageDetails}`;
|
|
63
|
+
|
|
64
|
+
if (!options.credentialScopes) {
|
|
65
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
66
|
+
}
|
|
67
|
+
const optionsWithDefaults = {
|
|
68
|
+
...defaults,
|
|
69
|
+
...options,
|
|
70
|
+
userAgentOptions: {
|
|
71
|
+
userAgentPrefix
|
|
72
|
+
},
|
|
73
|
+
baseUri: options.endpoint || "https://management.azure.com"
|
|
74
|
+
};
|
|
75
|
+
super(optionsWithDefaults);
|
|
76
|
+
// Parameter assignments
|
|
77
|
+
this.subscriptionId = subscriptionId;
|
|
78
|
+
|
|
79
|
+
// Assigning values to Constant parameters
|
|
80
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
81
|
+
this.apiVersion = options.apiVersion || "2018-06-01";
|
|
43
82
|
this.applications = new ApplicationsImpl(this);
|
|
44
83
|
this.applicationDefinitions = new ApplicationDefinitionsImpl(this);
|
|
45
84
|
}
|
|
@@ -49,7 +88,7 @@ export class ApplicationClient extends ApplicationClientContext {
|
|
|
49
88
|
* @param options The options parameters.
|
|
50
89
|
*/
|
|
51
90
|
public listOperations(
|
|
52
|
-
options?:
|
|
91
|
+
options?: ListOperationsOptionalParams
|
|
53
92
|
): PagedAsyncIterableIterator<Operation> {
|
|
54
93
|
const iter = this.listOperationsPagingAll(options);
|
|
55
94
|
return {
|
|
@@ -66,7 +105,7 @@ export class ApplicationClient extends ApplicationClientContext {
|
|
|
66
105
|
}
|
|
67
106
|
|
|
68
107
|
private async *listOperationsPagingPage(
|
|
69
|
-
options?:
|
|
108
|
+
options?: ListOperationsOptionalParams
|
|
70
109
|
): AsyncIterableIterator<Operation[]> {
|
|
71
110
|
let result = await this._listOperations(options);
|
|
72
111
|
yield result.value || [];
|
|
@@ -79,69 +118,20 @@ export class ApplicationClient extends ApplicationClientContext {
|
|
|
79
118
|
}
|
|
80
119
|
|
|
81
120
|
private async *listOperationsPagingAll(
|
|
82
|
-
options?:
|
|
121
|
+
options?: ListOperationsOptionalParams
|
|
83
122
|
): AsyncIterableIterator<Operation> {
|
|
84
123
|
for await (const page of this.listOperationsPagingPage(options)) {
|
|
85
124
|
yield* page;
|
|
86
125
|
}
|
|
87
126
|
}
|
|
88
127
|
|
|
89
|
-
/**
|
|
90
|
-
* ListOperationsNext
|
|
91
|
-
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
|
|
92
|
-
* @param options The options parameters.
|
|
93
|
-
*/
|
|
94
|
-
public listOperationsNext(
|
|
95
|
-
nextLink: string,
|
|
96
|
-
options?: ApplicationClientListOperationsNextOptionalParams
|
|
97
|
-
): PagedAsyncIterableIterator<Operation> {
|
|
98
|
-
const iter = this.listOperationsNextPagingAll(nextLink, options);
|
|
99
|
-
return {
|
|
100
|
-
next() {
|
|
101
|
-
return iter.next();
|
|
102
|
-
},
|
|
103
|
-
[Symbol.asyncIterator]() {
|
|
104
|
-
return this;
|
|
105
|
-
},
|
|
106
|
-
byPage: () => {
|
|
107
|
-
return this.listOperationsNextPagingPage(nextLink, options);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
private async *listOperationsNextPagingPage(
|
|
113
|
-
nextLink: string,
|
|
114
|
-
options?: ApplicationClientListOperationsNextOptionalParams
|
|
115
|
-
): AsyncIterableIterator<Operation[]> {
|
|
116
|
-
let result = await this._listOperationsNext(nextLink, options);
|
|
117
|
-
yield result.value || [];
|
|
118
|
-
let continuationToken = result.nextLink;
|
|
119
|
-
while (continuationToken) {
|
|
120
|
-
result = await this._listOperationsNextNext(continuationToken, options);
|
|
121
|
-
continuationToken = result.nextLink;
|
|
122
|
-
yield result.value || [];
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
private async *listOperationsNextPagingAll(
|
|
127
|
-
nextLink: string,
|
|
128
|
-
options?: ApplicationClientListOperationsNextOptionalParams
|
|
129
|
-
): AsyncIterableIterator<Operation> {
|
|
130
|
-
for await (const page of this.listOperationsNextPagingPage(
|
|
131
|
-
nextLink,
|
|
132
|
-
options
|
|
133
|
-
)) {
|
|
134
|
-
yield* page;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
128
|
/**
|
|
139
129
|
* Lists all of the available Microsoft.Solutions REST API operations.
|
|
140
130
|
* @param options The options parameters.
|
|
141
131
|
*/
|
|
142
132
|
private _listOperations(
|
|
143
|
-
options?:
|
|
144
|
-
): Promise<
|
|
133
|
+
options?: ListOperationsOptionalParams
|
|
134
|
+
): Promise<ListOperationsResponse> {
|
|
145
135
|
return this.sendOperationRequest({ options }, listOperationsOperationSpec);
|
|
146
136
|
}
|
|
147
137
|
|
|
@@ -152,29 +142,14 @@ export class ApplicationClient extends ApplicationClientContext {
|
|
|
152
142
|
*/
|
|
153
143
|
private _listOperationsNext(
|
|
154
144
|
nextLink: string,
|
|
155
|
-
options?:
|
|
156
|
-
): Promise<
|
|
145
|
+
options?: ListOperationsNextOptionalParams
|
|
146
|
+
): Promise<ListOperationsNextResponse> {
|
|
157
147
|
return this.sendOperationRequest(
|
|
158
148
|
{ nextLink, options },
|
|
159
149
|
listOperationsNextOperationSpec
|
|
160
150
|
);
|
|
161
151
|
}
|
|
162
152
|
|
|
163
|
-
/**
|
|
164
|
-
* ListOperationsNextNext
|
|
165
|
-
* @param nextLink The nextLink from the previous successful call to the ListOperationsNext method.
|
|
166
|
-
* @param options The options parameters.
|
|
167
|
-
*/
|
|
168
|
-
private _listOperationsNextNext(
|
|
169
|
-
nextLink: string,
|
|
170
|
-
options?: ApplicationClientListOperationsNextNextOptionalParams
|
|
171
|
-
): Promise<ApplicationClientListOperationsNextNextResponse> {
|
|
172
|
-
return this.sendOperationRequest(
|
|
173
|
-
{ nextLink, options },
|
|
174
|
-
listOperationsNextNextOperationSpec
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
153
|
applications: Applications;
|
|
179
154
|
applicationDefinitions: ApplicationDefinitions;
|
|
180
155
|
}
|
|
@@ -207,16 +182,3 @@ const listOperationsNextOperationSpec: coreClient.OperationSpec = {
|
|
|
207
182
|
headerParameters: [Parameters.accept],
|
|
208
183
|
serializer
|
|
209
184
|
};
|
|
210
|
-
const listOperationsNextNextOperationSpec: coreClient.OperationSpec = {
|
|
211
|
-
path: "{nextLink}",
|
|
212
|
-
httpMethod: "GET",
|
|
213
|
-
responses: {
|
|
214
|
-
200: {
|
|
215
|
-
bodyMapper: Mappers.OperationListResult
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
queryParameters: [Parameters.apiVersion],
|
|
219
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
220
|
-
headerParameters: [Parameters.accept],
|
|
221
|
-
serializer
|
|
222
|
-
};
|
package/src/index.ts
CHANGED
package/src/lroImpl.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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 { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
|
+
|
|
11
|
+
export class LroImpl<T> implements LongRunningOperation<T> {
|
|
12
|
+
constructor(
|
|
13
|
+
private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,
|
|
14
|
+
private args: Record<string, unknown>,
|
|
15
|
+
private spec: {
|
|
16
|
+
readonly requestBody?: unknown;
|
|
17
|
+
readonly path?: string;
|
|
18
|
+
readonly httpMethod: string;
|
|
19
|
+
} & Record<string, any>,
|
|
20
|
+
public requestPath: string = spec.path!,
|
|
21
|
+
public requestMethod: string = spec.httpMethod
|
|
22
|
+
) {}
|
|
23
|
+
public async sendInitialRequest(): Promise<LroResponse<T>> {
|
|
24
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
25
|
+
}
|
|
26
|
+
public async sendPollRequest(path: string): Promise<LroResponse<T>> {
|
|
27
|
+
const { requestBody, ...restSpec } = this.spec;
|
|
28
|
+
return this.sendOperationFn(this.args, {
|
|
29
|
+
...restSpec,
|
|
30
|
+
path,
|
|
31
|
+
httpMethod: "GET"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
package/src/models/index.ts
CHANGED
|
@@ -34,27 +34,18 @@ export interface OperationDisplay {
|
|
|
34
34
|
operation?: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
/**
|
|
38
|
-
export interface
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Resource type
|
|
51
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
52
|
-
*/
|
|
53
|
-
readonly type?: string;
|
|
54
|
-
/** Resource location */
|
|
55
|
-
location?: string;
|
|
56
|
-
/** Resource tags */
|
|
57
|
-
tags?: { [propertyName: string]: string };
|
|
37
|
+
/** Plan for the managed application. */
|
|
38
|
+
export interface Plan {
|
|
39
|
+
/** The plan name. */
|
|
40
|
+
name: string;
|
|
41
|
+
/** The publisher ID. */
|
|
42
|
+
publisher: string;
|
|
43
|
+
/** The product code. */
|
|
44
|
+
product: string;
|
|
45
|
+
/** The promotion code. */
|
|
46
|
+
promotionCode?: string;
|
|
47
|
+
/** The plan's version. */
|
|
48
|
+
version: string;
|
|
58
49
|
}
|
|
59
50
|
|
|
60
51
|
/** SKU for the resource. */
|
|
@@ -89,18 +80,27 @@ export interface Identity {
|
|
|
89
80
|
type?: "SystemAssigned";
|
|
90
81
|
}
|
|
91
82
|
|
|
92
|
-
/**
|
|
93
|
-
export interface
|
|
94
|
-
/**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
83
|
+
/** Resource information. */
|
|
84
|
+
export interface Resource {
|
|
85
|
+
/**
|
|
86
|
+
* Resource ID
|
|
87
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
88
|
+
*/
|
|
89
|
+
readonly id?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Resource name
|
|
92
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
93
|
+
*/
|
|
94
|
+
readonly name?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Resource type
|
|
97
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
98
|
+
*/
|
|
99
|
+
readonly type?: string;
|
|
100
|
+
/** Resource location */
|
|
101
|
+
location?: string;
|
|
102
|
+
/** Resource tags */
|
|
103
|
+
tags?: { [propertyName: string]: string };
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/** Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message. */
|
|
@@ -280,25 +280,18 @@ export type ApplicationLockLevel = "CanNotDelete" | "ReadOnly" | "None";
|
|
|
280
280
|
export type ApplicationArtifactType = "Template" | "Custom";
|
|
281
281
|
|
|
282
282
|
/** Optional parameters. */
|
|
283
|
-
export interface
|
|
283
|
+
export interface ListOperationsOptionalParams
|
|
284
284
|
extends coreClient.OperationOptions {}
|
|
285
285
|
|
|
286
286
|
/** Contains response data for the listOperations operation. */
|
|
287
|
-
export type
|
|
287
|
+
export type ListOperationsResponse = OperationListResult;
|
|
288
288
|
|
|
289
289
|
/** Optional parameters. */
|
|
290
|
-
export interface
|
|
290
|
+
export interface ListOperationsNextOptionalParams
|
|
291
291
|
extends coreClient.OperationOptions {}
|
|
292
292
|
|
|
293
293
|
/** Contains response data for the listOperationsNext operation. */
|
|
294
|
-
export type
|
|
295
|
-
|
|
296
|
-
/** Optional parameters. */
|
|
297
|
-
export interface ApplicationClientListOperationsNextNextOptionalParams
|
|
298
|
-
extends coreClient.OperationOptions {}
|
|
299
|
-
|
|
300
|
-
/** Contains response data for the listOperationsNextNext operation. */
|
|
301
|
-
export type ApplicationClientListOperationsNextNextResponse = OperationListResult;
|
|
294
|
+
export type ListOperationsNextResponse = OperationListResult;
|
|
302
295
|
|
|
303
296
|
/** Optional parameters. */
|
|
304
297
|
export interface ApplicationsGetOptionalParams
|
|
@@ -404,20 +397,6 @@ export interface ApplicationsListBySubscriptionNextOptionalParams
|
|
|
404
397
|
/** Contains response data for the listBySubscriptionNext operation. */
|
|
405
398
|
export type ApplicationsListBySubscriptionNextResponse = ApplicationListResult;
|
|
406
399
|
|
|
407
|
-
/** Optional parameters. */
|
|
408
|
-
export interface ApplicationsListByResourceGroupNextNextOptionalParams
|
|
409
|
-
extends coreClient.OperationOptions {}
|
|
410
|
-
|
|
411
|
-
/** Contains response data for the listByResourceGroupNextNext operation. */
|
|
412
|
-
export type ApplicationsListByResourceGroupNextNextResponse = ApplicationListResult;
|
|
413
|
-
|
|
414
|
-
/** Optional parameters. */
|
|
415
|
-
export interface ApplicationsListBySubscriptionNextNextOptionalParams
|
|
416
|
-
extends coreClient.OperationOptions {}
|
|
417
|
-
|
|
418
|
-
/** Contains response data for the listBySubscriptionNextNext operation. */
|
|
419
|
-
export type ApplicationsListBySubscriptionNextNextResponse = ApplicationListResult;
|
|
420
|
-
|
|
421
400
|
/** Optional parameters. */
|
|
422
401
|
export interface ApplicationDefinitionsGetOptionalParams
|
|
423
402
|
extends coreClient.OperationOptions {}
|
|
@@ -488,13 +467,6 @@ export interface ApplicationDefinitionsListByResourceGroupNextOptionalParams
|
|
|
488
467
|
/** Contains response data for the listByResourceGroupNext operation. */
|
|
489
468
|
export type ApplicationDefinitionsListByResourceGroupNextResponse = ApplicationDefinitionListResult;
|
|
490
469
|
|
|
491
|
-
/** Optional parameters. */
|
|
492
|
-
export interface ApplicationDefinitionsListByResourceGroupNextNextOptionalParams
|
|
493
|
-
extends coreClient.OperationOptions {}
|
|
494
|
-
|
|
495
|
-
/** Contains response data for the listByResourceGroupNextNext operation. */
|
|
496
|
-
export type ApplicationDefinitionsListByResourceGroupNextNextResponse = ApplicationDefinitionListResult;
|
|
497
|
-
|
|
498
470
|
/** Optional parameters. */
|
|
499
471
|
export interface ApplicationClientOptionalParams
|
|
500
472
|
extends coreClient.ServiceClientOptions {
|