@azure/arm-managedapplications 1.1.0 → 2.0.0-beta.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.
Files changed (160) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +63 -80
  4. package/dist/index.js +2896 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/esm/applicationClient.d.ts +50 -0
  9. package/esm/applicationClient.d.ts.map +1 -0
  10. package/esm/applicationClient.js +190 -0
  11. package/esm/applicationClient.js.map +1 -0
  12. package/esm/applicationClientContext.d.ts +16 -0
  13. package/esm/applicationClientContext.d.ts.map +1 -0
  14. package/esm/applicationClientContext.js +49 -0
  15. package/esm/applicationClientContext.js.map +1 -0
  16. package/esm/coreClientLro.d.ts +26 -0
  17. package/esm/coreClientLro.d.ts.map +1 -0
  18. package/esm/coreClientLro.js +186 -0
  19. package/esm/coreClientLro.js.map +1 -0
  20. package/esm/index.d.ts +770 -0
  21. package/esm/index.d.ts.map +1 -0
  22. package/esm/index.js +13 -0
  23. package/esm/index.js.map +1 -0
  24. package/esm/lro/azureAsyncPolling.d.ts +3 -0
  25. package/esm/lro/azureAsyncPolling.d.ts.map +1 -0
  26. package/esm/lro/azureAsyncPolling.js +67 -0
  27. package/esm/lro/azureAsyncPolling.js.map +1 -0
  28. package/esm/lro/bodyPolling.d.ts +8 -0
  29. package/esm/lro/bodyPolling.d.ts.map +1 -0
  30. package/esm/lro/bodyPolling.js +37 -0
  31. package/esm/lro/bodyPolling.js.map +1 -0
  32. package/esm/lro/index.d.ts +4 -0
  33. package/esm/lro/index.d.ts.map +1 -0
  34. package/esm/lro/index.js +12 -0
  35. package/esm/lro/index.js.map +1 -0
  36. package/esm/lro/locationPolling.d.ts +3 -0
  37. package/esm/lro/locationPolling.d.ts.map +1 -0
  38. package/esm/lro/locationPolling.js +19 -0
  39. package/esm/lro/locationPolling.js.map +1 -0
  40. package/esm/lro/lroEngine.d.ts +14 -0
  41. package/esm/lro/lroEngine.d.ts.map +1 -0
  42. package/esm/lro/lroEngine.js +41 -0
  43. package/esm/lro/lroEngine.js.map +1 -0
  44. package/esm/lro/models.d.ts +138 -0
  45. package/esm/lro/models.d.ts.map +1 -0
  46. package/esm/lro/models.js +14 -0
  47. package/esm/lro/models.js.map +1 -0
  48. package/esm/lro/operation.d.ts +36 -0
  49. package/esm/lro/operation.d.ts.map +1 -0
  50. package/esm/lro/operation.js +82 -0
  51. package/esm/lro/operation.js.map +1 -0
  52. package/esm/lro/passthrough.d.ts +3 -0
  53. package/esm/lro/passthrough.d.ts.map +1 -0
  54. package/esm/lro/passthrough.js +15 -0
  55. package/esm/lro/passthrough.js.map +1 -0
  56. package/esm/lro/requestUtils.d.ts +16 -0
  57. package/esm/lro/requestUtils.d.ts.map +1 -0
  58. package/esm/lro/requestUtils.js +73 -0
  59. package/esm/lro/requestUtils.js.map +1 -0
  60. package/esm/lro/stateMachine.d.ts +18 -0
  61. package/esm/lro/stateMachine.d.ts.map +1 -0
  62. package/esm/lro/stateMachine.js +84 -0
  63. package/esm/lro/stateMachine.js.map +1 -0
  64. package/esm/models/index.d.ts +360 -762
  65. package/esm/models/index.d.ts.map +1 -1
  66. package/esm/models/index.js +17 -2
  67. package/esm/models/index.js.map +1 -1
  68. package/esm/models/mappers.d.ts +18 -20
  69. package/esm/models/mappers.d.ts.map +1 -1
  70. package/esm/models/mappers.js +296 -318
  71. package/esm/models/mappers.js.map +1 -1
  72. package/esm/models/parameters.d.ts +15 -10
  73. package/esm/models/parameters.d.ts.map +1 -1
  74. package/esm/models/parameters.js +77 -49
  75. package/esm/models/parameters.js.map +1 -1
  76. package/esm/operations/applicationDefinitions.d.ts +128 -0
  77. package/esm/operations/applicationDefinitions.d.ts.map +1 -0
  78. package/esm/operations/applicationDefinitions.js +574 -0
  79. package/esm/operations/applicationDefinitions.js.map +1 -0
  80. package/esm/operations/applications.d.ts +182 -0
  81. package/esm/operations/applications.d.ts.map +1 -0
  82. package/esm/operations/applications.js +802 -0
  83. package/esm/operations/applications.js.map +1 -0
  84. package/esm/operations/index.d.ts +2 -2
  85. package/esm/operations/index.d.ts.map +1 -1
  86. package/esm/operations/index.js +5 -7
  87. package/esm/operations/index.js.map +1 -1
  88. package/esm/operationsInterfaces/applicationDefinitions.d.ts +95 -0
  89. package/esm/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
  90. package/esm/operationsInterfaces/applicationDefinitions.js +9 -0
  91. package/esm/operationsInterfaces/applicationDefinitions.js.map +1 -0
  92. package/esm/operationsInterfaces/applications.d.ts +128 -0
  93. package/esm/operationsInterfaces/applications.d.ts.map +1 -0
  94. package/esm/operationsInterfaces/applications.js +9 -0
  95. package/esm/operationsInterfaces/applications.js.map +1 -0
  96. package/esm/operationsInterfaces/index.d.ts +3 -0
  97. package/esm/operationsInterfaces/index.d.ts.map +1 -0
  98. package/esm/operationsInterfaces/index.js +10 -0
  99. package/esm/operationsInterfaces/index.js.map +1 -0
  100. package/package.json +55 -16
  101. package/review/arm-managedapplications.api.md +443 -0
  102. package/rollup.config.js +181 -30
  103. package/src/applicationClient.ts +222 -0
  104. package/src/applicationClientContext.ts +70 -0
  105. package/src/coreClientLro.ts +323 -0
  106. package/src/index.ts +13 -0
  107. package/src/lro/azureAsyncPolling.ts +96 -0
  108. package/src/lro/bodyPolling.ts +54 -0
  109. package/src/lro/index.ts +26 -0
  110. package/src/lro/locationPolling.ts +30 -0
  111. package/src/lro/lroEngine.ts +61 -0
  112. package/src/lro/models.ts +173 -0
  113. package/src/lro/operation.ts +120 -0
  114. package/src/lro/passthrough.ts +23 -0
  115. package/src/lro/requestUtils.ts +105 -0
  116. package/src/lro/stateMachine.ts +138 -0
  117. package/src/models/index.ts +402 -794
  118. package/src/models/mappers.ts +290 -311
  119. package/src/models/parameters.ts +99 -50
  120. package/src/operations/applicationDefinitions.ts +810 -0
  121. package/src/operations/applications.ts +1069 -0
  122. package/src/operations/index.ts +5 -7
  123. package/src/operationsInterfaces/applicationDefinitions.ts +179 -0
  124. package/src/operationsInterfaces/applications.ts +225 -0
  125. package/src/operationsInterfaces/index.ts +10 -0
  126. package/tsconfig.json +3 -2
  127. package/dist/arm-managedapplications.js +0 -1865
  128. package/dist/arm-managedapplications.js.map +0 -1
  129. package/dist/arm-managedapplications.min.js +0 -1
  130. package/dist/arm-managedapplications.min.js.map +0 -1
  131. package/esm/managedApplicationClient.d.ts +0 -58
  132. package/esm/managedApplicationClient.d.ts.map +0 -1
  133. package/esm/managedApplicationClient.js +0 -92
  134. package/esm/managedApplicationClient.js.map +0 -1
  135. package/esm/managedApplicationClientContext.d.ts +0 -22
  136. package/esm/managedApplicationClientContext.d.ts.map +0 -1
  137. package/esm/managedApplicationClientContext.js +0 -61
  138. package/esm/managedApplicationClientContext.js.map +0 -1
  139. package/esm/models/applianceDefinitionsMappers.d.ts +0 -2
  140. package/esm/models/applianceDefinitionsMappers.d.ts.map +0 -1
  141. package/esm/models/applianceDefinitionsMappers.js +0 -9
  142. package/esm/models/applianceDefinitionsMappers.js.map +0 -1
  143. package/esm/models/appliancesMappers.d.ts +0 -2
  144. package/esm/models/appliancesMappers.d.ts.map +0 -1
  145. package/esm/models/appliancesMappers.js +0 -9
  146. package/esm/models/appliancesMappers.js.map +0 -1
  147. package/esm/operations/applianceDefinitions.d.ts +0 -167
  148. package/esm/operations/applianceDefinitions.d.ts.map +0 -1
  149. package/esm/operations/applianceDefinitions.js +0 -358
  150. package/esm/operations/applianceDefinitions.js.map +0 -1
  151. package/esm/operations/appliances.d.ts +0 -247
  152. package/esm/operations/appliances.d.ts.map +0 -1
  153. package/esm/operations/appliances.js +0 -482
  154. package/esm/operations/appliances.js.map +0 -1
  155. package/src/managedApplicationClient.ts +0 -144
  156. package/src/managedApplicationClientContext.ts +0 -68
  157. package/src/models/applianceDefinitionsMappers.ts +0 -24
  158. package/src/models/appliancesMappers.ts +0 -24
  159. package/src/operations/applianceDefinitions.ts +0 -492
  160. package/src/operations/appliances.ts +0 -716
package/esm/index.d.ts ADDED
@@ -0,0 +1,770 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+ import { PollerLike } from '@azure/core-lro';
5
+ import { PollOperationState } from '@azure/core-lro';
6
+
7
+ /** Information about managed application. */
8
+ export declare type Application = GenericResource & {
9
+ /** The plan information. */
10
+ plan?: Plan;
11
+ /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */
12
+ kind: string;
13
+ /** The managed resource group Id. */
14
+ managedResourceGroupId: string;
15
+ /** The fully qualified path of managed application definition Id. */
16
+ applicationDefinitionId?: string;
17
+ /** Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. */
18
+ parameters?: Record<string, unknown>;
19
+ /**
20
+ * Name and value pairs that define the managed application outputs.
21
+ * NOTE: This property will not be serialized. It can only be populated by the server.
22
+ */
23
+ readonly outputs?: Record<string, unknown>;
24
+ /**
25
+ * The managed application provisioning state.
26
+ * NOTE: This property will not be serialized. It can only be populated by the server.
27
+ */
28
+ readonly provisioningState?: ProvisioningState;
29
+ };
30
+
31
+ /** Managed application artifact. */
32
+ export declare interface ApplicationArtifact {
33
+ /** The managed application artifact name. */
34
+ name?: string;
35
+ /** The managed application artifact blob uri. */
36
+ uri?: string;
37
+ /** The managed application artifact type. */
38
+ type?: ApplicationArtifactType;
39
+ }
40
+
41
+ /** Defines values for ApplicationArtifactType. */
42
+ export declare type ApplicationArtifactType = "Template" | "Custom";
43
+
44
+ export declare class ApplicationClient extends ApplicationClientContext {
45
+ /**
46
+ * Initializes a new instance of the ApplicationClient class.
47
+ * @param credentials Subscription credentials which uniquely identify client subscription.
48
+ * @param subscriptionId The ID of the target subscription.
49
+ * @param options The parameter options
50
+ */
51
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApplicationClientOptionalParams);
52
+ /**
53
+ * Lists all of the available Microsoft.Solutions REST API operations.
54
+ * @param options The options parameters.
55
+ */
56
+ listOperations(options?: ApplicationClientListOperationsOptionalParams): PagedAsyncIterableIterator<Operation>;
57
+ private listOperationsPagingPage;
58
+ private listOperationsPagingAll;
59
+ /**
60
+ * ListOperationsNext
61
+ * @param nextLink The nextLink from the previous successful call to the ListOperations method.
62
+ * @param options The options parameters.
63
+ */
64
+ listOperationsNext(nextLink: string, options?: ApplicationClientListOperationsNextOptionalParams): PagedAsyncIterableIterator<Operation>;
65
+ private listOperationsNextPagingPage;
66
+ private listOperationsNextPagingAll;
67
+ /**
68
+ * Lists all of the available Microsoft.Solutions REST API operations.
69
+ * @param options The options parameters.
70
+ */
71
+ private _listOperations;
72
+ /**
73
+ * ListOperationsNext
74
+ * @param nextLink The nextLink from the previous successful call to the ListOperations method.
75
+ * @param options The options parameters.
76
+ */
77
+ private _listOperationsNext;
78
+ /**
79
+ * ListOperationsNextNext
80
+ * @param nextLink The nextLink from the previous successful call to the ListOperationsNext method.
81
+ * @param options The options parameters.
82
+ */
83
+ private _listOperationsNextNext;
84
+ applications: Applications;
85
+ applicationDefinitions: ApplicationDefinitions;
86
+ }
87
+
88
+ export declare class ApplicationClientContext extends coreClient.ServiceClient {
89
+ $host: string;
90
+ apiVersion: string;
91
+ subscriptionId: string;
92
+ /**
93
+ * Initializes a new instance of the ApplicationClientContext class.
94
+ * @param credentials Subscription credentials which uniquely identify client subscription.
95
+ * @param subscriptionId The ID of the target subscription.
96
+ * @param options The parameter options
97
+ */
98
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApplicationClientOptionalParams);
99
+ }
100
+
101
+ /** Optional parameters. */
102
+ export declare interface ApplicationClientListOperationsNextNextOptionalParams extends coreClient.OperationOptions {
103
+ }
104
+
105
+ /** Contains response data for the listOperationsNextNext operation. */
106
+ export declare type ApplicationClientListOperationsNextNextResponse = OperationListResult;
107
+
108
+ /** Optional parameters. */
109
+ export declare interface ApplicationClientListOperationsNextOptionalParams extends coreClient.OperationOptions {
110
+ }
111
+
112
+ /** Contains response data for the listOperationsNext operation. */
113
+ export declare type ApplicationClientListOperationsNextResponse = OperationListResult;
114
+
115
+ /** Optional parameters. */
116
+ export declare interface ApplicationClientListOperationsOptionalParams extends coreClient.OperationOptions {
117
+ }
118
+
119
+ /** Contains response data for the listOperations operation. */
120
+ export declare type ApplicationClientListOperationsResponse = OperationListResult;
121
+
122
+ /** Optional parameters. */
123
+ export declare interface ApplicationClientOptionalParams extends coreClient.ServiceClientOptions {
124
+ /** server parameter */
125
+ $host?: string;
126
+ /** Api Version */
127
+ apiVersion?: string;
128
+ /** Overrides client endpoint. */
129
+ endpoint?: string;
130
+ }
131
+
132
+ /** Information about managed application definition. */
133
+ export declare type ApplicationDefinition = GenericResource & {
134
+ /** The managed application lock level. */
135
+ lockLevel: ApplicationLockLevel;
136
+ /** The managed application definition display name. */
137
+ displayName?: string;
138
+ /** A value indicating whether the package is enabled or not. */
139
+ isEnabled?: string;
140
+ /** The managed application provider authorizations. */
141
+ authorizations: ApplicationProviderAuthorization[];
142
+ /** The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition. */
143
+ artifacts?: ApplicationArtifact[];
144
+ /** The managed application definition description. */
145
+ description?: string;
146
+ /** The managed application definition package file Uri. Use this element */
147
+ packageFileUri?: string;
148
+ /** The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. */
149
+ mainTemplate?: Record<string, unknown>;
150
+ /** The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. */
151
+ createUiDefinition?: Record<string, unknown>;
152
+ };
153
+
154
+ /** List of managed application definitions. */
155
+ export declare interface ApplicationDefinitionListResult {
156
+ /** The array of managed application definitions. */
157
+ value?: ApplicationDefinition[];
158
+ /** The URL to use for getting the next set of results. */
159
+ nextLink?: string;
160
+ }
161
+
162
+ /** Interface representing a ApplicationDefinitions. */
163
+ export declare interface ApplicationDefinitions {
164
+ /**
165
+ * Lists the managed application definitions in a resource group.
166
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
167
+ * @param options The options parameters.
168
+ */
169
+ listByResourceGroup(resourceGroupName: string, options?: ApplicationDefinitionsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ApplicationDefinition>;
170
+ /**
171
+ * ListByResourceGroupNext
172
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
173
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
174
+ * @param options The options parameters.
175
+ */
176
+ listByResourceGroupNext(resourceGroupName: string, nextLink: string, options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams): PagedAsyncIterableIterator<ApplicationDefinition>;
177
+ /**
178
+ * Gets the managed application definition.
179
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
180
+ * @param applicationDefinitionName The name of the managed application definition.
181
+ * @param options The options parameters.
182
+ */
183
+ get(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsGetOptionalParams): Promise<ApplicationDefinitionsGetResponse>;
184
+ /**
185
+ * Deletes the managed application definition.
186
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
187
+ * @param applicationDefinitionName The name of the managed application definition to delete.
188
+ * @param options The options parameters.
189
+ */
190
+ beginDelete(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
191
+ /**
192
+ * Deletes the managed application definition.
193
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
194
+ * @param applicationDefinitionName The name of the managed application definition to delete.
195
+ * @param options The options parameters.
196
+ */
197
+ beginDeleteAndWait(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteOptionalParams): Promise<void>;
198
+ /**
199
+ * Creates a new managed application definition.
200
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
201
+ * @param applicationDefinitionName The name of the managed application definition.
202
+ * @param parameters Parameters supplied to the create or update an managed application definition.
203
+ * @param options The options parameters.
204
+ */
205
+ beginCreateOrUpdate(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ApplicationDefinitionsCreateOrUpdateResponse>, ApplicationDefinitionsCreateOrUpdateResponse>>;
206
+ /**
207
+ * Creates a new managed application definition.
208
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
209
+ * @param applicationDefinitionName The name of the managed application definition.
210
+ * @param parameters Parameters supplied to the create or update an managed application definition.
211
+ * @param options The options parameters.
212
+ */
213
+ beginCreateOrUpdateAndWait(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateOptionalParams): Promise<ApplicationDefinitionsCreateOrUpdateResponse>;
214
+ /**
215
+ * Gets the managed application definition.
216
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
217
+ * @param applicationDefinitionName The name of the managed application definition.
218
+ * @param options The options parameters.
219
+ */
220
+ getById(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsGetByIdOptionalParams): Promise<ApplicationDefinitionsGetByIdResponse>;
221
+ /**
222
+ * Deletes the managed application definition.
223
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
224
+ * @param applicationDefinitionName The name of the managed application definition.
225
+ * @param options The options parameters.
226
+ */
227
+ beginDeleteById(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteByIdOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
228
+ /**
229
+ * Deletes the managed application definition.
230
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
231
+ * @param applicationDefinitionName The name of the managed application definition.
232
+ * @param options The options parameters.
233
+ */
234
+ beginDeleteByIdAndWait(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteByIdOptionalParams): Promise<void>;
235
+ /**
236
+ * Creates a new managed application definition.
237
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
238
+ * @param applicationDefinitionName The name of the managed application definition.
239
+ * @param parameters Parameters supplied to the create or update a managed application definition.
240
+ * @param options The options parameters.
241
+ */
242
+ beginCreateOrUpdateById(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams): Promise<PollerLike<PollOperationState<ApplicationDefinitionsCreateOrUpdateByIdResponse>, ApplicationDefinitionsCreateOrUpdateByIdResponse>>;
243
+ /**
244
+ * Creates a new managed application definition.
245
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
246
+ * @param applicationDefinitionName The name of the managed application definition.
247
+ * @param parameters Parameters supplied to the create or update a managed application definition.
248
+ * @param options The options parameters.
249
+ */
250
+ beginCreateOrUpdateByIdAndWait(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams): Promise<ApplicationDefinitionsCreateOrUpdateByIdResponse>;
251
+ }
252
+
253
+ /** Optional parameters. */
254
+ export declare interface ApplicationDefinitionsCreateOrUpdateByIdOptionalParams extends coreClient.OperationOptions {
255
+ /** Delay to wait until next poll, in milliseconds. */
256
+ updateIntervalInMs?: number;
257
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
258
+ resumeFrom?: string;
259
+ }
260
+
261
+ /** Contains response data for the createOrUpdateById operation. */
262
+ export declare type ApplicationDefinitionsCreateOrUpdateByIdResponse = ApplicationDefinition;
263
+
264
+ /** Optional parameters. */
265
+ export declare interface ApplicationDefinitionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
266
+ /** Delay to wait until next poll, in milliseconds. */
267
+ updateIntervalInMs?: number;
268
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
269
+ resumeFrom?: string;
270
+ }
271
+
272
+ /** Contains response data for the createOrUpdate operation. */
273
+ export declare type ApplicationDefinitionsCreateOrUpdateResponse = ApplicationDefinition;
274
+
275
+ /** Optional parameters. */
276
+ export declare interface ApplicationDefinitionsDeleteByIdOptionalParams extends coreClient.OperationOptions {
277
+ /** Delay to wait until next poll, in milliseconds. */
278
+ updateIntervalInMs?: number;
279
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
280
+ resumeFrom?: string;
281
+ }
282
+
283
+ /** Optional parameters. */
284
+ export declare interface ApplicationDefinitionsDeleteOptionalParams extends coreClient.OperationOptions {
285
+ /** Delay to wait until next poll, in milliseconds. */
286
+ updateIntervalInMs?: number;
287
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
288
+ resumeFrom?: string;
289
+ }
290
+
291
+ /** Optional parameters. */
292
+ export declare interface ApplicationDefinitionsGetByIdOptionalParams extends coreClient.OperationOptions {
293
+ }
294
+
295
+ /** Contains response data for the getById operation. */
296
+ export declare type ApplicationDefinitionsGetByIdResponse = ApplicationDefinition;
297
+
298
+ /** Optional parameters. */
299
+ export declare interface ApplicationDefinitionsGetOptionalParams extends coreClient.OperationOptions {
300
+ }
301
+
302
+ /** Contains response data for the get operation. */
303
+ export declare type ApplicationDefinitionsGetResponse = ApplicationDefinition;
304
+
305
+ /** Optional parameters. */
306
+ export declare interface ApplicationDefinitionsListByResourceGroupNextNextOptionalParams extends coreClient.OperationOptions {
307
+ }
308
+
309
+ /** Contains response data for the listByResourceGroupNextNext operation. */
310
+ export declare type ApplicationDefinitionsListByResourceGroupNextNextResponse = ApplicationDefinitionListResult;
311
+
312
+ /** Optional parameters. */
313
+ export declare interface ApplicationDefinitionsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
314
+ }
315
+
316
+ /** Contains response data for the listByResourceGroupNext operation. */
317
+ export declare type ApplicationDefinitionsListByResourceGroupNextResponse = ApplicationDefinitionListResult;
318
+
319
+ /** Optional parameters. */
320
+ export declare interface ApplicationDefinitionsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
321
+ }
322
+
323
+ /** Contains response data for the listByResourceGroup operation. */
324
+ export declare type ApplicationDefinitionsListByResourceGroupResponse = ApplicationDefinitionListResult;
325
+
326
+ /** List of managed applications. */
327
+ export declare interface ApplicationListResult {
328
+ /** The array of managed applications. */
329
+ value?: Application[];
330
+ /** The URL to use for getting the next set of results. */
331
+ nextLink?: string;
332
+ }
333
+
334
+ /** Defines values for ApplicationLockLevel. */
335
+ export declare type ApplicationLockLevel = "CanNotDelete" | "ReadOnly" | "None";
336
+
337
+ /** Information about managed application. */
338
+ export declare type ApplicationPatchable = GenericResource & {
339
+ /** The plan information. */
340
+ plan?: PlanPatchable;
341
+ /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */
342
+ kind?: string;
343
+ /** The managed resource group Id. */
344
+ managedResourceGroupId?: string;
345
+ /** The fully qualified path of managed application definition Id. */
346
+ applicationDefinitionId?: string;
347
+ /** Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. */
348
+ parameters?: Record<string, unknown>;
349
+ /**
350
+ * Name and value pairs that define the managed application outputs.
351
+ * NOTE: This property will not be serialized. It can only be populated by the server.
352
+ */
353
+ readonly outputs?: Record<string, unknown>;
354
+ /**
355
+ * The managed application provisioning state.
356
+ * NOTE: This property will not be serialized. It can only be populated by the server.
357
+ */
358
+ readonly provisioningState?: ProvisioningState;
359
+ };
360
+
361
+ /** The managed application provider authorization. */
362
+ export declare interface ApplicationProviderAuthorization {
363
+ /** The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources. */
364
+ principalId: string;
365
+ /** The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. */
366
+ roleDefinitionId: string;
367
+ }
368
+
369
+ /** Interface representing a Applications. */
370
+ export declare interface Applications {
371
+ /**
372
+ * Gets all the applications within a resource group.
373
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
374
+ * @param options The options parameters.
375
+ */
376
+ listByResourceGroup(resourceGroupName: string, options?: ApplicationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Application>;
377
+ /**
378
+ * Gets all the applications within a subscription.
379
+ * @param options The options parameters.
380
+ */
381
+ listBySubscription(options?: ApplicationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Application>;
382
+ /**
383
+ * ListByResourceGroupNext
384
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
385
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
386
+ * @param options The options parameters.
387
+ */
388
+ listByResourceGroupNext(resourceGroupName: string, nextLink: string, options?: ApplicationsListByResourceGroupNextOptionalParams): PagedAsyncIterableIterator<Application>;
389
+ /**
390
+ * ListBySubscriptionNext
391
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
392
+ * @param options The options parameters.
393
+ */
394
+ listBySubscriptionNext(nextLink: string, options?: ApplicationsListBySubscriptionNextOptionalParams): PagedAsyncIterableIterator<Application>;
395
+ /**
396
+ * Gets the managed application.
397
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
398
+ * @param applicationName The name of the managed application.
399
+ * @param options The options parameters.
400
+ */
401
+ get(resourceGroupName: string, applicationName: string, options?: ApplicationsGetOptionalParams): Promise<ApplicationsGetResponse>;
402
+ /**
403
+ * Deletes the managed application.
404
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
405
+ * @param applicationName The name of the managed application.
406
+ * @param options The options parameters.
407
+ */
408
+ beginDelete(resourceGroupName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
409
+ /**
410
+ * Deletes the managed application.
411
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
412
+ * @param applicationName The name of the managed application.
413
+ * @param options The options parameters.
414
+ */
415
+ beginDeleteAndWait(resourceGroupName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise<void>;
416
+ /**
417
+ * Creates a new managed application.
418
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
419
+ * @param applicationName The name of the managed application.
420
+ * @param parameters Parameters supplied to the create or update a managed application.
421
+ * @param options The options parameters.
422
+ */
423
+ beginCreateOrUpdate(resourceGroupName: string, applicationName: string, parameters: Application, options?: ApplicationsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ApplicationsCreateOrUpdateResponse>, ApplicationsCreateOrUpdateResponse>>;
424
+ /**
425
+ * Creates a new managed application.
426
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
427
+ * @param applicationName The name of the managed application.
428
+ * @param parameters Parameters supplied to the create or update a managed application.
429
+ * @param options The options parameters.
430
+ */
431
+ beginCreateOrUpdateAndWait(resourceGroupName: string, applicationName: string, parameters: Application, options?: ApplicationsCreateOrUpdateOptionalParams): Promise<ApplicationsCreateOrUpdateResponse>;
432
+ /**
433
+ * Updates an existing managed application. The only value that can be updated via PATCH currently is
434
+ * the tags.
435
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
436
+ * @param applicationName The name of the managed application.
437
+ * @param options The options parameters.
438
+ */
439
+ update(resourceGroupName: string, applicationName: string, options?: ApplicationsUpdateOptionalParams): Promise<ApplicationsUpdateResponse>;
440
+ /**
441
+ * Gets the managed application.
442
+ * @param applicationId The fully qualified ID of the managed application, including the managed
443
+ * application name and the managed application resource type. Use the format,
444
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
445
+ * @param options The options parameters.
446
+ */
447
+ getById(applicationId: string, options?: ApplicationsGetByIdOptionalParams): Promise<ApplicationsGetByIdResponse>;
448
+ /**
449
+ * Deletes the managed application.
450
+ * @param applicationId The fully qualified ID of the managed application, including the managed
451
+ * application name and the managed application resource type. Use the format,
452
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
453
+ * @param options The options parameters.
454
+ */
455
+ beginDeleteById(applicationId: string, options?: ApplicationsDeleteByIdOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
456
+ /**
457
+ * Deletes the managed application.
458
+ * @param applicationId The fully qualified ID of the managed application, including the managed
459
+ * application name and the managed application resource type. Use the format,
460
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
461
+ * @param options The options parameters.
462
+ */
463
+ beginDeleteByIdAndWait(applicationId: string, options?: ApplicationsDeleteByIdOptionalParams): Promise<void>;
464
+ /**
465
+ * Creates a new managed application.
466
+ * @param applicationId The fully qualified ID of the managed application, including the managed
467
+ * application name and the managed application resource type. Use the format,
468
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
469
+ * @param parameters Parameters supplied to the create or update a managed application.
470
+ * @param options The options parameters.
471
+ */
472
+ beginCreateOrUpdateById(applicationId: string, parameters: Application, options?: ApplicationsCreateOrUpdateByIdOptionalParams): Promise<PollerLike<PollOperationState<ApplicationsCreateOrUpdateByIdResponse>, ApplicationsCreateOrUpdateByIdResponse>>;
473
+ /**
474
+ * Creates a new managed application.
475
+ * @param applicationId The fully qualified ID of the managed application, including the managed
476
+ * application name and the managed application resource type. Use the format,
477
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
478
+ * @param parameters Parameters supplied to the create or update a managed application.
479
+ * @param options The options parameters.
480
+ */
481
+ beginCreateOrUpdateByIdAndWait(applicationId: string, parameters: Application, options?: ApplicationsCreateOrUpdateByIdOptionalParams): Promise<ApplicationsCreateOrUpdateByIdResponse>;
482
+ /**
483
+ * Updates an existing managed application. The only value that can be updated via PATCH currently is
484
+ * the tags.
485
+ * @param applicationId The fully qualified ID of the managed application, including the managed
486
+ * application name and the managed application resource type. Use the format,
487
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
488
+ * @param options The options parameters.
489
+ */
490
+ updateById(applicationId: string, options?: ApplicationsUpdateByIdOptionalParams): Promise<ApplicationsUpdateByIdResponse>;
491
+ }
492
+
493
+ /** Optional parameters. */
494
+ export declare interface ApplicationsCreateOrUpdateByIdOptionalParams extends coreClient.OperationOptions {
495
+ /** Delay to wait until next poll, in milliseconds. */
496
+ updateIntervalInMs?: number;
497
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
498
+ resumeFrom?: string;
499
+ }
500
+
501
+ /** Contains response data for the createOrUpdateById operation. */
502
+ export declare type ApplicationsCreateOrUpdateByIdResponse = Application;
503
+
504
+ /** Optional parameters. */
505
+ export declare interface ApplicationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
506
+ /** Delay to wait until next poll, in milliseconds. */
507
+ updateIntervalInMs?: number;
508
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
509
+ resumeFrom?: string;
510
+ }
511
+
512
+ /** Contains response data for the createOrUpdate operation. */
513
+ export declare type ApplicationsCreateOrUpdateResponse = Application;
514
+
515
+ /** Optional parameters. */
516
+ export declare interface ApplicationsDeleteByIdOptionalParams extends coreClient.OperationOptions {
517
+ /** Delay to wait until next poll, in milliseconds. */
518
+ updateIntervalInMs?: number;
519
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
520
+ resumeFrom?: string;
521
+ }
522
+
523
+ /** Optional parameters. */
524
+ export declare interface ApplicationsDeleteOptionalParams extends coreClient.OperationOptions {
525
+ /** Delay to wait until next poll, in milliseconds. */
526
+ updateIntervalInMs?: number;
527
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
528
+ resumeFrom?: string;
529
+ }
530
+
531
+ /** Optional parameters. */
532
+ export declare interface ApplicationsGetByIdOptionalParams extends coreClient.OperationOptions {
533
+ }
534
+
535
+ /** Contains response data for the getById operation. */
536
+ export declare type ApplicationsGetByIdResponse = Application;
537
+
538
+ /** Optional parameters. */
539
+ export declare interface ApplicationsGetOptionalParams extends coreClient.OperationOptions {
540
+ }
541
+
542
+ /** Contains response data for the get operation. */
543
+ export declare type ApplicationsGetResponse = Application;
544
+
545
+ /** Optional parameters. */
546
+ export declare interface ApplicationsListByResourceGroupNextNextOptionalParams extends coreClient.OperationOptions {
547
+ }
548
+
549
+ /** Contains response data for the listByResourceGroupNextNext operation. */
550
+ export declare type ApplicationsListByResourceGroupNextNextResponse = ApplicationListResult;
551
+
552
+ /** Optional parameters. */
553
+ export declare interface ApplicationsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
554
+ }
555
+
556
+ /** Contains response data for the listByResourceGroupNext operation. */
557
+ export declare type ApplicationsListByResourceGroupNextResponse = ApplicationListResult;
558
+
559
+ /** Optional parameters. */
560
+ export declare interface ApplicationsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
561
+ }
562
+
563
+ /** Contains response data for the listByResourceGroup operation. */
564
+ export declare type ApplicationsListByResourceGroupResponse = ApplicationListResult;
565
+
566
+ /** Optional parameters. */
567
+ export declare interface ApplicationsListBySubscriptionNextNextOptionalParams extends coreClient.OperationOptions {
568
+ }
569
+
570
+ /** Contains response data for the listBySubscriptionNextNext operation. */
571
+ export declare type ApplicationsListBySubscriptionNextNextResponse = ApplicationListResult;
572
+
573
+ /** Optional parameters. */
574
+ export declare interface ApplicationsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
575
+ }
576
+
577
+ /** Contains response data for the listBySubscriptionNext operation. */
578
+ export declare type ApplicationsListBySubscriptionNextResponse = ApplicationListResult;
579
+
580
+ /** Optional parameters. */
581
+ export declare interface ApplicationsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
582
+ }
583
+
584
+ /** Contains response data for the listBySubscription operation. */
585
+ export declare type ApplicationsListBySubscriptionResponse = ApplicationListResult;
586
+
587
+ /** Optional parameters. */
588
+ export declare interface ApplicationsUpdateByIdOptionalParams extends coreClient.OperationOptions {
589
+ /** Parameters supplied to update an existing managed application. */
590
+ parameters?: Application;
591
+ }
592
+
593
+ /** Contains response data for the updateById operation. */
594
+ export declare type ApplicationsUpdateByIdResponse = Application;
595
+
596
+ /** Optional parameters. */
597
+ export declare interface ApplicationsUpdateOptionalParams extends coreClient.OperationOptions {
598
+ /** Parameters supplied to update an existing managed application. */
599
+ parameters?: ApplicationPatchable;
600
+ }
601
+
602
+ /** Contains response data for the update operation. */
603
+ export declare type ApplicationsUpdateResponse = Application;
604
+
605
+ /** Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message. */
606
+ export declare interface ErrorResponse {
607
+ /** Http status code. */
608
+ httpStatus?: string;
609
+ /** Error code. */
610
+ errorCode?: string;
611
+ /** Error message indicating why the operation failed. */
612
+ errorMessage?: string;
613
+ }
614
+
615
+ /** Resource information. */
616
+ export declare type GenericResource = Resource & {
617
+ /** ID of the resource that manages this resource. */
618
+ managedBy?: string;
619
+ /** The SKU of the resource. */
620
+ sku?: Sku;
621
+ /** The identity of the resource. */
622
+ identity?: Identity;
623
+ };
624
+
625
+ /** Identity for the resource. */
626
+ export declare interface Identity {
627
+ /**
628
+ * The principal ID of resource identity.
629
+ * NOTE: This property will not be serialized. It can only be populated by the server.
630
+ */
631
+ readonly principalId?: string;
632
+ /**
633
+ * The tenant ID of resource.
634
+ * NOTE: This property will not be serialized. It can only be populated by the server.
635
+ */
636
+ readonly tenantId?: string;
637
+ /** The identity type. */
638
+ type?: "SystemAssigned";
639
+ }
640
+
641
+ /** Known values of {@link ProvisioningState} that the service accepts. */
642
+ export declare enum KnownProvisioningState {
643
+ Accepted = "Accepted",
644
+ Running = "Running",
645
+ Ready = "Ready",
646
+ Creating = "Creating",
647
+ Created = "Created",
648
+ Deleting = "Deleting",
649
+ Deleted = "Deleted",
650
+ Canceled = "Canceled",
651
+ Failed = "Failed",
652
+ Succeeded = "Succeeded",
653
+ Updating = "Updating"
654
+ }
655
+
656
+ /** Microsoft.Solutions operation */
657
+ export declare interface Operation {
658
+ /** Operation name: {provider}/{resource}/{operation} */
659
+ name?: string;
660
+ /** The object that represents the operation. */
661
+ display?: OperationDisplay;
662
+ }
663
+
664
+ /** The object that represents the operation. */
665
+ export declare interface OperationDisplay {
666
+ /** Service provider: Microsoft.Solutions */
667
+ provider?: string;
668
+ /** Resource on which the operation is performed: Application, JitRequest, etc. */
669
+ resource?: string;
670
+ /** Operation type: Read, write, delete, etc. */
671
+ operation?: string;
672
+ }
673
+
674
+ /** Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the next set of results. */
675
+ export declare interface OperationListResult {
676
+ /** List of Microsoft.Solutions operations. */
677
+ value?: Operation[];
678
+ /** URL to get the next set of operation list results if there are any. */
679
+ nextLink?: string;
680
+ }
681
+
682
+ /** Plan for the managed application. */
683
+ export declare interface Plan {
684
+ /** The plan name. */
685
+ name: string;
686
+ /** The publisher ID. */
687
+ publisher: string;
688
+ /** The product code. */
689
+ product: string;
690
+ /** The promotion code. */
691
+ promotionCode?: string;
692
+ /** The plan's version. */
693
+ version: string;
694
+ }
695
+
696
+ /** Plan for the managed application. */
697
+ export declare interface PlanPatchable {
698
+ /** The plan name. */
699
+ name?: string;
700
+ /** The publisher ID. */
701
+ publisher?: string;
702
+ /** The product code. */
703
+ product?: string;
704
+ /** The promotion code. */
705
+ promotionCode?: string;
706
+ /** The plan's version. */
707
+ version?: string;
708
+ }
709
+
710
+ /**
711
+ * Defines values for ProvisioningState. \
712
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
713
+ * this enum contains the known values that the service supports.
714
+ * ### Known values supported by the service
715
+ * **Accepted** \
716
+ * **Running** \
717
+ * **Ready** \
718
+ * **Creating** \
719
+ * **Created** \
720
+ * **Deleting** \
721
+ * **Deleted** \
722
+ * **Canceled** \
723
+ * **Failed** \
724
+ * **Succeeded** \
725
+ * **Updating**
726
+ */
727
+ export declare type ProvisioningState = string;
728
+
729
+ /** Resource information. */
730
+ export declare interface Resource {
731
+ /**
732
+ * Resource ID
733
+ * NOTE: This property will not be serialized. It can only be populated by the server.
734
+ */
735
+ readonly id?: string;
736
+ /**
737
+ * Resource name
738
+ * NOTE: This property will not be serialized. It can only be populated by the server.
739
+ */
740
+ readonly name?: string;
741
+ /**
742
+ * Resource type
743
+ * NOTE: This property will not be serialized. It can only be populated by the server.
744
+ */
745
+ readonly type?: string;
746
+ /** Resource location */
747
+ location?: string;
748
+ /** Resource tags */
749
+ tags?: {
750
+ [propertyName: string]: string;
751
+ };
752
+ }
753
+
754
+ /** SKU for the resource. */
755
+ export declare interface Sku {
756
+ /** The SKU name. */
757
+ name: string;
758
+ /** The SKU tier. */
759
+ tier?: string;
760
+ /** The SKU size. */
761
+ size?: string;
762
+ /** The SKU family. */
763
+ family?: string;
764
+ /** The SKU model. */
765
+ model?: string;
766
+ /** The SKU capacity. */
767
+ capacity?: number;
768
+ }
769
+
770
+ export { }