@azure/arm-managedapplications 2.1.1-alpha.20230810.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/CHANGELOG.md +182 -8
  2. package/LICENSE +1 -1
  3. package/dist/index.js +2905 -1060
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateByIdSample.js +14 -8
  8. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateByIdSample.js.map +1 -1
  9. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateSample.js +14 -8
  10. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateSample.js.map +1 -1
  11. package/dist-esm/samples-dev/applicationDefinitionsDeleteByIdSample.js +13 -6
  12. package/dist-esm/samples-dev/applicationDefinitionsDeleteByIdSample.js.map +1 -1
  13. package/dist-esm/samples-dev/applicationDefinitionsDeleteSample.js +13 -6
  14. package/dist-esm/samples-dev/applicationDefinitionsDeleteSample.js.map +1 -1
  15. package/dist-esm/samples-dev/applicationDefinitionsGetByIdSample.js +11 -4
  16. package/dist-esm/samples-dev/applicationDefinitionsGetByIdSample.js.map +1 -1
  17. package/dist-esm/samples-dev/applicationDefinitionsGetSample.js +11 -4
  18. package/dist-esm/samples-dev/applicationDefinitionsGetSample.js.map +1 -1
  19. package/dist-esm/samples-dev/applicationDefinitionsListByResourceGroupSample.js +12 -5
  20. package/dist-esm/samples-dev/applicationDefinitionsListByResourceGroupSample.js.map +1 -1
  21. package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.d.ts +2 -0
  22. package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.d.ts.map +1 -0
  23. package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.js +57 -0
  24. package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.js.map +1 -0
  25. package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.d.ts +2 -0
  26. package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.d.ts.map +1 -0
  27. package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.js +41 -0
  28. package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.js.map +1 -0
  29. package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.d.ts +2 -0
  30. package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.js +41 -0
  32. package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.js.map +1 -0
  33. package/dist-esm/samples-dev/applicationsCreateOrUpdateByIdSample.js +15 -9
  34. package/dist-esm/samples-dev/applicationsCreateOrUpdateByIdSample.js.map +1 -1
  35. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js +14 -7
  36. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/applicationsDeleteByIdSample.js +12 -6
  38. package/dist-esm/samples-dev/applicationsDeleteByIdSample.js.map +1 -1
  39. package/dist-esm/samples-dev/applicationsDeleteSample.js +12 -5
  40. package/dist-esm/samples-dev/applicationsDeleteSample.js.map +1 -1
  41. package/dist-esm/samples-dev/applicationsGetByIdSample.js +12 -6
  42. package/dist-esm/samples-dev/applicationsGetByIdSample.js.map +1 -1
  43. package/dist-esm/samples-dev/applicationsGetSample.js +11 -4
  44. package/dist-esm/samples-dev/applicationsGetSample.js.map +1 -1
  45. package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.d.ts +2 -0
  46. package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.d.ts.map +1 -0
  47. package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.js +38 -0
  48. package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.js.map +1 -0
  49. package/dist-esm/samples-dev/applicationsListByResourceGroupSample.js +14 -7
  50. package/dist-esm/samples-dev/applicationsListByResourceGroupSample.js.map +1 -1
  51. package/dist-esm/samples-dev/applicationsListBySubscriptionSample.js +13 -6
  52. package/dist-esm/samples-dev/applicationsListBySubscriptionSample.js.map +1 -1
  53. package/dist-esm/samples-dev/applicationsListTokensSample.d.ts +2 -0
  54. package/dist-esm/samples-dev/applicationsListTokensSample.d.ts.map +1 -0
  55. package/dist-esm/samples-dev/applicationsListTokensSample.js +42 -0
  56. package/dist-esm/samples-dev/applicationsListTokensSample.js.map +1 -0
  57. package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.d.ts +2 -0
  58. package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.d.ts.map +1 -0
  59. package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.js +38 -0
  60. package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.js.map +1 -0
  61. package/dist-esm/samples-dev/applicationsUpdateAccessSample.d.ts +2 -0
  62. package/dist-esm/samples-dev/applicationsUpdateAccessSample.d.ts.map +1 -0
  63. package/dist-esm/samples-dev/applicationsUpdateAccessSample.js +49 -0
  64. package/dist-esm/samples-dev/applicationsUpdateAccessSample.js.map +1 -0
  65. package/dist-esm/samples-dev/applicationsUpdateByIdSample.js +15 -9
  66. package/dist-esm/samples-dev/applicationsUpdateByIdSample.js.map +1 -1
  67. package/dist-esm/samples-dev/applicationsUpdateSample.js +15 -8
  68. package/dist-esm/samples-dev/applicationsUpdateSample.js.map +1 -1
  69. package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.d.ts +2 -0
  70. package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.d.ts.map +1 -0
  71. package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.js +52 -0
  72. package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.js.map +1 -0
  73. package/dist-esm/samples-dev/jitRequestsDeleteSample.d.ts +2 -0
  74. package/dist-esm/samples-dev/jitRequestsDeleteSample.d.ts.map +1 -0
  75. package/dist-esm/samples-dev/jitRequestsDeleteSample.js +38 -0
  76. package/dist-esm/samples-dev/jitRequestsDeleteSample.js.map +1 -0
  77. package/dist-esm/samples-dev/jitRequestsGetSample.d.ts +2 -0
  78. package/dist-esm/samples-dev/jitRequestsGetSample.d.ts.map +1 -0
  79. package/dist-esm/samples-dev/jitRequestsGetSample.js +38 -0
  80. package/dist-esm/samples-dev/jitRequestsGetSample.js.map +1 -0
  81. package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.d.ts +2 -0
  82. package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.d.ts.map +1 -0
  83. package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.js +37 -0
  84. package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.js.map +1 -0
  85. package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.d.ts +2 -0
  86. package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.d.ts.map +1 -0
  87. package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.js +36 -0
  88. package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.js.map +1 -0
  89. package/dist-esm/samples-dev/jitRequestsUpdateSample.d.ts +2 -0
  90. package/dist-esm/samples-dev/jitRequestsUpdateSample.d.ts.map +1 -0
  91. package/dist-esm/samples-dev/jitRequestsUpdateSample.js +39 -0
  92. package/dist-esm/samples-dev/jitRequestsUpdateSample.js.map +1 -0
  93. package/dist-esm/samples-dev/listOperationsSample.js +10 -4
  94. package/dist-esm/samples-dev/listOperationsSample.js.map +1 -1
  95. package/dist-esm/src/applicationClient.d.ts +4 -2
  96. package/dist-esm/src/applicationClient.d.ts.map +1 -1
  97. package/dist-esm/src/applicationClient.js +17 -13
  98. package/dist-esm/src/applicationClient.js.map +1 -1
  99. package/dist-esm/src/lroImpl.d.ts +6 -11
  100. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  101. package/dist-esm/src/lroImpl.js +12 -20
  102. package/dist-esm/src/lroImpl.js.map +1 -1
  103. package/dist-esm/src/models/index.d.ts +865 -88
  104. package/dist-esm/src/models/index.d.ts.map +1 -1
  105. package/dist-esm/src/models/index.js +148 -6
  106. package/dist-esm/src/models/index.js.map +1 -1
  107. package/dist-esm/src/models/mappers.d.ts +33 -4
  108. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  109. package/dist-esm/src/models/mappers.js +1146 -112
  110. package/dist-esm/src/models/mappers.js.map +1 -1
  111. package/dist-esm/src/models/parameters.d.ts +8 -2
  112. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  113. package/dist-esm/src/models/parameters.js +59 -16
  114. package/dist-esm/src/models/parameters.js.map +1 -1
  115. package/dist-esm/src/operations/applicationDefinitions.d.ts +31 -28
  116. package/dist-esm/src/operations/applicationDefinitions.d.ts.map +1 -1
  117. package/dist-esm/src/operations/applicationDefinitions.js +190 -197
  118. package/dist-esm/src/operations/applicationDefinitions.js.map +1 -1
  119. package/dist-esm/src/operations/applications.d.ts +78 -20
  120. package/dist-esm/src/operations/applications.d.ts.map +1 -1
  121. package/dist-esm/src/operations/applications.js +407 -55
  122. package/dist-esm/src/operations/applications.js.map +1 -1
  123. package/dist-esm/src/operations/index.d.ts +1 -0
  124. package/dist-esm/src/operations/index.d.ts.map +1 -1
  125. package/dist-esm/src/operations/index.js +1 -0
  126. package/dist-esm/src/operations/index.js.map +1 -1
  127. package/dist-esm/src/operations/jitRequests.d.ts +63 -0
  128. package/dist-esm/src/operations/jitRequests.d.ts.map +1 -0
  129. package/dist-esm/src/operations/jitRequests.js +260 -0
  130. package/dist-esm/src/operations/jitRequests.js.map +1 -0
  131. package/dist-esm/src/operationsInterfaces/applicationDefinitions.d.ts +19 -29
  132. package/dist-esm/src/operationsInterfaces/applicationDefinitions.d.ts.map +1 -1
  133. package/dist-esm/src/operationsInterfaces/applications.d.ts +76 -18
  134. package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -1
  135. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  136. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  137. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  138. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  139. package/dist-esm/src/operationsInterfaces/jitRequests.d.ts +55 -0
  140. package/dist-esm/src/operationsInterfaces/jitRequests.d.ts.map +1 -0
  141. package/dist-esm/src/operationsInterfaces/jitRequests.js +9 -0
  142. package/dist-esm/src/operationsInterfaces/jitRequests.js.map +1 -0
  143. package/dist-esm/src/pagingHelper.d.ts +4 -4
  144. package/dist-esm/src/pagingHelper.js +4 -4
  145. package/dist-esm/test/managedapplications_operations_test.spec.d.ts +4 -0
  146. package/dist-esm/test/managedapplications_operations_test.spec.d.ts.map +1 -0
  147. package/dist-esm/test/managedapplications_operations_test.spec.js +76 -0
  148. package/dist-esm/test/managedapplications_operations_test.spec.js.map +1 -0
  149. package/package.json +10 -8
  150. package/review/arm-managedapplications.api.md +536 -53
  151. package/src/applicationClient.ts +37 -8
  152. package/src/lroImpl.ts +31 -23
  153. package/src/models/index.ts +952 -96
  154. package/src/models/mappers.ts +1273 -173
  155. package/src/models/parameters.ts +71 -17
  156. package/src/operations/applicationDefinitions.ts +218 -300
  157. package/src/operations/applications.ts +561 -80
  158. package/src/operations/index.ts +1 -0
  159. package/src/operations/jitRequests.ts +366 -0
  160. package/src/operationsInterfaces/applicationDefinitions.ts +35 -55
  161. package/src/operationsInterfaces/applications.ts +130 -20
  162. package/src/operationsInterfaces/index.ts +1 -0
  163. package/src/operationsInterfaces/jitRequests.ts +110 -0
  164. package/src/pagingHelper.ts +4 -4
  165. package/tsconfig.json +0 -8
  166. package/types/arm-managedapplications.d.ts +1080 -118
  167. package/dist-esm/test/sampleTest.d.ts +0 -2
  168. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  169. package/dist-esm/test/sampleTest.js +0 -38
  170. package/dist-esm/test/sampleTest.js.map +0 -1
package/dist/index.js CHANGED
@@ -37,11 +37,11 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
37
37
  */
38
38
  const pageMap = new WeakMap();
39
39
  /**
40
- * Given a result page from a pageable operation, returns a
41
- * continuation token that can be used to begin paging from
40
+ * Given the last `.value` produced by the `byPage` iterator,
41
+ * returns a continuation token that can be used to begin paging from
42
42
  * that point later.
43
- * @param page A result object from calling .byPage() on a paged operation.
44
- * @returns The continuation token that can be passed into byPage().
43
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
+ * @returns The continuation token that can be passed into byPage() during future calls.
45
45
  */
46
46
  function getContinuationToken(page) {
47
47
  var _a;
@@ -67,19 +67,31 @@ function setContinuationToken(page, continuationToken) {
67
67
  * Code generated by Microsoft (R) AutoRest Code Generator.
68
68
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
69
69
  */
70
+ /** Known values of {@link Origin} that the service accepts. */
71
+ exports.KnownOrigin = void 0;
72
+ (function (KnownOrigin) {
73
+ /** User */
74
+ KnownOrigin["User"] = "user";
75
+ /** System */
76
+ KnownOrigin["System"] = "system";
77
+ /** UserSystem */
78
+ KnownOrigin["UserSystem"] = "user,system";
79
+ })(exports.KnownOrigin || (exports.KnownOrigin = {}));
80
+ /** Known values of {@link ActionType} that the service accepts. */
81
+ exports.KnownActionType = void 0;
82
+ (function (KnownActionType) {
83
+ /** Internal */
84
+ KnownActionType["Internal"] = "Internal";
85
+ })(exports.KnownActionType || (exports.KnownActionType = {}));
70
86
  /** Known values of {@link ProvisioningState} that the service accepts. */
71
87
  exports.KnownProvisioningState = void 0;
72
88
  (function (KnownProvisioningState) {
89
+ /** NotSpecified */
90
+ KnownProvisioningState["NotSpecified"] = "NotSpecified";
73
91
  /** Accepted */
74
92
  KnownProvisioningState["Accepted"] = "Accepted";
75
93
  /** Running */
76
94
  KnownProvisioningState["Running"] = "Running";
77
- /** Ready */
78
- KnownProvisioningState["Ready"] = "Ready";
79
- /** Creating */
80
- KnownProvisioningState["Creating"] = "Creating";
81
- /** Created */
82
- KnownProvisioningState["Created"] = "Created";
83
95
  /** Deleting */
84
96
  KnownProvisioningState["Deleting"] = "Deleting";
85
97
  /** Deleted */
@@ -93,6 +105,136 @@ exports.KnownProvisioningState = void 0;
93
105
  /** Updating */
94
106
  KnownProvisioningState["Updating"] = "Updating";
95
107
  })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
108
+ /** Known values of {@link JitApprovalMode} that the service accepts. */
109
+ exports.KnownJitApprovalMode = void 0;
110
+ (function (KnownJitApprovalMode) {
111
+ /** NotSpecified */
112
+ KnownJitApprovalMode["NotSpecified"] = "NotSpecified";
113
+ /** AutoApprove */
114
+ KnownJitApprovalMode["AutoApprove"] = "AutoApprove";
115
+ /** ManualApprove */
116
+ KnownJitApprovalMode["ManualApprove"] = "ManualApprove";
117
+ })(exports.KnownJitApprovalMode || (exports.KnownJitApprovalMode = {}));
118
+ /** Known values of {@link JitApproverType} that the service accepts. */
119
+ exports.KnownJitApproverType = void 0;
120
+ (function (KnownJitApproverType) {
121
+ /** User */
122
+ KnownJitApproverType["User"] = "user";
123
+ /** Group */
124
+ KnownJitApproverType["Group"] = "group";
125
+ })(exports.KnownJitApproverType || (exports.KnownJitApproverType = {}));
126
+ /** Known values of {@link ApplicationManagementMode} that the service accepts. */
127
+ exports.KnownApplicationManagementMode = void 0;
128
+ (function (KnownApplicationManagementMode) {
129
+ /** NotSpecified */
130
+ KnownApplicationManagementMode["NotSpecified"] = "NotSpecified";
131
+ /** Unmanaged */
132
+ KnownApplicationManagementMode["Unmanaged"] = "Unmanaged";
133
+ /** Managed */
134
+ KnownApplicationManagementMode["Managed"] = "Managed";
135
+ })(exports.KnownApplicationManagementMode || (exports.KnownApplicationManagementMode = {}));
136
+ /** Known values of {@link ApplicationArtifactName} that the service accepts. */
137
+ exports.KnownApplicationArtifactName = void 0;
138
+ (function (KnownApplicationArtifactName) {
139
+ /** NotSpecified */
140
+ KnownApplicationArtifactName["NotSpecified"] = "NotSpecified";
141
+ /** ViewDefinition */
142
+ KnownApplicationArtifactName["ViewDefinition"] = "ViewDefinition";
143
+ /** Authorizations */
144
+ KnownApplicationArtifactName["Authorizations"] = "Authorizations";
145
+ /** CustomRoleDefinition */
146
+ KnownApplicationArtifactName["CustomRoleDefinition"] = "CustomRoleDefinition";
147
+ })(exports.KnownApplicationArtifactName || (exports.KnownApplicationArtifactName = {}));
148
+ /** Known values of {@link CreatedByType} that the service accepts. */
149
+ exports.KnownCreatedByType = void 0;
150
+ (function (KnownCreatedByType) {
151
+ /** User */
152
+ KnownCreatedByType["User"] = "User";
153
+ /** Application */
154
+ KnownCreatedByType["Application"] = "Application";
155
+ /** ManagedIdentity */
156
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
157
+ /** Key */
158
+ KnownCreatedByType["Key"] = "Key";
159
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
160
+ /** Known values of {@link ApplicationDefinitionArtifactName} that the service accepts. */
161
+ exports.KnownApplicationDefinitionArtifactName = void 0;
162
+ (function (KnownApplicationDefinitionArtifactName) {
163
+ /** NotSpecified */
164
+ KnownApplicationDefinitionArtifactName["NotSpecified"] = "NotSpecified";
165
+ /** ApplicationResourceTemplate */
166
+ KnownApplicationDefinitionArtifactName["ApplicationResourceTemplate"] = "ApplicationResourceTemplate";
167
+ /** CreateUiDefinition */
168
+ KnownApplicationDefinitionArtifactName["CreateUiDefinition"] = "CreateUiDefinition";
169
+ /** MainTemplateParameters */
170
+ KnownApplicationDefinitionArtifactName["MainTemplateParameters"] = "MainTemplateParameters";
171
+ })(exports.KnownApplicationDefinitionArtifactName || (exports.KnownApplicationDefinitionArtifactName = {}));
172
+ /** Known values of {@link DeploymentMode} that the service accepts. */
173
+ exports.KnownDeploymentMode = void 0;
174
+ (function (KnownDeploymentMode) {
175
+ /** NotSpecified */
176
+ KnownDeploymentMode["NotSpecified"] = "NotSpecified";
177
+ /** Incremental */
178
+ KnownDeploymentMode["Incremental"] = "Incremental";
179
+ /** Complete */
180
+ KnownDeploymentMode["Complete"] = "Complete";
181
+ })(exports.KnownDeploymentMode || (exports.KnownDeploymentMode = {}));
182
+ /** Known values of {@link JitSchedulingType} that the service accepts. */
183
+ exports.KnownJitSchedulingType = void 0;
184
+ (function (KnownJitSchedulingType) {
185
+ /** NotSpecified */
186
+ KnownJitSchedulingType["NotSpecified"] = "NotSpecified";
187
+ /** Once */
188
+ KnownJitSchedulingType["Once"] = "Once";
189
+ /** Recurring */
190
+ KnownJitSchedulingType["Recurring"] = "Recurring";
191
+ })(exports.KnownJitSchedulingType || (exports.KnownJitSchedulingType = {}));
192
+ /** Known values of {@link JitRequestState} that the service accepts. */
193
+ exports.KnownJitRequestState = void 0;
194
+ (function (KnownJitRequestState) {
195
+ /** NotSpecified */
196
+ KnownJitRequestState["NotSpecified"] = "NotSpecified";
197
+ /** Pending */
198
+ KnownJitRequestState["Pending"] = "Pending";
199
+ /** Approved */
200
+ KnownJitRequestState["Approved"] = "Approved";
201
+ /** Denied */
202
+ KnownJitRequestState["Denied"] = "Denied";
203
+ /** Failed */
204
+ KnownJitRequestState["Failed"] = "Failed";
205
+ /** Canceled */
206
+ KnownJitRequestState["Canceled"] = "Canceled";
207
+ /** Expired */
208
+ KnownJitRequestState["Expired"] = "Expired";
209
+ /** Timeout */
210
+ KnownJitRequestState["Timeout"] = "Timeout";
211
+ })(exports.KnownJitRequestState || (exports.KnownJitRequestState = {}));
212
+ /** Known values of {@link Status} that the service accepts. */
213
+ exports.KnownStatus = void 0;
214
+ (function (KnownStatus) {
215
+ /** NotSpecified */
216
+ KnownStatus["NotSpecified"] = "NotSpecified";
217
+ /** Elevate */
218
+ KnownStatus["Elevate"] = "Elevate";
219
+ /** Remove */
220
+ KnownStatus["Remove"] = "Remove";
221
+ })(exports.KnownStatus || (exports.KnownStatus = {}));
222
+ /** Known values of {@link Substatus} that the service accepts. */
223
+ exports.KnownSubstatus = void 0;
224
+ (function (KnownSubstatus) {
225
+ /** NotSpecified */
226
+ KnownSubstatus["NotSpecified"] = "NotSpecified";
227
+ /** Approved */
228
+ KnownSubstatus["Approved"] = "Approved";
229
+ /** Denied */
230
+ KnownSubstatus["Denied"] = "Denied";
231
+ /** Failed */
232
+ KnownSubstatus["Failed"] = "Failed";
233
+ /** Expired */
234
+ KnownSubstatus["Expired"] = "Expired";
235
+ /** Timeout */
236
+ KnownSubstatus["Timeout"] = "Timeout";
237
+ })(exports.KnownSubstatus || (exports.KnownSubstatus = {}));
96
238
 
97
239
  /*
98
240
  * Copyright (c) Microsoft Corporation.
@@ -108,6 +250,7 @@ const OperationListResult = {
108
250
  modelProperties: {
109
251
  value: {
110
252
  serializedName: "value",
253
+ readOnly: true,
111
254
  type: {
112
255
  name: "Sequence",
113
256
  element: {
@@ -120,6 +263,7 @@ const OperationListResult = {
120
263
  },
121
264
  nextLink: {
122
265
  serializedName: "nextLink",
266
+ readOnly: true,
123
267
  type: {
124
268
  name: "String"
125
269
  }
@@ -134,16 +278,38 @@ const Operation = {
134
278
  modelProperties: {
135
279
  name: {
136
280
  serializedName: "name",
281
+ readOnly: true,
137
282
  type: {
138
283
  name: "String"
139
284
  }
140
285
  },
286
+ isDataAction: {
287
+ serializedName: "isDataAction",
288
+ readOnly: true,
289
+ type: {
290
+ name: "Boolean"
291
+ }
292
+ },
141
293
  display: {
142
294
  serializedName: "display",
143
295
  type: {
144
296
  name: "Composite",
145
297
  className: "OperationDisplay"
146
298
  }
299
+ },
300
+ origin: {
301
+ serializedName: "origin",
302
+ readOnly: true,
303
+ type: {
304
+ name: "String"
305
+ }
306
+ },
307
+ actionType: {
308
+ serializedName: "actionType",
309
+ readOnly: true,
310
+ type: {
311
+ name: "String"
312
+ }
147
313
  }
148
314
  }
149
315
  }
@@ -155,18 +321,28 @@ const OperationDisplay = {
155
321
  modelProperties: {
156
322
  provider: {
157
323
  serializedName: "provider",
324
+ readOnly: true,
158
325
  type: {
159
326
  name: "String"
160
327
  }
161
328
  },
162
329
  resource: {
163
330
  serializedName: "resource",
331
+ readOnly: true,
164
332
  type: {
165
333
  name: "String"
166
334
  }
167
335
  },
168
336
  operation: {
169
337
  serializedName: "operation",
338
+ readOnly: true,
339
+ type: {
340
+ name: "String"
341
+ }
342
+ },
343
+ description: {
344
+ serializedName: "description",
345
+ readOnly: true,
170
346
  type: {
171
347
  name: "String"
172
348
  }
@@ -174,41 +350,106 @@ const OperationDisplay = {
174
350
  }
175
351
  }
176
352
  };
177
- const Plan = {
353
+ const ErrorResponse = {
178
354
  type: {
179
355
  name: "Composite",
180
- className: "Plan",
356
+ className: "ErrorResponse",
181
357
  modelProperties: {
182
- name: {
183
- serializedName: "name",
184
- required: true,
358
+ error: {
359
+ serializedName: "error",
360
+ type: {
361
+ name: "Composite",
362
+ className: "ErrorDetail"
363
+ }
364
+ }
365
+ }
366
+ }
367
+ };
368
+ const ErrorDetail = {
369
+ type: {
370
+ name: "Composite",
371
+ className: "ErrorDetail",
372
+ modelProperties: {
373
+ code: {
374
+ serializedName: "code",
375
+ readOnly: true,
185
376
  type: {
186
377
  name: "String"
187
378
  }
188
379
  },
189
- publisher: {
190
- serializedName: "publisher",
191
- required: true,
380
+ message: {
381
+ serializedName: "message",
382
+ readOnly: true,
192
383
  type: {
193
384
  name: "String"
194
385
  }
195
386
  },
196
- product: {
197
- serializedName: "product",
198
- required: true,
387
+ target: {
388
+ serializedName: "target",
389
+ readOnly: true,
199
390
  type: {
200
391
  name: "String"
201
392
  }
202
393
  },
203
- promotionCode: {
204
- serializedName: "promotionCode",
394
+ details: {
395
+ serializedName: "details",
396
+ readOnly: true,
397
+ type: {
398
+ name: "Sequence",
399
+ element: {
400
+ type: {
401
+ name: "Composite",
402
+ className: "ErrorDetail"
403
+ }
404
+ }
405
+ }
406
+ },
407
+ additionalInfo: {
408
+ serializedName: "additionalInfo",
409
+ readOnly: true,
410
+ type: {
411
+ name: "Sequence",
412
+ element: {
413
+ type: {
414
+ name: "Composite",
415
+ className: "ErrorAdditionalInfo"
416
+ }
417
+ }
418
+ }
419
+ }
420
+ }
421
+ }
422
+ };
423
+ const ErrorAdditionalInfo = {
424
+ type: {
425
+ name: "Composite",
426
+ className: "ErrorAdditionalInfo",
427
+ modelProperties: {
428
+ type: {
429
+ serializedName: "type",
430
+ readOnly: true,
205
431
  type: {
206
432
  name: "String"
207
433
  }
208
434
  },
209
- version: {
210
- serializedName: "version",
211
- required: true,
435
+ info: {
436
+ serializedName: "info",
437
+ readOnly: true,
438
+ type: {
439
+ name: "Dictionary",
440
+ value: { type: { name: "any" } }
441
+ }
442
+ }
443
+ }
444
+ }
445
+ };
446
+ const ApplicationBillingDetailsDefinition = {
447
+ type: {
448
+ name: "Composite",
449
+ className: "ApplicationBillingDetailsDefinition",
450
+ modelProperties: {
451
+ resourceUsageId: {
452
+ serializedName: "resourceUsageId",
212
453
  type: {
213
454
  name: "String"
214
455
  }
@@ -216,74 +457,115 @@ const Plan = {
216
457
  }
217
458
  }
218
459
  };
219
- const Sku = {
460
+ const ApplicationJitAccessPolicy = {
220
461
  type: {
221
462
  name: "Composite",
222
- className: "Sku",
463
+ className: "ApplicationJitAccessPolicy",
223
464
  modelProperties: {
224
- name: {
225
- serializedName: "name",
465
+ jitAccessEnabled: {
466
+ serializedName: "jitAccessEnabled",
226
467
  required: true,
227
468
  type: {
228
- name: "String"
469
+ name: "Boolean"
229
470
  }
230
471
  },
231
- tier: {
232
- serializedName: "tier",
472
+ jitApprovalMode: {
473
+ serializedName: "jitApprovalMode",
233
474
  type: {
234
475
  name: "String"
235
476
  }
236
477
  },
237
- size: {
238
- serializedName: "size",
478
+ jitApprovers: {
479
+ serializedName: "jitApprovers",
239
480
  type: {
240
- name: "String"
481
+ name: "Sequence",
482
+ element: {
483
+ type: {
484
+ name: "Composite",
485
+ className: "JitApproverDefinition"
486
+ }
487
+ }
241
488
  }
242
489
  },
243
- family: {
244
- serializedName: "family",
490
+ maximumJitAccessDuration: {
491
+ serializedName: "maximumJitAccessDuration",
492
+ type: {
493
+ name: "String"
494
+ }
495
+ }
496
+ }
497
+ }
498
+ };
499
+ const JitApproverDefinition = {
500
+ type: {
501
+ name: "Composite",
502
+ className: "JitApproverDefinition",
503
+ modelProperties: {
504
+ id: {
505
+ serializedName: "id",
506
+ required: true,
245
507
  type: {
246
508
  name: "String"
247
509
  }
248
510
  },
249
- model: {
250
- serializedName: "model",
511
+ type: {
512
+ serializedName: "type",
251
513
  type: {
252
514
  name: "String"
253
515
  }
254
516
  },
255
- capacity: {
256
- serializedName: "capacity",
517
+ displayName: {
518
+ serializedName: "displayName",
257
519
  type: {
258
- name: "Number"
520
+ name: "String"
259
521
  }
260
522
  }
261
523
  }
262
524
  }
263
525
  };
264
- const Identity = {
526
+ const ApplicationAuthorization = {
265
527
  type: {
266
528
  name: "Composite",
267
- className: "Identity",
529
+ className: "ApplicationAuthorization",
268
530
  modelProperties: {
269
531
  principalId: {
270
532
  serializedName: "principalId",
271
- readOnly: true,
533
+ required: true,
272
534
  type: {
273
535
  name: "String"
274
536
  }
275
537
  },
276
- tenantId: {
277
- serializedName: "tenantId",
278
- readOnly: true,
538
+ roleDefinitionId: {
539
+ serializedName: "roleDefinitionId",
540
+ required: true,
541
+ type: {
542
+ name: "String"
543
+ }
544
+ }
545
+ }
546
+ }
547
+ };
548
+ const ApplicationPackageContact = {
549
+ type: {
550
+ name: "Composite",
551
+ className: "ApplicationPackageContact",
552
+ modelProperties: {
553
+ contactName: {
554
+ serializedName: "contactName",
279
555
  type: {
280
556
  name: "String"
281
557
  }
282
558
  },
283
- type: {
284
- defaultValue: "SystemAssigned",
285
- isConstant: true,
286
- serializedName: "type",
559
+ email: {
560
+ serializedName: "email",
561
+ required: true,
562
+ type: {
563
+ name: "String"
564
+ }
565
+ },
566
+ phone: {
567
+ serializedName: "phone",
568
+ required: true,
287
569
  type: {
288
570
  name: "String"
289
571
  }
@@ -291,67 +573,75 @@ const Identity = {
291
573
  }
292
574
  }
293
575
  };
294
- const Resource = {
576
+ const ApplicationPackageSupportUrls = {
295
577
  type: {
296
578
  name: "Composite",
297
- className: "Resource",
579
+ className: "ApplicationPackageSupportUrls",
298
580
  modelProperties: {
299
- id: {
300
- serializedName: "id",
301
- readOnly: true,
581
+ publicAzure: {
582
+ serializedName: "publicAzure",
302
583
  type: {
303
584
  name: "String"
304
585
  }
305
586
  },
306
- name: {
307
- serializedName: "name",
308
- readOnly: true,
587
+ governmentCloud: {
588
+ serializedName: "governmentCloud",
309
589
  type: {
310
590
  name: "String"
311
591
  }
312
- },
313
- type: {
314
- serializedName: "type",
315
- readOnly: true,
592
+ }
593
+ }
594
+ }
595
+ };
596
+ const ApplicationArtifact = {
597
+ type: {
598
+ name: "Composite",
599
+ className: "ApplicationArtifact",
600
+ modelProperties: {
601
+ name: {
602
+ serializedName: "name",
603
+ required: true,
316
604
  type: {
317
605
  name: "String"
318
606
  }
319
607
  },
320
- location: {
321
- serializedName: "location",
608
+ uri: {
609
+ serializedName: "uri",
610
+ required: true,
322
611
  type: {
323
612
  name: "String"
324
613
  }
325
614
  },
326
- tags: {
327
- serializedName: "tags",
615
+ type: {
616
+ serializedName: "type",
617
+ required: true,
328
618
  type: {
329
- name: "Dictionary",
330
- value: { type: { name: "String" } }
619
+ name: "Enum",
620
+ allowedValues: ["NotSpecified", "Template", "Custom"]
331
621
  }
332
622
  }
333
623
  }
334
624
  }
335
625
  };
336
- const ErrorResponse = {
626
+ const ApplicationClientDetails = {
337
627
  type: {
338
628
  name: "Composite",
339
- className: "ErrorResponse",
629
+ className: "ApplicationClientDetails",
340
630
  modelProperties: {
341
- httpStatus: {
342
- serializedName: "httpStatus",
631
+ oid: {
632
+ serializedName: "oid",
343
633
  type: {
344
634
  name: "String"
345
635
  }
346
636
  },
347
- errorCode: {
348
- serializedName: "errorCode",
637
+ puid: {
638
+ serializedName: "puid",
349
639
  type: {
350
640
  name: "String"
351
641
  }
352
642
  },
353
- errorMessage: {
354
- serializedName: "errorMessage",
643
+ applicationId: {
644
+ serializedName: "applicationId",
355
645
  type: {
356
646
  name: "String"
357
647
  }
@@ -359,25 +649,28 @@ const ErrorResponse = {
359
649
  }
360
650
  }
361
651
  };
362
- const PlanPatchable = {
652
+ const Plan = {
363
653
  type: {
364
654
  name: "Composite",
365
- className: "PlanPatchable",
655
+ className: "Plan",
366
656
  modelProperties: {
367
657
  name: {
368
658
  serializedName: "name",
659
+ required: true,
369
660
  type: {
370
661
  name: "String"
371
662
  }
372
663
  },
373
664
  publisher: {
374
665
  serializedName: "publisher",
666
+ required: true,
375
667
  type: {
376
668
  name: "String"
377
669
  }
378
670
  },
379
671
  product: {
380
672
  serializedName: "product",
673
+ required: true,
381
674
  type: {
382
675
  name: "String"
383
676
  }
@@ -390,6 +683,7 @@ const PlanPatchable = {
390
683
  },
391
684
  version: {
392
685
  serializedName: "version",
686
+ required: true,
393
687
  type: {
394
688
  name: "String"
395
689
  }
@@ -397,495 +691,2486 @@ const PlanPatchable = {
397
691
  }
398
692
  }
399
693
  };
400
- const ApplicationProviderAuthorization = {
694
+ const Identity = {
401
695
  type: {
402
696
  name: "Composite",
403
- className: "ApplicationProviderAuthorization",
697
+ className: "Identity",
404
698
  modelProperties: {
405
699
  principalId: {
406
700
  serializedName: "principalId",
407
- required: true,
701
+ readOnly: true,
408
702
  type: {
409
703
  name: "String"
410
704
  }
411
705
  },
412
- roleDefinitionId: {
413
- serializedName: "roleDefinitionId",
414
- required: true,
706
+ tenantId: {
707
+ serializedName: "tenantId",
708
+ readOnly: true,
415
709
  type: {
416
710
  name: "String"
417
711
  }
712
+ },
713
+ type: {
714
+ serializedName: "type",
715
+ type: {
716
+ name: "Enum",
717
+ allowedValues: [
718
+ "SystemAssigned",
719
+ "UserAssigned",
720
+ "SystemAssigned, UserAssigned",
721
+ "None"
722
+ ]
723
+ }
724
+ },
725
+ userAssignedIdentities: {
726
+ serializedName: "userAssignedIdentities",
727
+ type: {
728
+ name: "Dictionary",
729
+ value: {
730
+ type: {
731
+ name: "Composite",
732
+ className: "UserAssignedResourceIdentity"
733
+ }
734
+ }
735
+ }
418
736
  }
419
737
  }
420
738
  }
421
739
  };
422
- const ApplicationArtifact = {
740
+ const UserAssignedResourceIdentity = {
423
741
  type: {
424
742
  name: "Composite",
425
- className: "ApplicationArtifact",
743
+ className: "UserAssignedResourceIdentity",
426
744
  modelProperties: {
427
- name: {
428
- serializedName: "name",
745
+ principalId: {
746
+ serializedName: "principalId",
747
+ readOnly: true,
429
748
  type: {
430
749
  name: "String"
431
750
  }
432
751
  },
433
- uri: {
434
- serializedName: "uri",
752
+ tenantId: {
753
+ serializedName: "tenantId",
754
+ readOnly: true,
435
755
  type: {
436
756
  name: "String"
437
757
  }
438
- },
439
- type: {
440
- serializedName: "type",
441
- type: {
442
- name: "Enum",
443
- allowedValues: ["Template", "Custom"]
444
- }
445
758
  }
446
759
  }
447
760
  }
448
761
  };
449
- const ApplicationDefinitionListResult = {
762
+ const Sku = {
450
763
  type: {
451
764
  name: "Composite",
452
- className: "ApplicationDefinitionListResult",
765
+ className: "Sku",
453
766
  modelProperties: {
454
- value: {
455
- serializedName: "value",
767
+ name: {
768
+ serializedName: "name",
769
+ required: true,
456
770
  type: {
457
- name: "Sequence",
458
- element: {
459
- type: {
460
- name: "Composite",
461
- className: "ApplicationDefinition"
462
- }
463
- }
771
+ name: "String"
464
772
  }
465
773
  },
466
- nextLink: {
467
- serializedName: "nextLink",
774
+ tier: {
775
+ serializedName: "tier",
776
+ type: {
777
+ name: "String"
778
+ }
779
+ },
780
+ size: {
781
+ serializedName: "size",
782
+ type: {
783
+ name: "String"
784
+ }
785
+ },
786
+ family: {
787
+ serializedName: "family",
788
+ type: {
789
+ name: "String"
790
+ }
791
+ },
792
+ model: {
793
+ serializedName: "model",
468
794
  type: {
469
795
  name: "String"
470
796
  }
797
+ },
798
+ capacity: {
799
+ serializedName: "capacity",
800
+ type: {
801
+ name: "Number"
802
+ }
471
803
  }
472
804
  }
473
805
  }
474
806
  };
475
- const ApplicationListResult = {
807
+ const Resource = {
476
808
  type: {
477
809
  name: "Composite",
478
- className: "ApplicationListResult",
810
+ className: "Resource",
479
811
  modelProperties: {
480
- value: {
481
- serializedName: "value",
812
+ id: {
813
+ serializedName: "id",
814
+ readOnly: true,
482
815
  type: {
483
- name: "Sequence",
484
- element: {
485
- type: {
486
- name: "Composite",
487
- className: "Application"
488
- }
489
- }
816
+ name: "String"
490
817
  }
491
818
  },
492
- nextLink: {
493
- serializedName: "nextLink",
819
+ name: {
820
+ serializedName: "name",
821
+ readOnly: true,
494
822
  type: {
495
823
  name: "String"
496
824
  }
497
- }
498
- }
499
- }
500
- };
501
- const GenericResource = {
502
- type: {
503
- name: "Composite",
504
- className: "GenericResource",
505
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { managedBy: {
506
- serializedName: "managedBy",
825
+ },
826
+ type: {
827
+ serializedName: "type",
828
+ readOnly: true,
507
829
  type: {
508
830
  name: "String"
509
831
  }
510
- }, sku: {
511
- serializedName: "sku",
832
+ },
833
+ location: {
834
+ serializedName: "location",
512
835
  type: {
513
- name: "Composite",
514
- className: "Sku"
836
+ name: "String"
515
837
  }
516
- }, identity: {
517
- serializedName: "identity",
838
+ },
839
+ tags: {
840
+ serializedName: "tags",
841
+ type: {
842
+ name: "Dictionary",
843
+ value: { type: { name: "String" } }
844
+ }
845
+ },
846
+ systemData: {
847
+ serializedName: "systemData",
518
848
  type: {
519
849
  name: "Composite",
520
- className: "Identity"
850
+ className: "SystemData"
521
851
  }
522
- } })
852
+ }
853
+ }
523
854
  }
524
855
  };
525
- const Application = {
856
+ const SystemData = {
526
857
  type: {
527
858
  name: "Composite",
528
- className: "Application",
529
- modelProperties: Object.assign(Object.assign({}, GenericResource.type.modelProperties), { plan: {
530
- serializedName: "plan",
531
- type: {
532
- name: "Composite",
533
- className: "Plan"
534
- }
535
- }, kind: {
536
- constraints: {
537
- Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$")
538
- },
539
- serializedName: "kind",
540
- required: true,
859
+ className: "SystemData",
860
+ modelProperties: {
861
+ createdBy: {
862
+ serializedName: "createdBy",
541
863
  type: {
542
864
  name: "String"
543
865
  }
544
- }, managedResourceGroupId: {
545
- serializedName: "properties.managedResourceGroupId",
546
- required: true,
866
+ },
867
+ createdByType: {
868
+ serializedName: "createdByType",
547
869
  type: {
548
870
  name: "String"
549
871
  }
550
- }, applicationDefinitionId: {
551
- serializedName: "properties.applicationDefinitionId",
872
+ },
873
+ createdAt: {
874
+ serializedName: "createdAt",
552
875
  type: {
553
- name: "String"
876
+ name: "DateTime"
554
877
  }
555
- }, parameters: {
556
- serializedName: "properties.parameters",
878
+ },
879
+ lastModifiedBy: {
880
+ serializedName: "lastModifiedBy",
557
881
  type: {
558
- name: "Dictionary",
559
- value: { type: { name: "any" } }
882
+ name: "String"
560
883
  }
561
- }, outputs: {
562
- serializedName: "properties.outputs",
563
- readOnly: true,
884
+ },
885
+ lastModifiedByType: {
886
+ serializedName: "lastModifiedByType",
564
887
  type: {
565
- name: "Dictionary",
566
- value: { type: { name: "any" } }
888
+ name: "String"
567
889
  }
568
- }, provisioningState: {
569
- serializedName: "properties.provisioningState",
570
- readOnly: true,
890
+ },
891
+ lastModifiedAt: {
892
+ serializedName: "lastModifiedAt",
571
893
  type: {
572
- name: "String"
894
+ name: "DateTime"
573
895
  }
574
- } })
896
+ }
897
+ }
575
898
  }
576
899
  };
577
- const ApplicationPatchable = {
900
+ const PlanPatchable = {
578
901
  type: {
579
902
  name: "Composite",
580
- className: "ApplicationPatchable",
581
- modelProperties: Object.assign(Object.assign({}, GenericResource.type.modelProperties), { plan: {
582
- serializedName: "plan",
583
- type: {
584
- name: "Composite",
585
- className: "PlanPatchable"
586
- }
587
- }, kind: {
588
- constraints: {
589
- Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$")
590
- },
591
- serializedName: "kind",
903
+ className: "PlanPatchable",
904
+ modelProperties: {
905
+ name: {
906
+ serializedName: "name",
592
907
  type: {
593
908
  name: "String"
594
909
  }
595
- }, managedResourceGroupId: {
596
- serializedName: "properties.managedResourceGroupId",
910
+ },
911
+ publisher: {
912
+ serializedName: "publisher",
597
913
  type: {
598
914
  name: "String"
599
915
  }
600
- }, applicationDefinitionId: {
601
- serializedName: "properties.applicationDefinitionId",
916
+ },
917
+ product: {
918
+ serializedName: "product",
602
919
  type: {
603
920
  name: "String"
604
921
  }
605
- }, parameters: {
606
- serializedName: "properties.parameters",
607
- type: {
608
- name: "Dictionary",
609
- value: { type: { name: "any" } }
610
- }
611
- }, outputs: {
612
- serializedName: "properties.outputs",
613
- readOnly: true,
922
+ },
923
+ promotionCode: {
924
+ serializedName: "promotionCode",
614
925
  type: {
615
- name: "Dictionary",
616
- value: { type: { name: "any" } }
926
+ name: "String"
617
927
  }
618
- }, provisioningState: {
619
- serializedName: "properties.provisioningState",
620
- readOnly: true,
928
+ },
929
+ version: {
930
+ serializedName: "version",
621
931
  type: {
622
932
  name: "String"
623
933
  }
624
- } })
934
+ }
935
+ }
625
936
  }
626
937
  };
627
- const ApplicationDefinition = {
938
+ const ApplicationDefinitionArtifact = {
628
939
  type: {
629
940
  name: "Composite",
630
- className: "ApplicationDefinition",
631
- modelProperties: Object.assign(Object.assign({}, GenericResource.type.modelProperties), { lockLevel: {
632
- serializedName: "properties.lockLevel",
941
+ className: "ApplicationDefinitionArtifact",
942
+ modelProperties: {
943
+ name: {
944
+ serializedName: "name",
633
945
  required: true,
634
946
  type: {
635
- name: "Enum",
636
- allowedValues: ["CanNotDelete", "ReadOnly", "None"]
947
+ name: "String"
637
948
  }
638
- }, displayName: {
639
- serializedName: "properties.displayName",
949
+ },
950
+ uri: {
951
+ serializedName: "uri",
952
+ required: true,
640
953
  type: {
641
954
  name: "String"
642
955
  }
643
- }, isEnabled: {
644
- serializedName: "properties.isEnabled",
956
+ },
957
+ type: {
958
+ serializedName: "type",
959
+ required: true,
645
960
  type: {
646
- name: "String"
961
+ name: "Enum",
962
+ allowedValues: ["NotSpecified", "Template", "Custom"]
647
963
  }
648
- }, authorizations: {
649
- serializedName: "properties.authorizations",
964
+ }
965
+ }
966
+ }
967
+ };
968
+ const ApplicationNotificationPolicy = {
969
+ type: {
970
+ name: "Composite",
971
+ className: "ApplicationNotificationPolicy",
972
+ modelProperties: {
973
+ notificationEndpoints: {
974
+ serializedName: "notificationEndpoints",
650
975
  required: true,
651
976
  type: {
652
977
  name: "Sequence",
653
978
  element: {
654
979
  type: {
655
980
  name: "Composite",
656
- className: "ApplicationProviderAuthorization"
981
+ className: "ApplicationNotificationEndpoint"
657
982
  }
658
983
  }
659
984
  }
660
- }, artifacts: {
661
- serializedName: "properties.artifacts",
985
+ }
986
+ }
987
+ }
988
+ };
989
+ const ApplicationNotificationEndpoint = {
990
+ type: {
991
+ name: "Composite",
992
+ className: "ApplicationNotificationEndpoint",
993
+ modelProperties: {
994
+ uri: {
995
+ serializedName: "uri",
996
+ required: true,
997
+ type: {
998
+ name: "String"
999
+ }
1000
+ }
1001
+ }
1002
+ }
1003
+ };
1004
+ const ApplicationPackageLockingPolicyDefinition = {
1005
+ type: {
1006
+ name: "Composite",
1007
+ className: "ApplicationPackageLockingPolicyDefinition",
1008
+ modelProperties: {
1009
+ allowedActions: {
1010
+ serializedName: "allowedActions",
662
1011
  type: {
663
1012
  name: "Sequence",
664
1013
  element: {
665
1014
  type: {
666
- name: "Composite",
667
- className: "ApplicationArtifact"
1015
+ name: "String"
668
1016
  }
669
1017
  }
670
1018
  }
671
- }, description: {
672
- serializedName: "properties.description",
1019
+ },
1020
+ allowedDataActions: {
1021
+ serializedName: "allowedDataActions",
1022
+ type: {
1023
+ name: "Sequence",
1024
+ element: {
1025
+ type: {
1026
+ name: "String"
1027
+ }
1028
+ }
1029
+ }
1030
+ }
1031
+ }
1032
+ }
1033
+ };
1034
+ const ApplicationDeploymentPolicy = {
1035
+ type: {
1036
+ name: "Composite",
1037
+ className: "ApplicationDeploymentPolicy",
1038
+ modelProperties: {
1039
+ deploymentMode: {
1040
+ serializedName: "deploymentMode",
1041
+ required: true,
673
1042
  type: {
674
1043
  name: "String"
675
1044
  }
676
- }, packageFileUri: {
677
- serializedName: "properties.packageFileUri",
1045
+ }
1046
+ }
1047
+ }
1048
+ };
1049
+ const ApplicationManagementPolicy = {
1050
+ type: {
1051
+ name: "Composite",
1052
+ className: "ApplicationManagementPolicy",
1053
+ modelProperties: {
1054
+ mode: {
1055
+ serializedName: "mode",
678
1056
  type: {
679
1057
  name: "String"
680
1058
  }
681
- }, mainTemplate: {
682
- serializedName: "properties.mainTemplate",
1059
+ }
1060
+ }
1061
+ }
1062
+ };
1063
+ const ApplicationPolicy = {
1064
+ type: {
1065
+ name: "Composite",
1066
+ className: "ApplicationPolicy",
1067
+ modelProperties: {
1068
+ name: {
1069
+ serializedName: "name",
683
1070
  type: {
684
- name: "Dictionary",
685
- value: { type: { name: "any" } }
1071
+ name: "String"
686
1072
  }
687
- }, createUiDefinition: {
688
- serializedName: "properties.createUiDefinition",
1073
+ },
1074
+ policyDefinitionId: {
1075
+ serializedName: "policyDefinitionId",
689
1076
  type: {
690
- name: "Dictionary",
691
- value: { type: { name: "any" } }
1077
+ name: "String"
692
1078
  }
693
- } })
694
- }
695
- };
696
-
697
- var Mappers = /*#__PURE__*/Object.freeze({
698
- __proto__: null,
699
- OperationListResult: OperationListResult,
700
- Operation: Operation,
701
- OperationDisplay: OperationDisplay,
702
- Plan: Plan,
703
- Sku: Sku,
704
- Identity: Identity,
705
- Resource: Resource,
706
- ErrorResponse: ErrorResponse,
707
- PlanPatchable: PlanPatchable,
708
- ApplicationProviderAuthorization: ApplicationProviderAuthorization,
709
- ApplicationArtifact: ApplicationArtifact,
710
- ApplicationDefinitionListResult: ApplicationDefinitionListResult,
711
- ApplicationListResult: ApplicationListResult,
712
- GenericResource: GenericResource,
713
- Application: Application,
714
- ApplicationPatchable: ApplicationPatchable,
715
- ApplicationDefinition: ApplicationDefinition
716
- });
717
-
718
- /*
719
- * Copyright (c) Microsoft Corporation.
720
- * Licensed under the MIT License.
721
- *
722
- * Code generated by Microsoft (R) AutoRest Code Generator.
723
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
724
- */
725
- const accept = {
726
- parameterPath: "accept",
727
- mapper: {
728
- defaultValue: "application/json",
729
- isConstant: true,
730
- serializedName: "Accept",
731
- type: {
732
- name: "String"
1079
+ },
1080
+ parameters: {
1081
+ serializedName: "parameters",
1082
+ type: {
1083
+ name: "String"
1084
+ }
1085
+ }
733
1086
  }
734
1087
  }
735
1088
  };
736
- const $host = {
737
- parameterPath: "$host",
738
- mapper: {
739
- serializedName: "$host",
740
- required: true,
741
- type: {
742
- name: "String"
1089
+ const ApplicationDefinitionPatchable = {
1090
+ type: {
1091
+ name: "Composite",
1092
+ className: "ApplicationDefinitionPatchable",
1093
+ modelProperties: {
1094
+ tags: {
1095
+ serializedName: "tags",
1096
+ type: {
1097
+ name: "Dictionary",
1098
+ value: { type: { name: "String" } }
1099
+ }
1100
+ }
743
1101
  }
744
- },
745
- skipEncoding: true
1102
+ }
746
1103
  };
747
- const apiVersion = {
748
- parameterPath: "apiVersion",
749
- mapper: {
750
- defaultValue: "2018-06-01",
751
- isConstant: true,
752
- serializedName: "api-version",
753
- type: {
754
- name: "String"
1104
+ const ApplicationDefinitionListResult = {
1105
+ type: {
1106
+ name: "Composite",
1107
+ className: "ApplicationDefinitionListResult",
1108
+ modelProperties: {
1109
+ value: {
1110
+ serializedName: "value",
1111
+ type: {
1112
+ name: "Sequence",
1113
+ element: {
1114
+ type: {
1115
+ name: "Composite",
1116
+ className: "ApplicationDefinition"
1117
+ }
1118
+ }
1119
+ }
1120
+ },
1121
+ nextLink: {
1122
+ serializedName: "nextLink",
1123
+ type: {
1124
+ name: "String"
1125
+ }
1126
+ }
755
1127
  }
756
1128
  }
757
1129
  };
758
- const nextLink = {
759
- parameterPath: "nextLink",
760
- mapper: {
761
- serializedName: "nextLink",
762
- required: true,
763
- type: {
764
- name: "String"
1130
+ const ApplicationListResult = {
1131
+ type: {
1132
+ name: "Composite",
1133
+ className: "ApplicationListResult",
1134
+ modelProperties: {
1135
+ value: {
1136
+ serializedName: "value",
1137
+ type: {
1138
+ name: "Sequence",
1139
+ element: {
1140
+ type: {
1141
+ name: "Composite",
1142
+ className: "Application"
1143
+ }
1144
+ }
1145
+ }
1146
+ },
1147
+ nextLink: {
1148
+ serializedName: "nextLink",
1149
+ type: {
1150
+ name: "String"
1151
+ }
1152
+ }
765
1153
  }
766
- },
767
- skipEncoding: true
1154
+ }
768
1155
  };
769
- const resourceGroupName = {
770
- parameterPath: "resourceGroupName",
771
- mapper: {
772
- constraints: {
773
- Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
774
- MaxLength: 90,
775
- MinLength: 1
776
- },
777
- serializedName: "resourceGroupName",
778
- required: true,
779
- type: {
780
- name: "String"
1156
+ const JitAuthorizationPolicies = {
1157
+ type: {
1158
+ name: "Composite",
1159
+ className: "JitAuthorizationPolicies",
1160
+ modelProperties: {
1161
+ principalId: {
1162
+ serializedName: "principalId",
1163
+ required: true,
1164
+ type: {
1165
+ name: "String"
1166
+ }
1167
+ },
1168
+ roleDefinitionId: {
1169
+ serializedName: "roleDefinitionId",
1170
+ required: true,
1171
+ type: {
1172
+ name: "String"
1173
+ }
1174
+ }
781
1175
  }
782
1176
  }
783
1177
  };
784
- const applicationName = {
785
- parameterPath: "applicationName",
786
- mapper: {
787
- constraints: {
788
- MaxLength: 64,
789
- MinLength: 3
790
- },
791
- serializedName: "applicationName",
792
- required: true,
793
- type: {
794
- name: "String"
1178
+ const JitSchedulingPolicy = {
1179
+ type: {
1180
+ name: "Composite",
1181
+ className: "JitSchedulingPolicy",
1182
+ modelProperties: {
1183
+ type: {
1184
+ serializedName: "type",
1185
+ required: true,
1186
+ type: {
1187
+ name: "String"
1188
+ }
1189
+ },
1190
+ duration: {
1191
+ serializedName: "duration",
1192
+ required: true,
1193
+ type: {
1194
+ name: "TimeSpan"
1195
+ }
1196
+ },
1197
+ startTime: {
1198
+ serializedName: "startTime",
1199
+ required: true,
1200
+ type: {
1201
+ name: "DateTime"
1202
+ }
1203
+ }
795
1204
  }
796
1205
  }
797
1206
  };
798
- const subscriptionId = {
799
- parameterPath: "subscriptionId",
800
- mapper: {
801
- serializedName: "subscriptionId",
802
- required: true,
803
- type: {
804
- name: "String"
1207
+ const JitRequestPatchable = {
1208
+ type: {
1209
+ name: "Composite",
1210
+ className: "JitRequestPatchable",
1211
+ modelProperties: {
1212
+ tags: {
1213
+ serializedName: "tags",
1214
+ type: {
1215
+ name: "Dictionary",
1216
+ value: { type: { name: "String" } }
1217
+ }
1218
+ }
805
1219
  }
806
1220
  }
807
1221
  };
808
- const contentType = {
809
- parameterPath: ["options", "contentType"],
810
- mapper: {
811
- defaultValue: "application/json",
812
- isConstant: true,
813
- serializedName: "Content-Type",
814
- type: {
815
- name: "String"
1222
+ const JitRequestDefinitionListResult = {
1223
+ type: {
1224
+ name: "Composite",
1225
+ className: "JitRequestDefinitionListResult",
1226
+ modelProperties: {
1227
+ value: {
1228
+ serializedName: "value",
1229
+ type: {
1230
+ name: "Sequence",
1231
+ element: {
1232
+ type: {
1233
+ name: "Composite",
1234
+ className: "JitRequestDefinition"
1235
+ }
1236
+ }
1237
+ }
1238
+ },
1239
+ nextLink: {
1240
+ serializedName: "nextLink",
1241
+ type: {
1242
+ name: "String"
1243
+ }
1244
+ }
816
1245
  }
817
1246
  }
818
1247
  };
819
- const parameters = {
820
- parameterPath: "parameters",
821
- mapper: Application
1248
+ const AllowedUpgradePlansResult = {
1249
+ type: {
1250
+ name: "Composite",
1251
+ className: "AllowedUpgradePlansResult",
1252
+ modelProperties: {
1253
+ value: {
1254
+ serializedName: "value",
1255
+ type: {
1256
+ name: "Sequence",
1257
+ element: {
1258
+ type: {
1259
+ name: "Composite",
1260
+ className: "Plan"
1261
+ }
1262
+ }
1263
+ }
1264
+ }
1265
+ }
1266
+ }
822
1267
  };
823
- const parameters1 = {
824
- parameterPath: ["options", "parameters"],
825
- mapper: ApplicationPatchable
1268
+ const UpdateAccessDefinition = {
1269
+ type: {
1270
+ name: "Composite",
1271
+ className: "UpdateAccessDefinition",
1272
+ modelProperties: {
1273
+ approver: {
1274
+ serializedName: "approver",
1275
+ type: {
1276
+ name: "String"
1277
+ }
1278
+ },
1279
+ metadata: {
1280
+ serializedName: "metadata",
1281
+ type: {
1282
+ name: "Composite",
1283
+ className: "JitRequestMetadata"
1284
+ }
1285
+ },
1286
+ status: {
1287
+ serializedName: "status",
1288
+ required: true,
1289
+ type: {
1290
+ name: "String"
1291
+ }
1292
+ },
1293
+ subStatus: {
1294
+ serializedName: "subStatus",
1295
+ required: true,
1296
+ type: {
1297
+ name: "String"
1298
+ }
1299
+ }
1300
+ }
1301
+ }
1302
+ };
1303
+ const JitRequestMetadata = {
1304
+ type: {
1305
+ name: "Composite",
1306
+ className: "JitRequestMetadata",
1307
+ modelProperties: {
1308
+ originRequestId: {
1309
+ serializedName: "originRequestId",
1310
+ type: {
1311
+ name: "String"
1312
+ }
1313
+ },
1314
+ requestorId: {
1315
+ serializedName: "requestorId",
1316
+ type: {
1317
+ name: "String"
1318
+ }
1319
+ },
1320
+ tenantDisplayName: {
1321
+ serializedName: "tenantDisplayName",
1322
+ type: {
1323
+ name: "String"
1324
+ }
1325
+ },
1326
+ subjectDisplayName: {
1327
+ serializedName: "subjectDisplayName",
1328
+ type: {
1329
+ name: "String"
1330
+ }
1331
+ }
1332
+ }
1333
+ }
1334
+ };
1335
+ const ListTokenRequest = {
1336
+ type: {
1337
+ name: "Composite",
1338
+ className: "ListTokenRequest",
1339
+ modelProperties: {
1340
+ authorizationAudience: {
1341
+ serializedName: "authorizationAudience",
1342
+ type: {
1343
+ name: "String"
1344
+ }
1345
+ },
1346
+ userAssignedIdentities: {
1347
+ serializedName: "userAssignedIdentities",
1348
+ type: {
1349
+ name: "Sequence",
1350
+ element: {
1351
+ type: {
1352
+ name: "String"
1353
+ }
1354
+ }
1355
+ }
1356
+ }
1357
+ }
1358
+ }
1359
+ };
1360
+ const ManagedIdentityTokenResult = {
1361
+ type: {
1362
+ name: "Composite",
1363
+ className: "ManagedIdentityTokenResult",
1364
+ modelProperties: {
1365
+ value: {
1366
+ serializedName: "value",
1367
+ type: {
1368
+ name: "Sequence",
1369
+ element: {
1370
+ type: {
1371
+ name: "Composite",
1372
+ className: "ManagedIdentityToken"
1373
+ }
1374
+ }
1375
+ }
1376
+ }
1377
+ }
1378
+ }
1379
+ };
1380
+ const ManagedIdentityToken = {
1381
+ type: {
1382
+ name: "Composite",
1383
+ className: "ManagedIdentityToken",
1384
+ modelProperties: {
1385
+ accessToken: {
1386
+ serializedName: "accessToken",
1387
+ type: {
1388
+ name: "String"
1389
+ }
1390
+ },
1391
+ expiresIn: {
1392
+ serializedName: "expiresIn",
1393
+ type: {
1394
+ name: "String"
1395
+ }
1396
+ },
1397
+ expiresOn: {
1398
+ serializedName: "expiresOn",
1399
+ type: {
1400
+ name: "String"
1401
+ }
1402
+ },
1403
+ notBefore: {
1404
+ serializedName: "notBefore",
1405
+ type: {
1406
+ name: "String"
1407
+ }
1408
+ },
1409
+ authorizationAudience: {
1410
+ serializedName: "authorizationAudience",
1411
+ type: {
1412
+ name: "String"
1413
+ }
1414
+ },
1415
+ resourceId: {
1416
+ serializedName: "resourceId",
1417
+ type: {
1418
+ name: "String"
1419
+ }
1420
+ },
1421
+ tokenType: {
1422
+ serializedName: "tokenType",
1423
+ type: {
1424
+ name: "String"
1425
+ }
1426
+ }
1427
+ }
1428
+ }
1429
+ };
1430
+ const GenericResource = {
1431
+ type: {
1432
+ name: "Composite",
1433
+ className: "GenericResource",
1434
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { managedBy: {
1435
+ serializedName: "managedBy",
1436
+ type: {
1437
+ name: "String"
1438
+ }
1439
+ }, sku: {
1440
+ serializedName: "sku",
1441
+ type: {
1442
+ name: "Composite",
1443
+ className: "Sku"
1444
+ }
1445
+ } })
1446
+ }
1447
+ };
1448
+ const JitRequestDefinition = {
1449
+ type: {
1450
+ name: "Composite",
1451
+ className: "JitRequestDefinition",
1452
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { applicationResourceId: {
1453
+ serializedName: "properties.applicationResourceId",
1454
+ type: {
1455
+ name: "String"
1456
+ }
1457
+ }, publisherTenantId: {
1458
+ serializedName: "properties.publisherTenantId",
1459
+ readOnly: true,
1460
+ type: {
1461
+ name: "String"
1462
+ }
1463
+ }, jitAuthorizationPolicies: {
1464
+ serializedName: "properties.jitAuthorizationPolicies",
1465
+ type: {
1466
+ name: "Sequence",
1467
+ element: {
1468
+ type: {
1469
+ name: "Composite",
1470
+ className: "JitAuthorizationPolicies"
1471
+ }
1472
+ }
1473
+ }
1474
+ }, jitSchedulingPolicy: {
1475
+ serializedName: "properties.jitSchedulingPolicy",
1476
+ type: {
1477
+ name: "Composite",
1478
+ className: "JitSchedulingPolicy"
1479
+ }
1480
+ }, provisioningState: {
1481
+ serializedName: "properties.provisioningState",
1482
+ readOnly: true,
1483
+ type: {
1484
+ name: "String"
1485
+ }
1486
+ }, jitRequestState: {
1487
+ serializedName: "properties.jitRequestState",
1488
+ readOnly: true,
1489
+ type: {
1490
+ name: "String"
1491
+ }
1492
+ }, createdBy: {
1493
+ serializedName: "properties.createdBy",
1494
+ type: {
1495
+ name: "Composite",
1496
+ className: "ApplicationClientDetails"
1497
+ }
1498
+ }, updatedBy: {
1499
+ serializedName: "properties.updatedBy",
1500
+ type: {
1501
+ name: "Composite",
1502
+ className: "ApplicationClientDetails"
1503
+ }
1504
+ } })
1505
+ }
1506
+ };
1507
+ const Application = {
1508
+ type: {
1509
+ name: "Composite",
1510
+ className: "Application",
1511
+ modelProperties: Object.assign(Object.assign({}, GenericResource.type.modelProperties), { plan: {
1512
+ serializedName: "plan",
1513
+ type: {
1514
+ name: "Composite",
1515
+ className: "Plan"
1516
+ }
1517
+ }, kind: {
1518
+ constraints: {
1519
+ Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$")
1520
+ },
1521
+ serializedName: "kind",
1522
+ required: true,
1523
+ type: {
1524
+ name: "String"
1525
+ }
1526
+ }, identity: {
1527
+ serializedName: "identity",
1528
+ type: {
1529
+ name: "Composite",
1530
+ className: "Identity"
1531
+ }
1532
+ }, managedResourceGroupId: {
1533
+ serializedName: "properties.managedResourceGroupId",
1534
+ type: {
1535
+ name: "String"
1536
+ }
1537
+ }, applicationDefinitionId: {
1538
+ serializedName: "properties.applicationDefinitionId",
1539
+ type: {
1540
+ name: "String"
1541
+ }
1542
+ }, parameters: {
1543
+ serializedName: "properties.parameters",
1544
+ type: {
1545
+ name: "Dictionary",
1546
+ value: { type: { name: "any" } }
1547
+ }
1548
+ }, outputs: {
1549
+ serializedName: "properties.outputs",
1550
+ readOnly: true,
1551
+ type: {
1552
+ name: "Dictionary",
1553
+ value: { type: { name: "any" } }
1554
+ }
1555
+ }, provisioningState: {
1556
+ serializedName: "properties.provisioningState",
1557
+ readOnly: true,
1558
+ type: {
1559
+ name: "String"
1560
+ }
1561
+ }, billingDetails: {
1562
+ serializedName: "properties.billingDetails",
1563
+ type: {
1564
+ name: "Composite",
1565
+ className: "ApplicationBillingDetailsDefinition"
1566
+ }
1567
+ }, jitAccessPolicy: {
1568
+ serializedName: "properties.jitAccessPolicy",
1569
+ type: {
1570
+ name: "Composite",
1571
+ className: "ApplicationJitAccessPolicy"
1572
+ }
1573
+ }, publisherTenantId: {
1574
+ serializedName: "properties.publisherTenantId",
1575
+ readOnly: true,
1576
+ type: {
1577
+ name: "String"
1578
+ }
1579
+ }, authorizations: {
1580
+ serializedName: "properties.authorizations",
1581
+ readOnly: true,
1582
+ type: {
1583
+ name: "Sequence",
1584
+ element: {
1585
+ type: {
1586
+ name: "Composite",
1587
+ className: "ApplicationAuthorization"
1588
+ }
1589
+ }
1590
+ }
1591
+ }, managementMode: {
1592
+ serializedName: "properties.managementMode",
1593
+ readOnly: true,
1594
+ type: {
1595
+ name: "String"
1596
+ }
1597
+ }, customerSupport: {
1598
+ serializedName: "properties.customerSupport",
1599
+ type: {
1600
+ name: "Composite",
1601
+ className: "ApplicationPackageContact"
1602
+ }
1603
+ }, supportUrls: {
1604
+ serializedName: "properties.supportUrls",
1605
+ type: {
1606
+ name: "Composite",
1607
+ className: "ApplicationPackageSupportUrls"
1608
+ }
1609
+ }, artifacts: {
1610
+ serializedName: "properties.artifacts",
1611
+ readOnly: true,
1612
+ type: {
1613
+ name: "Sequence",
1614
+ element: {
1615
+ type: {
1616
+ name: "Composite",
1617
+ className: "ApplicationArtifact"
1618
+ }
1619
+ }
1620
+ }
1621
+ }, createdBy: {
1622
+ serializedName: "properties.createdBy",
1623
+ type: {
1624
+ name: "Composite",
1625
+ className: "ApplicationClientDetails"
1626
+ }
1627
+ }, updatedBy: {
1628
+ serializedName: "properties.updatedBy",
1629
+ type: {
1630
+ name: "Composite",
1631
+ className: "ApplicationClientDetails"
1632
+ }
1633
+ } })
1634
+ }
1635
+ };
1636
+ const ApplicationPatchable = {
1637
+ type: {
1638
+ name: "Composite",
1639
+ className: "ApplicationPatchable",
1640
+ modelProperties: Object.assign(Object.assign({}, GenericResource.type.modelProperties), { plan: {
1641
+ serializedName: "plan",
1642
+ type: {
1643
+ name: "Composite",
1644
+ className: "PlanPatchable"
1645
+ }
1646
+ }, kind: {
1647
+ constraints: {
1648
+ Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$")
1649
+ },
1650
+ serializedName: "kind",
1651
+ type: {
1652
+ name: "String"
1653
+ }
1654
+ }, identity: {
1655
+ serializedName: "identity",
1656
+ type: {
1657
+ name: "Composite",
1658
+ className: "Identity"
1659
+ }
1660
+ }, managedResourceGroupId: {
1661
+ serializedName: "properties.managedResourceGroupId",
1662
+ type: {
1663
+ name: "String"
1664
+ }
1665
+ }, applicationDefinitionId: {
1666
+ serializedName: "properties.applicationDefinitionId",
1667
+ type: {
1668
+ name: "String"
1669
+ }
1670
+ }, parameters: {
1671
+ serializedName: "properties.parameters",
1672
+ type: {
1673
+ name: "Dictionary",
1674
+ value: { type: { name: "any" } }
1675
+ }
1676
+ }, outputs: {
1677
+ serializedName: "properties.outputs",
1678
+ readOnly: true,
1679
+ type: {
1680
+ name: "Dictionary",
1681
+ value: { type: { name: "any" } }
1682
+ }
1683
+ }, provisioningState: {
1684
+ serializedName: "properties.provisioningState",
1685
+ readOnly: true,
1686
+ type: {
1687
+ name: "String"
1688
+ }
1689
+ }, billingDetails: {
1690
+ serializedName: "properties.billingDetails",
1691
+ type: {
1692
+ name: "Composite",
1693
+ className: "ApplicationBillingDetailsDefinition"
1694
+ }
1695
+ }, jitAccessPolicy: {
1696
+ serializedName: "properties.jitAccessPolicy",
1697
+ type: {
1698
+ name: "Composite",
1699
+ className: "ApplicationJitAccessPolicy"
1700
+ }
1701
+ }, publisherTenantId: {
1702
+ serializedName: "properties.publisherTenantId",
1703
+ readOnly: true,
1704
+ type: {
1705
+ name: "String"
1706
+ }
1707
+ }, authorizations: {
1708
+ serializedName: "properties.authorizations",
1709
+ readOnly: true,
1710
+ type: {
1711
+ name: "Sequence",
1712
+ element: {
1713
+ type: {
1714
+ name: "Composite",
1715
+ className: "ApplicationAuthorization"
1716
+ }
1717
+ }
1718
+ }
1719
+ }, managementMode: {
1720
+ serializedName: "properties.managementMode",
1721
+ readOnly: true,
1722
+ type: {
1723
+ name: "String"
1724
+ }
1725
+ }, customerSupport: {
1726
+ serializedName: "properties.customerSupport",
1727
+ type: {
1728
+ name: "Composite",
1729
+ className: "ApplicationPackageContact"
1730
+ }
1731
+ }, supportUrls: {
1732
+ serializedName: "properties.supportUrls",
1733
+ type: {
1734
+ name: "Composite",
1735
+ className: "ApplicationPackageSupportUrls"
1736
+ }
1737
+ }, artifacts: {
1738
+ serializedName: "properties.artifacts",
1739
+ readOnly: true,
1740
+ type: {
1741
+ name: "Sequence",
1742
+ element: {
1743
+ type: {
1744
+ name: "Composite",
1745
+ className: "ApplicationArtifact"
1746
+ }
1747
+ }
1748
+ }
1749
+ }, createdBy: {
1750
+ serializedName: "properties.createdBy",
1751
+ type: {
1752
+ name: "Composite",
1753
+ className: "ApplicationClientDetails"
1754
+ }
1755
+ }, updatedBy: {
1756
+ serializedName: "properties.updatedBy",
1757
+ type: {
1758
+ name: "Composite",
1759
+ className: "ApplicationClientDetails"
1760
+ }
1761
+ } })
1762
+ }
1763
+ };
1764
+ const ApplicationDefinition = {
1765
+ type: {
1766
+ name: "Composite",
1767
+ className: "ApplicationDefinition",
1768
+ modelProperties: Object.assign(Object.assign({}, GenericResource.type.modelProperties), { lockLevel: {
1769
+ serializedName: "properties.lockLevel",
1770
+ required: true,
1771
+ type: {
1772
+ name: "Enum",
1773
+ allowedValues: ["CanNotDelete", "ReadOnly", "None"]
1774
+ }
1775
+ }, displayName: {
1776
+ serializedName: "properties.displayName",
1777
+ type: {
1778
+ name: "String"
1779
+ }
1780
+ }, isEnabled: {
1781
+ serializedName: "properties.isEnabled",
1782
+ type: {
1783
+ name: "Boolean"
1784
+ }
1785
+ }, authorizations: {
1786
+ serializedName: "properties.authorizations",
1787
+ type: {
1788
+ name: "Sequence",
1789
+ element: {
1790
+ type: {
1791
+ name: "Composite",
1792
+ className: "ApplicationAuthorization"
1793
+ }
1794
+ }
1795
+ }
1796
+ }, artifacts: {
1797
+ serializedName: "properties.artifacts",
1798
+ type: {
1799
+ name: "Sequence",
1800
+ element: {
1801
+ type: {
1802
+ name: "Composite",
1803
+ className: "ApplicationDefinitionArtifact"
1804
+ }
1805
+ }
1806
+ }
1807
+ }, description: {
1808
+ serializedName: "properties.description",
1809
+ type: {
1810
+ name: "String"
1811
+ }
1812
+ }, packageFileUri: {
1813
+ serializedName: "properties.packageFileUri",
1814
+ type: {
1815
+ name: "String"
1816
+ }
1817
+ }, storageAccountId: {
1818
+ serializedName: "properties.storageAccountId",
1819
+ type: {
1820
+ name: "String"
1821
+ }
1822
+ }, mainTemplate: {
1823
+ serializedName: "properties.mainTemplate",
1824
+ type: {
1825
+ name: "Dictionary",
1826
+ value: { type: { name: "any" } }
1827
+ }
1828
+ }, createUiDefinition: {
1829
+ serializedName: "properties.createUiDefinition",
1830
+ type: {
1831
+ name: "Dictionary",
1832
+ value: { type: { name: "any" } }
1833
+ }
1834
+ }, notificationPolicy: {
1835
+ serializedName: "properties.notificationPolicy",
1836
+ type: {
1837
+ name: "Composite",
1838
+ className: "ApplicationNotificationPolicy"
1839
+ }
1840
+ }, lockingPolicy: {
1841
+ serializedName: "properties.lockingPolicy",
1842
+ type: {
1843
+ name: "Composite",
1844
+ className: "ApplicationPackageLockingPolicyDefinition"
1845
+ }
1846
+ }, deploymentPolicy: {
1847
+ serializedName: "properties.deploymentPolicy",
1848
+ type: {
1849
+ name: "Composite",
1850
+ className: "ApplicationDeploymentPolicy"
1851
+ }
1852
+ }, managementPolicy: {
1853
+ serializedName: "properties.managementPolicy",
1854
+ type: {
1855
+ name: "Composite",
1856
+ className: "ApplicationManagementPolicy"
1857
+ }
1858
+ }, policies: {
1859
+ serializedName: "properties.policies",
1860
+ type: {
1861
+ name: "Sequence",
1862
+ element: {
1863
+ type: {
1864
+ name: "Composite",
1865
+ className: "ApplicationPolicy"
1866
+ }
1867
+ }
1868
+ }
1869
+ } })
1870
+ }
1871
+ };
1872
+
1873
+ var Mappers = /*#__PURE__*/Object.freeze({
1874
+ __proto__: null,
1875
+ OperationListResult: OperationListResult,
1876
+ Operation: Operation,
1877
+ OperationDisplay: OperationDisplay,
1878
+ ErrorResponse: ErrorResponse,
1879
+ ErrorDetail: ErrorDetail,
1880
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
1881
+ ApplicationBillingDetailsDefinition: ApplicationBillingDetailsDefinition,
1882
+ ApplicationJitAccessPolicy: ApplicationJitAccessPolicy,
1883
+ JitApproverDefinition: JitApproverDefinition,
1884
+ ApplicationAuthorization: ApplicationAuthorization,
1885
+ ApplicationPackageContact: ApplicationPackageContact,
1886
+ ApplicationPackageSupportUrls: ApplicationPackageSupportUrls,
1887
+ ApplicationArtifact: ApplicationArtifact,
1888
+ ApplicationClientDetails: ApplicationClientDetails,
1889
+ Plan: Plan,
1890
+ Identity: Identity,
1891
+ UserAssignedResourceIdentity: UserAssignedResourceIdentity,
1892
+ Sku: Sku,
1893
+ Resource: Resource,
1894
+ SystemData: SystemData,
1895
+ PlanPatchable: PlanPatchable,
1896
+ ApplicationDefinitionArtifact: ApplicationDefinitionArtifact,
1897
+ ApplicationNotificationPolicy: ApplicationNotificationPolicy,
1898
+ ApplicationNotificationEndpoint: ApplicationNotificationEndpoint,
1899
+ ApplicationPackageLockingPolicyDefinition: ApplicationPackageLockingPolicyDefinition,
1900
+ ApplicationDeploymentPolicy: ApplicationDeploymentPolicy,
1901
+ ApplicationManagementPolicy: ApplicationManagementPolicy,
1902
+ ApplicationPolicy: ApplicationPolicy,
1903
+ ApplicationDefinitionPatchable: ApplicationDefinitionPatchable,
1904
+ ApplicationDefinitionListResult: ApplicationDefinitionListResult,
1905
+ ApplicationListResult: ApplicationListResult,
1906
+ JitAuthorizationPolicies: JitAuthorizationPolicies,
1907
+ JitSchedulingPolicy: JitSchedulingPolicy,
1908
+ JitRequestPatchable: JitRequestPatchable,
1909
+ JitRequestDefinitionListResult: JitRequestDefinitionListResult,
1910
+ AllowedUpgradePlansResult: AllowedUpgradePlansResult,
1911
+ UpdateAccessDefinition: UpdateAccessDefinition,
1912
+ JitRequestMetadata: JitRequestMetadata,
1913
+ ListTokenRequest: ListTokenRequest,
1914
+ ManagedIdentityTokenResult: ManagedIdentityTokenResult,
1915
+ ManagedIdentityToken: ManagedIdentityToken,
1916
+ GenericResource: GenericResource,
1917
+ JitRequestDefinition: JitRequestDefinition,
1918
+ Application: Application,
1919
+ ApplicationPatchable: ApplicationPatchable,
1920
+ ApplicationDefinition: ApplicationDefinition
1921
+ });
1922
+
1923
+ /*
1924
+ * Copyright (c) Microsoft Corporation.
1925
+ * Licensed under the MIT License.
1926
+ *
1927
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1928
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1929
+ */
1930
+ const accept = {
1931
+ parameterPath: "accept",
1932
+ mapper: {
1933
+ defaultValue: "application/json",
1934
+ isConstant: true,
1935
+ serializedName: "Accept",
1936
+ type: {
1937
+ name: "String"
1938
+ }
1939
+ }
1940
+ };
1941
+ const $host = {
1942
+ parameterPath: "$host",
1943
+ mapper: {
1944
+ serializedName: "$host",
1945
+ required: true,
1946
+ type: {
1947
+ name: "String"
1948
+ }
1949
+ },
1950
+ skipEncoding: true
1951
+ };
1952
+ const apiVersion = {
1953
+ parameterPath: "apiVersion",
1954
+ mapper: {
1955
+ defaultValue: "2021-07-01",
1956
+ isConstant: true,
1957
+ serializedName: "api-version",
1958
+ type: {
1959
+ name: "String"
1960
+ }
1961
+ }
1962
+ };
1963
+ const nextLink = {
1964
+ parameterPath: "nextLink",
1965
+ mapper: {
1966
+ serializedName: "nextLink",
1967
+ required: true,
1968
+ type: {
1969
+ name: "String"
1970
+ }
1971
+ },
1972
+ skipEncoding: true
1973
+ };
1974
+ const subscriptionId = {
1975
+ parameterPath: "subscriptionId",
1976
+ mapper: {
1977
+ constraints: {
1978
+ MinLength: 1
1979
+ },
1980
+ serializedName: "subscriptionId",
1981
+ required: true,
1982
+ type: {
1983
+ name: "String"
1984
+ }
1985
+ }
1986
+ };
1987
+ const resourceGroupName = {
1988
+ parameterPath: "resourceGroupName",
1989
+ mapper: {
1990
+ constraints: {
1991
+ MaxLength: 90,
1992
+ MinLength: 1
1993
+ },
1994
+ serializedName: "resourceGroupName",
1995
+ required: true,
1996
+ type: {
1997
+ name: "String"
1998
+ }
1999
+ }
2000
+ };
2001
+ const applicationName = {
2002
+ parameterPath: "applicationName",
2003
+ mapper: {
2004
+ constraints: {
2005
+ MaxLength: 64,
2006
+ MinLength: 3
2007
+ },
2008
+ serializedName: "applicationName",
2009
+ required: true,
2010
+ type: {
2011
+ name: "String"
2012
+ }
2013
+ }
2014
+ };
2015
+ const contentType = {
2016
+ parameterPath: ["options", "contentType"],
2017
+ mapper: {
2018
+ defaultValue: "application/json",
2019
+ isConstant: true,
2020
+ serializedName: "Content-Type",
2021
+ type: {
2022
+ name: "String"
2023
+ }
2024
+ }
2025
+ };
2026
+ const parameters = {
2027
+ parameterPath: "parameters",
2028
+ mapper: Application
2029
+ };
2030
+ const parameters1 = {
2031
+ parameterPath: ["options", "parameters"],
2032
+ mapper: ApplicationPatchable
2033
+ };
2034
+ const applicationId = {
2035
+ parameterPath: "applicationId",
2036
+ mapper: {
2037
+ serializedName: "applicationId",
2038
+ required: true,
2039
+ type: {
2040
+ name: "String"
2041
+ }
2042
+ },
2043
+ skipEncoding: true
2044
+ };
2045
+ const parameters2 = {
2046
+ parameterPath: "parameters",
2047
+ mapper: UpdateAccessDefinition
2048
+ };
2049
+ const parameters3 = {
2050
+ parameterPath: "parameters",
2051
+ mapper: ListTokenRequest
2052
+ };
2053
+ const applicationDefinitionName = {
2054
+ parameterPath: "applicationDefinitionName",
2055
+ mapper: {
2056
+ constraints: {
2057
+ MaxLength: 64,
2058
+ MinLength: 3
2059
+ },
2060
+ serializedName: "applicationDefinitionName",
2061
+ required: true,
2062
+ type: {
2063
+ name: "String"
2064
+ }
2065
+ }
2066
+ };
2067
+ const parameters4 = {
2068
+ parameterPath: "parameters",
2069
+ mapper: ApplicationDefinition
2070
+ };
2071
+ const parameters5 = {
2072
+ parameterPath: "parameters",
2073
+ mapper: ApplicationDefinitionPatchable
2074
+ };
2075
+ const resourceGroupName1 = {
2076
+ parameterPath: "resourceGroupName",
2077
+ mapper: {
2078
+ constraints: {
2079
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
2080
+ MaxLength: 90,
2081
+ MinLength: 1
2082
+ },
2083
+ serializedName: "resourceGroupName",
2084
+ required: true,
2085
+ type: {
2086
+ name: "String"
2087
+ }
2088
+ }
2089
+ };
2090
+ const jitRequestName = {
2091
+ parameterPath: "jitRequestName",
2092
+ mapper: {
2093
+ serializedName: "jitRequestName",
2094
+ required: true,
2095
+ type: {
2096
+ name: "String"
2097
+ }
2098
+ }
2099
+ };
2100
+ const parameters6 = {
2101
+ parameterPath: "parameters",
2102
+ mapper: JitRequestDefinition
2103
+ };
2104
+ const parameters7 = {
2105
+ parameterPath: "parameters",
2106
+ mapper: JitRequestPatchable
2107
+ };
2108
+
2109
+ /*
2110
+ * Copyright (c) Microsoft Corporation.
2111
+ * Licensed under the MIT License.
2112
+ *
2113
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2114
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2115
+ */
2116
+ function createLroSpec(inputs) {
2117
+ const { args, spec, sendOperationFn } = inputs;
2118
+ return {
2119
+ requestMethod: spec.httpMethod,
2120
+ requestPath: spec.path,
2121
+ sendInitialRequest: () => sendOperationFn(args, spec),
2122
+ sendPollRequest: (path, options) => {
2123
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
2124
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2125
+ }
2126
+ };
2127
+ }
2128
+
2129
+ /*
2130
+ * Copyright (c) Microsoft Corporation.
2131
+ * Licensed under the MIT License.
2132
+ *
2133
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2134
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2135
+ */
2136
+ /// <reference lib="esnext.asynciterable" />
2137
+ /** Class containing Applications operations. */
2138
+ class ApplicationsImpl {
2139
+ /**
2140
+ * Initialize a new instance of the class Applications class.
2141
+ * @param client Reference to the service client
2142
+ */
2143
+ constructor(client) {
2144
+ this.client = client;
2145
+ }
2146
+ /**
2147
+ * Lists all the applications within a resource group.
2148
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2149
+ * @param options The options parameters.
2150
+ */
2151
+ listByResourceGroup(resourceGroupName, options) {
2152
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
2153
+ return {
2154
+ next() {
2155
+ return iter.next();
2156
+ },
2157
+ [Symbol.asyncIterator]() {
2158
+ return this;
2159
+ },
2160
+ byPage: (settings) => {
2161
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2162
+ throw new Error("maxPageSize is not supported by this operation.");
2163
+ }
2164
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
2165
+ }
2166
+ };
2167
+ }
2168
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2169
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2170
+ let result;
2171
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2172
+ if (!continuationToken) {
2173
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2174
+ let page = result.value || [];
2175
+ continuationToken = result.nextLink;
2176
+ setContinuationToken(page, continuationToken);
2177
+ yield yield tslib.__await(page);
2178
+ }
2179
+ while (continuationToken) {
2180
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
2181
+ continuationToken = result.nextLink;
2182
+ let page = result.value || [];
2183
+ setContinuationToken(page, continuationToken);
2184
+ yield yield tslib.__await(page);
2185
+ }
2186
+ });
2187
+ }
2188
+ listByResourceGroupPagingAll(resourceGroupName, options) {
2189
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2190
+ var _a, e_1, _b, _c;
2191
+ try {
2192
+ for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2193
+ _c = _f.value;
2194
+ _d = false;
2195
+ try {
2196
+ const page = _c;
2197
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2198
+ }
2199
+ finally {
2200
+ _d = true;
2201
+ }
2202
+ }
2203
+ }
2204
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2205
+ finally {
2206
+ try {
2207
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2208
+ }
2209
+ finally { if (e_1) throw e_1.error; }
2210
+ }
2211
+ });
2212
+ }
2213
+ /**
2214
+ * Lists all the applications within a subscription.
2215
+ * @param options The options parameters.
2216
+ */
2217
+ listBySubscription(options) {
2218
+ const iter = this.listBySubscriptionPagingAll(options);
2219
+ return {
2220
+ next() {
2221
+ return iter.next();
2222
+ },
2223
+ [Symbol.asyncIterator]() {
2224
+ return this;
2225
+ },
2226
+ byPage: (settings) => {
2227
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2228
+ throw new Error("maxPageSize is not supported by this operation.");
2229
+ }
2230
+ return this.listBySubscriptionPagingPage(options, settings);
2231
+ }
2232
+ };
2233
+ }
2234
+ listBySubscriptionPagingPage(options, settings) {
2235
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
2236
+ let result;
2237
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2238
+ if (!continuationToken) {
2239
+ result = yield tslib.__await(this._listBySubscription(options));
2240
+ let page = result.value || [];
2241
+ continuationToken = result.nextLink;
2242
+ setContinuationToken(page, continuationToken);
2243
+ yield yield tslib.__await(page);
2244
+ }
2245
+ while (continuationToken) {
2246
+ result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
2247
+ continuationToken = result.nextLink;
2248
+ let page = result.value || [];
2249
+ setContinuationToken(page, continuationToken);
2250
+ yield yield tslib.__await(page);
2251
+ }
2252
+ });
2253
+ }
2254
+ listBySubscriptionPagingAll(options) {
2255
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
2256
+ var _a, e_2, _b, _c;
2257
+ try {
2258
+ for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2259
+ _c = _f.value;
2260
+ _d = false;
2261
+ try {
2262
+ const page = _c;
2263
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2264
+ }
2265
+ finally {
2266
+ _d = true;
2267
+ }
2268
+ }
2269
+ }
2270
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
2271
+ finally {
2272
+ try {
2273
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2274
+ }
2275
+ finally { if (e_2) throw e_2.error; }
2276
+ }
2277
+ });
2278
+ }
2279
+ /**
2280
+ * Gets the managed application.
2281
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2282
+ * @param applicationName The name of the managed application.
2283
+ * @param options The options parameters.
2284
+ */
2285
+ get(resourceGroupName, applicationName, options) {
2286
+ return this.client.sendOperationRequest({ resourceGroupName, applicationName, options }, getOperationSpec$2);
2287
+ }
2288
+ /**
2289
+ * Deletes the managed application.
2290
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2291
+ * @param applicationName The name of the managed application.
2292
+ * @param options The options parameters.
2293
+ */
2294
+ beginDelete(resourceGroupName, applicationName, options) {
2295
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2296
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2297
+ return this.client.sendOperationRequest(args, spec);
2298
+ });
2299
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2300
+ var _a;
2301
+ let currentRawResponse = undefined;
2302
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2303
+ const callback = (rawResponse, flatResponse) => {
2304
+ currentRawResponse = rawResponse;
2305
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2306
+ };
2307
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2308
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2309
+ return {
2310
+ flatResponse,
2311
+ rawResponse: {
2312
+ statusCode: currentRawResponse.status,
2313
+ body: currentRawResponse.parsedBody,
2314
+ headers: currentRawResponse.headers.toJSON()
2315
+ }
2316
+ };
2317
+ });
2318
+ const lro = createLroSpec({
2319
+ sendOperationFn,
2320
+ args: { resourceGroupName, applicationName, options },
2321
+ spec: deleteOperationSpec$2
2322
+ });
2323
+ const poller = yield coreLro.createHttpPoller(lro, {
2324
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2325
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2326
+ resourceLocationConfig: "azure-async-operation"
2327
+ });
2328
+ yield poller.poll();
2329
+ return poller;
2330
+ });
2331
+ }
2332
+ /**
2333
+ * Deletes the managed application.
2334
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2335
+ * @param applicationName The name of the managed application.
2336
+ * @param options The options parameters.
2337
+ */
2338
+ beginDeleteAndWait(resourceGroupName, applicationName, options) {
2339
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2340
+ const poller = yield this.beginDelete(resourceGroupName, applicationName, options);
2341
+ return poller.pollUntilDone();
2342
+ });
2343
+ }
2344
+ /**
2345
+ * Creates or updates a managed application.
2346
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2347
+ * @param applicationName The name of the managed application.
2348
+ * @param parameters Parameters supplied to the create or update a managed application.
2349
+ * @param options The options parameters.
2350
+ */
2351
+ beginCreateOrUpdate(resourceGroupName, applicationName, parameters, options) {
2352
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2353
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2354
+ return this.client.sendOperationRequest(args, spec);
2355
+ });
2356
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2357
+ var _a;
2358
+ let currentRawResponse = undefined;
2359
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2360
+ const callback = (rawResponse, flatResponse) => {
2361
+ currentRawResponse = rawResponse;
2362
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2363
+ };
2364
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2365
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2366
+ return {
2367
+ flatResponse,
2368
+ rawResponse: {
2369
+ statusCode: currentRawResponse.status,
2370
+ body: currentRawResponse.parsedBody,
2371
+ headers: currentRawResponse.headers.toJSON()
2372
+ }
2373
+ };
2374
+ });
2375
+ const lro = createLroSpec({
2376
+ sendOperationFn,
2377
+ args: { resourceGroupName, applicationName, parameters, options },
2378
+ spec: createOrUpdateOperationSpec$2
2379
+ });
2380
+ const poller = yield coreLro.createHttpPoller(lro, {
2381
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2382
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2383
+ resourceLocationConfig: "azure-async-operation"
2384
+ });
2385
+ yield poller.poll();
2386
+ return poller;
2387
+ });
2388
+ }
2389
+ /**
2390
+ * Creates or updates a managed application.
2391
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2392
+ * @param applicationName The name of the managed application.
2393
+ * @param parameters Parameters supplied to the create or update a managed application.
2394
+ * @param options The options parameters.
2395
+ */
2396
+ beginCreateOrUpdateAndWait(resourceGroupName, applicationName, parameters, options) {
2397
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2398
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, applicationName, parameters, options);
2399
+ return poller.pollUntilDone();
2400
+ });
2401
+ }
2402
+ /**
2403
+ * Updates an existing managed application.
2404
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2405
+ * @param applicationName The name of the managed application.
2406
+ * @param options The options parameters.
2407
+ */
2408
+ beginUpdate(resourceGroupName, applicationName, options) {
2409
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2410
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2411
+ return this.client.sendOperationRequest(args, spec);
2412
+ });
2413
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2414
+ var _a;
2415
+ let currentRawResponse = undefined;
2416
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2417
+ const callback = (rawResponse, flatResponse) => {
2418
+ currentRawResponse = rawResponse;
2419
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2420
+ };
2421
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2422
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2423
+ return {
2424
+ flatResponse,
2425
+ rawResponse: {
2426
+ statusCode: currentRawResponse.status,
2427
+ body: currentRawResponse.parsedBody,
2428
+ headers: currentRawResponse.headers.toJSON()
2429
+ }
2430
+ };
2431
+ });
2432
+ const lro = createLroSpec({
2433
+ sendOperationFn,
2434
+ args: { resourceGroupName, applicationName, options },
2435
+ spec: updateOperationSpec$2
2436
+ });
2437
+ const poller = yield coreLro.createHttpPoller(lro, {
2438
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2439
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2440
+ resourceLocationConfig: "azure-async-operation"
2441
+ });
2442
+ yield poller.poll();
2443
+ return poller;
2444
+ });
2445
+ }
2446
+ /**
2447
+ * Updates an existing managed application.
2448
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2449
+ * @param applicationName The name of the managed application.
2450
+ * @param options The options parameters.
2451
+ */
2452
+ beginUpdateAndWait(resourceGroupName, applicationName, options) {
2453
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2454
+ const poller = yield this.beginUpdate(resourceGroupName, applicationName, options);
2455
+ return poller.pollUntilDone();
2456
+ });
2457
+ }
2458
+ /**
2459
+ * Lists all the applications within a resource group.
2460
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2461
+ * @param options The options parameters.
2462
+ */
2463
+ _listByResourceGroup(resourceGroupName, options) {
2464
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$2);
2465
+ }
2466
+ /**
2467
+ * Lists all the applications within a subscription.
2468
+ * @param options The options parameters.
2469
+ */
2470
+ _listBySubscription(options) {
2471
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$2);
2472
+ }
2473
+ /**
2474
+ * Gets the managed application.
2475
+ * @param applicationId The fully qualified ID of the managed application, including the managed
2476
+ * application name and the managed application resource type. Use the format,
2477
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2478
+ * @param options The options parameters.
2479
+ */
2480
+ getById(applicationId, options) {
2481
+ return this.client.sendOperationRequest({ applicationId, options }, getByIdOperationSpec$1);
2482
+ }
2483
+ /**
2484
+ * Deletes the managed application.
2485
+ * @param applicationId The fully qualified ID of the managed application, including the managed
2486
+ * application name and the managed application resource type. Use the format,
2487
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2488
+ * @param options The options parameters.
2489
+ */
2490
+ beginDeleteById(applicationId, options) {
2491
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2492
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2493
+ return this.client.sendOperationRequest(args, spec);
2494
+ });
2495
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2496
+ var _a;
2497
+ let currentRawResponse = undefined;
2498
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2499
+ const callback = (rawResponse, flatResponse) => {
2500
+ currentRawResponse = rawResponse;
2501
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2502
+ };
2503
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2504
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2505
+ return {
2506
+ flatResponse,
2507
+ rawResponse: {
2508
+ statusCode: currentRawResponse.status,
2509
+ body: currentRawResponse.parsedBody,
2510
+ headers: currentRawResponse.headers.toJSON()
2511
+ }
2512
+ };
2513
+ });
2514
+ const lro = createLroSpec({
2515
+ sendOperationFn,
2516
+ args: { applicationId, options },
2517
+ spec: deleteByIdOperationSpec$1
2518
+ });
2519
+ const poller = yield coreLro.createHttpPoller(lro, {
2520
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2521
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2522
+ resourceLocationConfig: "azure-async-operation"
2523
+ });
2524
+ yield poller.poll();
2525
+ return poller;
2526
+ });
2527
+ }
2528
+ /**
2529
+ * Deletes the managed application.
2530
+ * @param applicationId The fully qualified ID of the managed application, including the managed
2531
+ * application name and the managed application resource type. Use the format,
2532
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2533
+ * @param options The options parameters.
2534
+ */
2535
+ beginDeleteByIdAndWait(applicationId, options) {
2536
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2537
+ const poller = yield this.beginDeleteById(applicationId, options);
2538
+ return poller.pollUntilDone();
2539
+ });
2540
+ }
2541
+ /**
2542
+ * Creates or updates a managed application.
2543
+ * @param applicationId The fully qualified ID of the managed application, including the managed
2544
+ * application name and the managed application resource type. Use the format,
2545
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2546
+ * @param parameters Parameters supplied to the create or update a managed application.
2547
+ * @param options The options parameters.
2548
+ */
2549
+ beginCreateOrUpdateById(applicationId, parameters, options) {
2550
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2551
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2552
+ return this.client.sendOperationRequest(args, spec);
2553
+ });
2554
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2555
+ var _a;
2556
+ let currentRawResponse = undefined;
2557
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2558
+ const callback = (rawResponse, flatResponse) => {
2559
+ currentRawResponse = rawResponse;
2560
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2561
+ };
2562
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2563
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2564
+ return {
2565
+ flatResponse,
2566
+ rawResponse: {
2567
+ statusCode: currentRawResponse.status,
2568
+ body: currentRawResponse.parsedBody,
2569
+ headers: currentRawResponse.headers.toJSON()
2570
+ }
2571
+ };
2572
+ });
2573
+ const lro = createLroSpec({
2574
+ sendOperationFn,
2575
+ args: { applicationId, parameters, options },
2576
+ spec: createOrUpdateByIdOperationSpec$1
2577
+ });
2578
+ const poller = yield coreLro.createHttpPoller(lro, {
2579
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2580
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2581
+ resourceLocationConfig: "azure-async-operation"
2582
+ });
2583
+ yield poller.poll();
2584
+ return poller;
2585
+ });
2586
+ }
2587
+ /**
2588
+ * Creates or updates a managed application.
2589
+ * @param applicationId The fully qualified ID of the managed application, including the managed
2590
+ * application name and the managed application resource type. Use the format,
2591
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2592
+ * @param parameters Parameters supplied to the create or update a managed application.
2593
+ * @param options The options parameters.
2594
+ */
2595
+ beginCreateOrUpdateByIdAndWait(applicationId, parameters, options) {
2596
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2597
+ const poller = yield this.beginCreateOrUpdateById(applicationId, parameters, options);
2598
+ return poller.pollUntilDone();
2599
+ });
2600
+ }
2601
+ /**
2602
+ * Updates an existing managed application.
2603
+ * @param applicationId The fully qualified ID of the managed application, including the managed
2604
+ * application name and the managed application resource type. Use the format,
2605
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2606
+ * @param options The options parameters.
2607
+ */
2608
+ beginUpdateById(applicationId, options) {
2609
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2610
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2611
+ return this.client.sendOperationRequest(args, spec);
2612
+ });
2613
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2614
+ var _a;
2615
+ let currentRawResponse = undefined;
2616
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2617
+ const callback = (rawResponse, flatResponse) => {
2618
+ currentRawResponse = rawResponse;
2619
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2620
+ };
2621
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2622
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2623
+ return {
2624
+ flatResponse,
2625
+ rawResponse: {
2626
+ statusCode: currentRawResponse.status,
2627
+ body: currentRawResponse.parsedBody,
2628
+ headers: currentRawResponse.headers.toJSON()
2629
+ }
2630
+ };
2631
+ });
2632
+ const lro = createLroSpec({
2633
+ sendOperationFn,
2634
+ args: { applicationId, options },
2635
+ spec: updateByIdOperationSpec$1
2636
+ });
2637
+ const poller = yield coreLro.createHttpPoller(lro, {
2638
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2639
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2640
+ resourceLocationConfig: "azure-async-operation"
2641
+ });
2642
+ yield poller.poll();
2643
+ return poller;
2644
+ });
2645
+ }
2646
+ /**
2647
+ * Updates an existing managed application.
2648
+ * @param applicationId The fully qualified ID of the managed application, including the managed
2649
+ * application name and the managed application resource type. Use the format,
2650
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2651
+ * @param options The options parameters.
2652
+ */
2653
+ beginUpdateByIdAndWait(applicationId, options) {
2654
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2655
+ const poller = yield this.beginUpdateById(applicationId, options);
2656
+ return poller.pollUntilDone();
2657
+ });
2658
+ }
2659
+ /**
2660
+ * Refresh Permissions for application.
2661
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2662
+ * @param applicationName The name of the managed application.
2663
+ * @param options The options parameters.
2664
+ */
2665
+ beginRefreshPermissions(resourceGroupName, applicationName, options) {
2666
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2667
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2668
+ return this.client.sendOperationRequest(args, spec);
2669
+ });
2670
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2671
+ var _a;
2672
+ let currentRawResponse = undefined;
2673
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2674
+ const callback = (rawResponse, flatResponse) => {
2675
+ currentRawResponse = rawResponse;
2676
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2677
+ };
2678
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2679
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2680
+ return {
2681
+ flatResponse,
2682
+ rawResponse: {
2683
+ statusCode: currentRawResponse.status,
2684
+ body: currentRawResponse.parsedBody,
2685
+ headers: currentRawResponse.headers.toJSON()
2686
+ }
2687
+ };
2688
+ });
2689
+ const lro = createLroSpec({
2690
+ sendOperationFn,
2691
+ args: { resourceGroupName, applicationName, options },
2692
+ spec: refreshPermissionsOperationSpec
2693
+ });
2694
+ const poller = yield coreLro.createHttpPoller(lro, {
2695
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2696
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2697
+ resourceLocationConfig: "location"
2698
+ });
2699
+ yield poller.poll();
2700
+ return poller;
2701
+ });
2702
+ }
2703
+ /**
2704
+ * Refresh Permissions for application.
2705
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2706
+ * @param applicationName The name of the managed application.
2707
+ * @param options The options parameters.
2708
+ */
2709
+ beginRefreshPermissionsAndWait(resourceGroupName, applicationName, options) {
2710
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2711
+ const poller = yield this.beginRefreshPermissions(resourceGroupName, applicationName, options);
2712
+ return poller.pollUntilDone();
2713
+ });
2714
+ }
2715
+ /**
2716
+ * List allowed upgrade plans for application.
2717
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2718
+ * @param applicationName The name of the managed application.
2719
+ * @param options The options parameters.
2720
+ */
2721
+ listAllowedUpgradePlans(resourceGroupName, applicationName, options) {
2722
+ return this.client.sendOperationRequest({ resourceGroupName, applicationName, options }, listAllowedUpgradePlansOperationSpec);
2723
+ }
2724
+ /**
2725
+ * Update access for application.
2726
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2727
+ * @param applicationName The name of the managed application.
2728
+ * @param parameters Request body parameters to list tokens.
2729
+ * @param options The options parameters.
2730
+ */
2731
+ beginUpdateAccess(resourceGroupName, applicationName, parameters, options) {
2732
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2733
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2734
+ return this.client.sendOperationRequest(args, spec);
2735
+ });
2736
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2737
+ var _a;
2738
+ let currentRawResponse = undefined;
2739
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2740
+ const callback = (rawResponse, flatResponse) => {
2741
+ currentRawResponse = rawResponse;
2742
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2743
+ };
2744
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2745
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2746
+ return {
2747
+ flatResponse,
2748
+ rawResponse: {
2749
+ statusCode: currentRawResponse.status,
2750
+ body: currentRawResponse.parsedBody,
2751
+ headers: currentRawResponse.headers.toJSON()
2752
+ }
2753
+ };
2754
+ });
2755
+ const lro = createLroSpec({
2756
+ sendOperationFn,
2757
+ args: { resourceGroupName, applicationName, parameters, options },
2758
+ spec: updateAccessOperationSpec
2759
+ });
2760
+ const poller = yield coreLro.createHttpPoller(lro, {
2761
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2762
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2763
+ resourceLocationConfig: "location"
2764
+ });
2765
+ yield poller.poll();
2766
+ return poller;
2767
+ });
2768
+ }
2769
+ /**
2770
+ * Update access for application.
2771
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2772
+ * @param applicationName The name of the managed application.
2773
+ * @param parameters Request body parameters to list tokens.
2774
+ * @param options The options parameters.
2775
+ */
2776
+ beginUpdateAccessAndWait(resourceGroupName, applicationName, parameters, options) {
2777
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2778
+ const poller = yield this.beginUpdateAccess(resourceGroupName, applicationName, parameters, options);
2779
+ return poller.pollUntilDone();
2780
+ });
2781
+ }
2782
+ /**
2783
+ * List tokens for application.
2784
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2785
+ * @param applicationName The name of the managed application.
2786
+ * @param parameters Request body parameters to list tokens.
2787
+ * @param options The options parameters.
2788
+ */
2789
+ listTokens(resourceGroupName, applicationName, parameters, options) {
2790
+ return this.client.sendOperationRequest({ resourceGroupName, applicationName, parameters, options }, listTokensOperationSpec);
2791
+ }
2792
+ /**
2793
+ * ListByResourceGroupNext
2794
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2795
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2796
+ * @param options The options parameters.
2797
+ */
2798
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2799
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
2800
+ }
2801
+ /**
2802
+ * ListBySubscriptionNext
2803
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
2804
+ * @param options The options parameters.
2805
+ */
2806
+ _listBySubscriptionNext(nextLink, options) {
2807
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
2808
+ }
2809
+ }
2810
+ // Operation Specifications
2811
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2812
+ const getOperationSpec$2 = {
2813
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
2814
+ httpMethod: "GET",
2815
+ responses: {
2816
+ 200: {
2817
+ bodyMapper: Application
2818
+ },
2819
+ 404: {},
2820
+ default: {
2821
+ bodyMapper: ErrorResponse
2822
+ }
2823
+ },
2824
+ queryParameters: [apiVersion],
2825
+ urlParameters: [
2826
+ $host,
2827
+ subscriptionId,
2828
+ resourceGroupName,
2829
+ applicationName
2830
+ ],
2831
+ headerParameters: [accept],
2832
+ serializer: serializer$3
2833
+ };
2834
+ const deleteOperationSpec$2 = {
2835
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
2836
+ httpMethod: "DELETE",
2837
+ responses: {
2838
+ 200: {},
2839
+ 201: {},
2840
+ 202: {},
2841
+ 204: {},
2842
+ default: {
2843
+ bodyMapper: ErrorResponse
2844
+ }
2845
+ },
2846
+ queryParameters: [apiVersion],
2847
+ urlParameters: [
2848
+ $host,
2849
+ subscriptionId,
2850
+ resourceGroupName,
2851
+ applicationName
2852
+ ],
2853
+ headerParameters: [accept],
2854
+ serializer: serializer$3
2855
+ };
2856
+ const createOrUpdateOperationSpec$2 = {
2857
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
2858
+ httpMethod: "PUT",
2859
+ responses: {
2860
+ 200: {
2861
+ bodyMapper: Application
2862
+ },
2863
+ 201: {
2864
+ bodyMapper: Application
2865
+ },
2866
+ 202: {
2867
+ bodyMapper: Application
2868
+ },
2869
+ 204: {
2870
+ bodyMapper: Application
2871
+ },
2872
+ default: {
2873
+ bodyMapper: ErrorResponse
2874
+ }
2875
+ },
2876
+ requestBody: parameters,
2877
+ queryParameters: [apiVersion],
2878
+ urlParameters: [
2879
+ $host,
2880
+ subscriptionId,
2881
+ resourceGroupName,
2882
+ applicationName
2883
+ ],
2884
+ headerParameters: [accept, contentType],
2885
+ mediaType: "json",
2886
+ serializer: serializer$3
2887
+ };
2888
+ const updateOperationSpec$2 = {
2889
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
2890
+ httpMethod: "PATCH",
2891
+ responses: {
2892
+ 200: {
2893
+ bodyMapper: ApplicationPatchable
2894
+ },
2895
+ 201: {
2896
+ bodyMapper: ApplicationPatchable
2897
+ },
2898
+ 202: {
2899
+ bodyMapper: ApplicationPatchable
2900
+ },
2901
+ 204: {
2902
+ bodyMapper: ApplicationPatchable
2903
+ },
2904
+ default: {
2905
+ bodyMapper: ErrorResponse
2906
+ }
2907
+ },
2908
+ requestBody: parameters1,
2909
+ queryParameters: [apiVersion],
2910
+ urlParameters: [
2911
+ $host,
2912
+ subscriptionId,
2913
+ resourceGroupName,
2914
+ applicationName
2915
+ ],
2916
+ headerParameters: [accept, contentType],
2917
+ mediaType: "json",
2918
+ serializer: serializer$3
2919
+ };
2920
+ const listByResourceGroupOperationSpec$2 = {
2921
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications",
2922
+ httpMethod: "GET",
2923
+ responses: {
2924
+ 200: {
2925
+ bodyMapper: ApplicationListResult
2926
+ },
2927
+ default: {
2928
+ bodyMapper: ErrorResponse
2929
+ }
2930
+ },
2931
+ queryParameters: [apiVersion],
2932
+ urlParameters: [
2933
+ $host,
2934
+ subscriptionId,
2935
+ resourceGroupName
2936
+ ],
2937
+ headerParameters: [accept],
2938
+ serializer: serializer$3
2939
+ };
2940
+ const listBySubscriptionOperationSpec$2 = {
2941
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications",
2942
+ httpMethod: "GET",
2943
+ responses: {
2944
+ 200: {
2945
+ bodyMapper: ApplicationListResult
2946
+ },
2947
+ default: {
2948
+ bodyMapper: ErrorResponse
2949
+ }
2950
+ },
2951
+ queryParameters: [apiVersion],
2952
+ urlParameters: [$host, subscriptionId],
2953
+ headerParameters: [accept],
2954
+ serializer: serializer$3
2955
+ };
2956
+ const getByIdOperationSpec$1 = {
2957
+ path: "/{applicationId}",
2958
+ httpMethod: "GET",
2959
+ responses: {
2960
+ 200: {
2961
+ bodyMapper: Application
2962
+ },
2963
+ 404: {},
2964
+ default: {
2965
+ bodyMapper: ErrorResponse
2966
+ }
2967
+ },
2968
+ queryParameters: [apiVersion],
2969
+ urlParameters: [$host, applicationId],
2970
+ headerParameters: [accept],
2971
+ serializer: serializer$3
2972
+ };
2973
+ const deleteByIdOperationSpec$1 = {
2974
+ path: "/{applicationId}",
2975
+ httpMethod: "DELETE",
2976
+ responses: {
2977
+ 200: {},
2978
+ 201: {},
2979
+ 202: {},
2980
+ 204: {},
2981
+ default: {
2982
+ bodyMapper: ErrorResponse
2983
+ }
2984
+ },
2985
+ queryParameters: [apiVersion],
2986
+ urlParameters: [$host, applicationId],
2987
+ headerParameters: [accept],
2988
+ serializer: serializer$3
2989
+ };
2990
+ const createOrUpdateByIdOperationSpec$1 = {
2991
+ path: "/{applicationId}",
2992
+ httpMethod: "PUT",
2993
+ responses: {
2994
+ 200: {
2995
+ bodyMapper: Application
2996
+ },
2997
+ 201: {
2998
+ bodyMapper: Application
2999
+ },
3000
+ 202: {
3001
+ bodyMapper: Application
3002
+ },
3003
+ 204: {
3004
+ bodyMapper: Application
3005
+ },
3006
+ default: {
3007
+ bodyMapper: ErrorResponse
3008
+ }
3009
+ },
3010
+ requestBody: parameters,
3011
+ queryParameters: [apiVersion],
3012
+ urlParameters: [$host, applicationId],
3013
+ headerParameters: [accept, contentType],
3014
+ mediaType: "json",
3015
+ serializer: serializer$3
3016
+ };
3017
+ const updateByIdOperationSpec$1 = {
3018
+ path: "/{applicationId}",
3019
+ httpMethod: "PATCH",
3020
+ responses: {
3021
+ 200: {
3022
+ bodyMapper: ApplicationPatchable
3023
+ },
3024
+ 201: {
3025
+ bodyMapper: ApplicationPatchable
3026
+ },
3027
+ 202: {
3028
+ bodyMapper: ApplicationPatchable
3029
+ },
3030
+ 204: {
3031
+ bodyMapper: ApplicationPatchable
3032
+ },
3033
+ default: {
3034
+ bodyMapper: ErrorResponse
3035
+ }
3036
+ },
3037
+ requestBody: parameters1,
3038
+ queryParameters: [apiVersion],
3039
+ urlParameters: [$host, applicationId],
3040
+ headerParameters: [accept, contentType],
3041
+ mediaType: "json",
3042
+ serializer: serializer$3
3043
+ };
3044
+ const refreshPermissionsOperationSpec = {
3045
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions",
3046
+ httpMethod: "POST",
3047
+ responses: {
3048
+ 200: {},
3049
+ 201: {},
3050
+ 202: {},
3051
+ 204: {},
3052
+ default: {
3053
+ bodyMapper: ErrorResponse
3054
+ }
3055
+ },
3056
+ queryParameters: [apiVersion],
3057
+ urlParameters: [
3058
+ $host,
3059
+ subscriptionId,
3060
+ resourceGroupName,
3061
+ applicationName
3062
+ ],
3063
+ headerParameters: [accept],
3064
+ serializer: serializer$3
3065
+ };
3066
+ const listAllowedUpgradePlansOperationSpec = {
3067
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans",
3068
+ httpMethod: "POST",
3069
+ responses: {
3070
+ 200: {
3071
+ bodyMapper: AllowedUpgradePlansResult
3072
+ },
3073
+ default: {
3074
+ bodyMapper: ErrorResponse
3075
+ }
3076
+ },
3077
+ queryParameters: [apiVersion],
3078
+ urlParameters: [
3079
+ $host,
3080
+ subscriptionId,
3081
+ resourceGroupName,
3082
+ applicationName
3083
+ ],
3084
+ headerParameters: [accept],
3085
+ serializer: serializer$3
3086
+ };
3087
+ const updateAccessOperationSpec = {
3088
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess",
3089
+ httpMethod: "POST",
3090
+ responses: {
3091
+ 200: {},
3092
+ 201: {},
3093
+ 202: {},
3094
+ 204: {},
3095
+ default: {
3096
+ bodyMapper: ErrorResponse
3097
+ }
3098
+ },
3099
+ requestBody: parameters2,
3100
+ queryParameters: [apiVersion],
3101
+ urlParameters: [
3102
+ $host,
3103
+ subscriptionId,
3104
+ resourceGroupName,
3105
+ applicationName
3106
+ ],
3107
+ headerParameters: [accept, contentType],
3108
+ mediaType: "json",
3109
+ serializer: serializer$3
826
3110
  };
827
- const applicationId = {
828
- parameterPath: "applicationId",
829
- mapper: {
830
- serializedName: "applicationId",
831
- required: true,
832
- type: {
833
- name: "String"
3111
+ const listTokensOperationSpec = {
3112
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens",
3113
+ httpMethod: "POST",
3114
+ responses: {
3115
+ 200: {
3116
+ bodyMapper: ManagedIdentityTokenResult
3117
+ },
3118
+ default: {
3119
+ bodyMapper: ErrorResponse
834
3120
  }
835
3121
  },
836
- skipEncoding: true
837
- };
838
- const parameters2 = {
839
- parameterPath: ["options", "parameters"],
840
- mapper: Application
3122
+ requestBody: parameters3,
3123
+ queryParameters: [apiVersion],
3124
+ urlParameters: [
3125
+ $host,
3126
+ subscriptionId,
3127
+ resourceGroupName,
3128
+ applicationName
3129
+ ],
3130
+ headerParameters: [accept, contentType],
3131
+ mediaType: "json",
3132
+ serializer: serializer$3
841
3133
  };
842
- const applicationDefinitionName = {
843
- parameterPath: "applicationDefinitionName",
844
- mapper: {
845
- constraints: {
846
- MaxLength: 64,
847
- MinLength: 3
3134
+ const listByResourceGroupNextOperationSpec$1 = {
3135
+ path: "{nextLink}",
3136
+ httpMethod: "GET",
3137
+ responses: {
3138
+ 200: {
3139
+ bodyMapper: ApplicationListResult
848
3140
  },
849
- serializedName: "applicationDefinitionName",
850
- required: true,
851
- type: {
852
- name: "String"
3141
+ default: {
3142
+ bodyMapper: ErrorResponse
853
3143
  }
854
- }
3144
+ },
3145
+ urlParameters: [
3146
+ $host,
3147
+ nextLink,
3148
+ subscriptionId,
3149
+ resourceGroupName
3150
+ ],
3151
+ headerParameters: [accept],
3152
+ serializer: serializer$3
855
3153
  };
856
- const parameters3 = {
857
- parameterPath: "parameters",
858
- mapper: ApplicationDefinition
3154
+ const listBySubscriptionNextOperationSpec$1 = {
3155
+ path: "{nextLink}",
3156
+ httpMethod: "GET",
3157
+ responses: {
3158
+ 200: {
3159
+ bodyMapper: ApplicationListResult
3160
+ },
3161
+ default: {
3162
+ bodyMapper: ErrorResponse
3163
+ }
3164
+ },
3165
+ urlParameters: [
3166
+ $host,
3167
+ nextLink,
3168
+ subscriptionId
3169
+ ],
3170
+ headerParameters: [accept],
3171
+ serializer: serializer$3
859
3172
  };
860
3173
 
861
- /*
862
- * Copyright (c) Microsoft Corporation.
863
- * Licensed under the MIT License.
864
- *
865
- * Code generated by Microsoft (R) AutoRest Code Generator.
866
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
867
- */
868
- class LroImpl {
869
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
870
- this.sendOperationFn = sendOperationFn;
871
- this.args = args;
872
- this.spec = spec;
873
- this.requestPath = requestPath;
874
- this.requestMethod = requestMethod;
875
- }
876
- sendInitialRequest() {
877
- return tslib.__awaiter(this, void 0, void 0, function* () {
878
- return this.sendOperationFn(this.args, this.spec);
879
- });
880
- }
881
- sendPollRequest(path) {
882
- return tslib.__awaiter(this, void 0, void 0, function* () {
883
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
884
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
885
- });
886
- }
887
- }
888
-
889
3174
  /*
890
3175
  * Copyright (c) Microsoft Corporation.
891
3176
  * Licensed under the MIT License.
@@ -894,17 +3179,17 @@ class LroImpl {
894
3179
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
895
3180
  */
896
3181
  /// <reference lib="esnext.asynciterable" />
897
- /** Class containing Applications operations. */
898
- class ApplicationsImpl {
3182
+ /** Class containing ApplicationDefinitions operations. */
3183
+ class ApplicationDefinitionsImpl {
899
3184
  /**
900
- * Initialize a new instance of the class Applications class.
3185
+ * Initialize a new instance of the class ApplicationDefinitions class.
901
3186
  * @param client Reference to the service client
902
3187
  */
903
3188
  constructor(client) {
904
3189
  this.client = client;
905
3190
  }
906
3191
  /**
907
- * Gets all the applications within a resource group.
3192
+ * Lists the managed application definitions in a resource group.
908
3193
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
909
3194
  * @param options The options parameters.
910
3195
  */
@@ -971,7 +3256,7 @@ class ApplicationsImpl {
971
3256
  });
972
3257
  }
973
3258
  /**
974
- * Gets all the applications within a subscription.
3259
+ * Lists all the application definitions within a subscription.
975
3260
  * @param options The options parameters.
976
3261
  */
977
3262
  listBySubscription(options) {
@@ -1037,130 +3322,45 @@ class ApplicationsImpl {
1037
3322
  });
1038
3323
  }
1039
3324
  /**
1040
- * Gets the managed application.
1041
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1042
- * @param applicationName The name of the managed application.
1043
- * @param options The options parameters.
1044
- */
1045
- get(resourceGroupName, applicationName, options) {
1046
- return this.client.sendOperationRequest({ resourceGroupName, applicationName, options }, getOperationSpec$1);
1047
- }
1048
- /**
1049
- * Deletes the managed application.
1050
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1051
- * @param applicationName The name of the managed application.
1052
- * @param options The options parameters.
1053
- */
1054
- beginDelete(resourceGroupName, applicationName, options) {
1055
- return tslib.__awaiter(this, void 0, void 0, function* () {
1056
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1057
- return this.client.sendOperationRequest(args, spec);
1058
- });
1059
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1060
- var _a;
1061
- let currentRawResponse = undefined;
1062
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1063
- const callback = (rawResponse, flatResponse) => {
1064
- currentRawResponse = rawResponse;
1065
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1066
- };
1067
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1068
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1069
- return {
1070
- flatResponse,
1071
- rawResponse: {
1072
- statusCode: currentRawResponse.status,
1073
- body: currentRawResponse.parsedBody,
1074
- headers: currentRawResponse.headers.toJSON()
1075
- }
1076
- };
1077
- });
1078
- const lro = new LroImpl(sendOperation, { resourceGroupName, applicationName, options }, deleteOperationSpec$1);
1079
- const poller = new coreLro.LroEngine(lro, {
1080
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1081
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1082
- });
1083
- yield poller.poll();
1084
- return poller;
1085
- });
1086
- }
1087
- /**
1088
- * Deletes the managed application.
3325
+ * Gets the managed application definition.
1089
3326
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1090
- * @param applicationName The name of the managed application.
3327
+ * @param applicationDefinitionName The name of the managed application definition.
1091
3328
  * @param options The options parameters.
1092
3329
  */
1093
- beginDeleteAndWait(resourceGroupName, applicationName, options) {
1094
- return tslib.__awaiter(this, void 0, void 0, function* () {
1095
- const poller = yield this.beginDelete(resourceGroupName, applicationName, options);
1096
- return poller.pollUntilDone();
1097
- });
3330
+ get(resourceGroupName, applicationDefinitionName, options) {
3331
+ return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, options }, getOperationSpec$1);
1098
3332
  }
1099
3333
  /**
1100
- * Creates a new managed application.
3334
+ * Deletes the managed application definition.
1101
3335
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1102
- * @param applicationName The name of the managed application.
1103
- * @param parameters Parameters supplied to the create or update a managed application.
3336
+ * @param applicationDefinitionName The name of the managed application definition.
1104
3337
  * @param options The options parameters.
1105
3338
  */
1106
- beginCreateOrUpdate(resourceGroupName, applicationName, parameters, options) {
1107
- return tslib.__awaiter(this, void 0, void 0, function* () {
1108
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1109
- return this.client.sendOperationRequest(args, spec);
1110
- });
1111
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1112
- var _a;
1113
- let currentRawResponse = undefined;
1114
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1115
- const callback = (rawResponse, flatResponse) => {
1116
- currentRawResponse = rawResponse;
1117
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1118
- };
1119
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1120
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1121
- return {
1122
- flatResponse,
1123
- rawResponse: {
1124
- statusCode: currentRawResponse.status,
1125
- body: currentRawResponse.parsedBody,
1126
- headers: currentRawResponse.headers.toJSON()
1127
- }
1128
- };
1129
- });
1130
- const lro = new LroImpl(sendOperation, { resourceGroupName, applicationName, parameters, options }, createOrUpdateOperationSpec$1);
1131
- const poller = new coreLro.LroEngine(lro, {
1132
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1133
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1134
- });
1135
- yield poller.poll();
1136
- return poller;
1137
- });
3339
+ delete(resourceGroupName, applicationDefinitionName, options) {
3340
+ return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, options }, deleteOperationSpec$1);
1138
3341
  }
1139
3342
  /**
1140
- * Creates a new managed application.
3343
+ * Creates or updates a managed application definition.
1141
3344
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1142
- * @param applicationName The name of the managed application.
1143
- * @param parameters Parameters supplied to the create or update a managed application.
3345
+ * @param applicationDefinitionName The name of the managed application definition.
3346
+ * @param parameters Parameters supplied to the create or update an managed application definition.
1144
3347
  * @param options The options parameters.
1145
3348
  */
1146
- beginCreateOrUpdateAndWait(resourceGroupName, applicationName, parameters, options) {
1147
- return tslib.__awaiter(this, void 0, void 0, function* () {
1148
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, applicationName, parameters, options);
1149
- return poller.pollUntilDone();
1150
- });
3349
+ createOrUpdate(resourceGroupName, applicationDefinitionName, parameters, options) {
3350
+ return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, parameters, options }, createOrUpdateOperationSpec$1);
1151
3351
  }
1152
3352
  /**
1153
- * Updates an existing managed application. The only value that can be updated via PATCH currently is
1154
- * the tags.
3353
+ * Updates the managed application definition.
1155
3354
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1156
- * @param applicationName The name of the managed application.
3355
+ * @param applicationDefinitionName The name of the managed application definition.
3356
+ * @param parameters Parameters supplied to the update a managed application definition.
1157
3357
  * @param options The options parameters.
1158
3358
  */
1159
- update(resourceGroupName, applicationName, options) {
1160
- return this.client.sendOperationRequest({ resourceGroupName, applicationName, options }, updateOperationSpec);
3359
+ update(resourceGroupName, applicationDefinitionName, parameters, options) {
3360
+ return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, parameters, options }, updateOperationSpec$1);
1161
3361
  }
1162
3362
  /**
1163
- * Gets all the applications within a resource group.
3363
+ * Lists the managed application definitions in a resource group.
1164
3364
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1165
3365
  * @param options The options parameters.
1166
3366
  */
@@ -1168,140 +3368,49 @@ class ApplicationsImpl {
1168
3368
  return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
1169
3369
  }
1170
3370
  /**
1171
- * Gets all the applications within a subscription.
3371
+ * Lists all the application definitions within a subscription.
1172
3372
  * @param options The options parameters.
1173
3373
  */
1174
3374
  _listBySubscription(options) {
1175
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1176
- }
1177
- /**
1178
- * Gets the managed application.
1179
- * @param applicationId The fully qualified ID of the managed application, including the managed
1180
- * application name and the managed application resource type. Use the format,
1181
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
1182
- * @param options The options parameters.
1183
- */
1184
- getById(applicationId, options) {
1185
- return this.client.sendOperationRequest({ applicationId, options }, getByIdOperationSpec$1);
1186
- }
1187
- /**
1188
- * Deletes the managed application.
1189
- * @param applicationId The fully qualified ID of the managed application, including the managed
1190
- * application name and the managed application resource type. Use the format,
1191
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
1192
- * @param options The options parameters.
1193
- */
1194
- beginDeleteById(applicationId, options) {
1195
- return tslib.__awaiter(this, void 0, void 0, function* () {
1196
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1197
- return this.client.sendOperationRequest(args, spec);
1198
- });
1199
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1200
- var _a;
1201
- let currentRawResponse = undefined;
1202
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1203
- const callback = (rawResponse, flatResponse) => {
1204
- currentRawResponse = rawResponse;
1205
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1206
- };
1207
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1208
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1209
- return {
1210
- flatResponse,
1211
- rawResponse: {
1212
- statusCode: currentRawResponse.status,
1213
- body: currentRawResponse.parsedBody,
1214
- headers: currentRawResponse.headers.toJSON()
1215
- }
1216
- };
1217
- });
1218
- const lro = new LroImpl(sendOperation, { applicationId, options }, deleteByIdOperationSpec$1);
1219
- const poller = new coreLro.LroEngine(lro, {
1220
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1221
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1222
- });
1223
- yield poller.poll();
1224
- return poller;
1225
- });
3375
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
1226
3376
  }
1227
3377
  /**
1228
- * Deletes the managed application.
1229
- * @param applicationId The fully qualified ID of the managed application, including the managed
1230
- * application name and the managed application resource type. Use the format,
1231
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
3378
+ * Gets the managed application definition.
3379
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3380
+ * @param applicationDefinitionName The name of the managed application definition.
1232
3381
  * @param options The options parameters.
1233
3382
  */
1234
- beginDeleteByIdAndWait(applicationId, options) {
1235
- return tslib.__awaiter(this, void 0, void 0, function* () {
1236
- const poller = yield this.beginDeleteById(applicationId, options);
1237
- return poller.pollUntilDone();
1238
- });
1239
- }
1240
- /**
1241
- * Creates a new managed application.
1242
- * @param applicationId The fully qualified ID of the managed application, including the managed
1243
- * application name and the managed application resource type. Use the format,
1244
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
1245
- * @param parameters Parameters supplied to the create or update a managed application.
3383
+ getById(resourceGroupName, applicationDefinitionName, options) {
3384
+ return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, options }, getByIdOperationSpec);
3385
+ }
3386
+ /**
3387
+ * Deletes the managed application definition.
3388
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3389
+ * @param applicationDefinitionName The name of the managed application definition.
1246
3390
  * @param options The options parameters.
1247
3391
  */
1248
- beginCreateOrUpdateById(applicationId, parameters, options) {
1249
- return tslib.__awaiter(this, void 0, void 0, function* () {
1250
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1251
- return this.client.sendOperationRequest(args, spec);
1252
- });
1253
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1254
- var _a;
1255
- let currentRawResponse = undefined;
1256
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1257
- const callback = (rawResponse, flatResponse) => {
1258
- currentRawResponse = rawResponse;
1259
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1260
- };
1261
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1262
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1263
- return {
1264
- flatResponse,
1265
- rawResponse: {
1266
- statusCode: currentRawResponse.status,
1267
- body: currentRawResponse.parsedBody,
1268
- headers: currentRawResponse.headers.toJSON()
1269
- }
1270
- };
1271
- });
1272
- const lro = new LroImpl(sendOperation, { applicationId, parameters, options }, createOrUpdateByIdOperationSpec$1);
1273
- const poller = new coreLro.LroEngine(lro, {
1274
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1275
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1276
- });
1277
- yield poller.poll();
1278
- return poller;
1279
- });
3392
+ deleteById(resourceGroupName, applicationDefinitionName, options) {
3393
+ return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, options }, deleteByIdOperationSpec);
1280
3394
  }
1281
3395
  /**
1282
- * Creates a new managed application.
1283
- * @param applicationId The fully qualified ID of the managed application, including the managed
1284
- * application name and the managed application resource type. Use the format,
1285
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
1286
- * @param parameters Parameters supplied to the create or update a managed application.
3396
+ * Creates or updates a managed application definition.
3397
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3398
+ * @param applicationDefinitionName The name of the managed application definition.
3399
+ * @param parameters Parameters supplied to the create or update a managed application definition.
1287
3400
  * @param options The options parameters.
1288
3401
  */
1289
- beginCreateOrUpdateByIdAndWait(applicationId, parameters, options) {
1290
- return tslib.__awaiter(this, void 0, void 0, function* () {
1291
- const poller = yield this.beginCreateOrUpdateById(applicationId, parameters, options);
1292
- return poller.pollUntilDone();
1293
- });
3402
+ createOrUpdateById(resourceGroupName, applicationDefinitionName, parameters, options) {
3403
+ return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, parameters, options }, createOrUpdateByIdOperationSpec);
1294
3404
  }
1295
3405
  /**
1296
- * Updates an existing managed application. The only value that can be updated via PATCH currently is
1297
- * the tags.
1298
- * @param applicationId The fully qualified ID of the managed application, including the managed
1299
- * application name and the managed application resource type. Use the format,
1300
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
3406
+ * Updates the managed application definition.
3407
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3408
+ * @param applicationDefinitionName The name of the managed application definition.
3409
+ * @param parameters Parameters supplied to the update a managed application definition.
1301
3410
  * @param options The options parameters.
1302
3411
  */
1303
- updateById(applicationId, options) {
1304
- return this.client.sendOperationRequest({ applicationId, options }, updateByIdOperationSpec);
3412
+ updateById(resourceGroupName, applicationDefinitionName, parameters, options) {
3413
+ return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, parameters, options }, updateByIdOperationSpec);
1305
3414
  }
1306
3415
  /**
1307
3416
  * ListByResourceGroupNext
@@ -1310,7 +3419,7 @@ class ApplicationsImpl {
1310
3419
  * @param options The options parameters.
1311
3420
  */
1312
3421
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1313
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
3422
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1314
3423
  }
1315
3424
  /**
1316
3425
  * ListBySubscriptionNext
@@ -1324,11 +3433,11 @@ class ApplicationsImpl {
1324
3433
  // Operation Specifications
1325
3434
  const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1326
3435
  const getOperationSpec$1 = {
1327
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
3436
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
1328
3437
  httpMethod: "GET",
1329
3438
  responses: {
1330
3439
  200: {
1331
- bodyMapper: Application
3440
+ bodyMapper: ApplicationDefinition
1332
3441
  },
1333
3442
  404: {},
1334
3443
  default: {
@@ -1338,20 +3447,18 @@ const getOperationSpec$1 = {
1338
3447
  queryParameters: [apiVersion],
1339
3448
  urlParameters: [
1340
3449
  $host,
3450
+ subscriptionId,
1341
3451
  resourceGroupName,
1342
- applicationName,
1343
- subscriptionId
3452
+ applicationDefinitionName
1344
3453
  ],
1345
3454
  headerParameters: [accept],
1346
3455
  serializer: serializer$2
1347
3456
  };
1348
3457
  const deleteOperationSpec$1 = {
1349
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
3458
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
1350
3459
  httpMethod: "DELETE",
1351
3460
  responses: {
1352
3461
  200: {},
1353
- 201: {},
1354
- 202: {},
1355
3462
  204: {},
1356
3463
  default: {
1357
3464
  bodyMapper: ErrorResponse
@@ -1360,74 +3467,68 @@ const deleteOperationSpec$1 = {
1360
3467
  queryParameters: [apiVersion],
1361
3468
  urlParameters: [
1362
3469
  $host,
3470
+ subscriptionId,
1363
3471
  resourceGroupName,
1364
- applicationName,
1365
- subscriptionId
3472
+ applicationDefinitionName
1366
3473
  ],
1367
3474
  headerParameters: [accept],
1368
3475
  serializer: serializer$2
1369
3476
  };
1370
3477
  const createOrUpdateOperationSpec$1 = {
1371
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
3478
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
1372
3479
  httpMethod: "PUT",
1373
3480
  responses: {
1374
3481
  200: {
1375
- bodyMapper: Application
3482
+ bodyMapper: ApplicationDefinition
1376
3483
  },
1377
3484
  201: {
1378
- bodyMapper: Application
1379
- },
1380
- 202: {
1381
- bodyMapper: Application
1382
- },
1383
- 204: {
1384
- bodyMapper: Application
3485
+ bodyMapper: ApplicationDefinition
1385
3486
  },
1386
3487
  default: {
1387
3488
  bodyMapper: ErrorResponse
1388
3489
  }
1389
3490
  },
1390
- requestBody: parameters,
3491
+ requestBody: parameters4,
1391
3492
  queryParameters: [apiVersion],
1392
3493
  urlParameters: [
1393
3494
  $host,
3495
+ subscriptionId,
1394
3496
  resourceGroupName,
1395
- applicationName,
1396
- subscriptionId
3497
+ applicationDefinitionName
1397
3498
  ],
1398
3499
  headerParameters: [accept, contentType],
1399
3500
  mediaType: "json",
1400
3501
  serializer: serializer$2
1401
3502
  };
1402
- const updateOperationSpec = {
1403
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
3503
+ const updateOperationSpec$1 = {
3504
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
1404
3505
  httpMethod: "PATCH",
1405
3506
  responses: {
1406
3507
  200: {
1407
- bodyMapper: Application
3508
+ bodyMapper: ApplicationDefinition
1408
3509
  },
1409
3510
  default: {
1410
3511
  bodyMapper: ErrorResponse
1411
3512
  }
1412
3513
  },
1413
- requestBody: parameters1,
3514
+ requestBody: parameters5,
1414
3515
  queryParameters: [apiVersion],
1415
3516
  urlParameters: [
1416
3517
  $host,
3518
+ subscriptionId,
1417
3519
  resourceGroupName,
1418
- applicationName,
1419
- subscriptionId
3520
+ applicationDefinitionName
1420
3521
  ],
1421
3522
  headerParameters: [accept, contentType],
1422
3523
  mediaType: "json",
1423
3524
  serializer: serializer$2
1424
3525
  };
1425
3526
  const listByResourceGroupOperationSpec$1 = {
1426
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications",
3527
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions",
1427
3528
  httpMethod: "GET",
1428
3529
  responses: {
1429
3530
  200: {
1430
- bodyMapper: ApplicationListResult
3531
+ bodyMapper: ApplicationDefinitionListResult
1431
3532
  },
1432
3533
  default: {
1433
3534
  bodyMapper: ErrorResponse
@@ -1436,18 +3537,18 @@ const listByResourceGroupOperationSpec$1 = {
1436
3537
  queryParameters: [apiVersion],
1437
3538
  urlParameters: [
1438
3539
  $host,
1439
- resourceGroupName,
1440
- subscriptionId
3540
+ subscriptionId,
3541
+ resourceGroupName
1441
3542
  ],
1442
3543
  headerParameters: [accept],
1443
3544
  serializer: serializer$2
1444
3545
  };
1445
- const listBySubscriptionOperationSpec = {
1446
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications",
3546
+ const listBySubscriptionOperationSpec$1 = {
3547
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions",
1447
3548
  httpMethod: "GET",
1448
3549
  responses: {
1449
3550
  200: {
1450
- bodyMapper: ApplicationListResult
3551
+ bodyMapper: ApplicationDefinitionListResult
1451
3552
  },
1452
3553
  default: {
1453
3554
  bodyMapper: ErrorResponse
@@ -1458,12 +3559,12 @@ const listBySubscriptionOperationSpec = {
1458
3559
  headerParameters: [accept],
1459
3560
  serializer: serializer$2
1460
3561
  };
1461
- const getByIdOperationSpec$1 = {
1462
- path: "/{applicationId}",
3562
+ const getByIdOperationSpec = {
3563
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
1463
3564
  httpMethod: "GET",
1464
3565
  responses: {
1465
3566
  200: {
1466
- bodyMapper: Application
3567
+ bodyMapper: ApplicationDefinition
1467
3568
  },
1468
3569
  404: {},
1469
3570
  default: {
@@ -1471,89 +3572,100 @@ const getByIdOperationSpec$1 = {
1471
3572
  }
1472
3573
  },
1473
3574
  queryParameters: [apiVersion],
1474
- urlParameters: [$host, applicationId],
3575
+ urlParameters: [
3576
+ $host,
3577
+ subscriptionId,
3578
+ applicationDefinitionName,
3579
+ resourceGroupName1
3580
+ ],
1475
3581
  headerParameters: [accept],
1476
3582
  serializer: serializer$2
1477
3583
  };
1478
- const deleteByIdOperationSpec$1 = {
1479
- path: "/{applicationId}",
3584
+ const deleteByIdOperationSpec = {
3585
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
1480
3586
  httpMethod: "DELETE",
1481
3587
  responses: {
1482
3588
  200: {},
1483
- 201: {},
1484
- 202: {},
1485
3589
  204: {},
1486
3590
  default: {
1487
3591
  bodyMapper: ErrorResponse
1488
3592
  }
1489
3593
  },
1490
3594
  queryParameters: [apiVersion],
1491
- urlParameters: [$host, applicationId],
3595
+ urlParameters: [
3596
+ $host,
3597
+ subscriptionId,
3598
+ applicationDefinitionName,
3599
+ resourceGroupName1
3600
+ ],
1492
3601
  headerParameters: [accept],
1493
3602
  serializer: serializer$2
1494
3603
  };
1495
- const createOrUpdateByIdOperationSpec$1 = {
1496
- path: "/{applicationId}",
3604
+ const createOrUpdateByIdOperationSpec = {
3605
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
1497
3606
  httpMethod: "PUT",
1498
3607
  responses: {
1499
3608
  200: {
1500
- bodyMapper: Application
3609
+ bodyMapper: ApplicationDefinition
1501
3610
  },
1502
3611
  201: {
1503
- bodyMapper: Application
1504
- },
1505
- 202: {
1506
- bodyMapper: Application
1507
- },
1508
- 204: {
1509
- bodyMapper: Application
3612
+ bodyMapper: ApplicationDefinition
1510
3613
  },
1511
3614
  default: {
1512
3615
  bodyMapper: ErrorResponse
1513
3616
  }
1514
3617
  },
1515
- requestBody: parameters,
3618
+ requestBody: parameters4,
1516
3619
  queryParameters: [apiVersion],
1517
- urlParameters: [$host, applicationId],
3620
+ urlParameters: [
3621
+ $host,
3622
+ subscriptionId,
3623
+ applicationDefinitionName,
3624
+ resourceGroupName1
3625
+ ],
1518
3626
  headerParameters: [accept, contentType],
1519
3627
  mediaType: "json",
1520
3628
  serializer: serializer$2
1521
3629
  };
1522
3630
  const updateByIdOperationSpec = {
1523
- path: "/{applicationId}",
3631
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
1524
3632
  httpMethod: "PATCH",
1525
3633
  responses: {
1526
3634
  200: {
1527
- bodyMapper: Application
3635
+ bodyMapper: ApplicationDefinition
1528
3636
  },
1529
3637
  default: {
1530
3638
  bodyMapper: ErrorResponse
1531
3639
  }
1532
3640
  },
1533
- requestBody: parameters2,
3641
+ requestBody: parameters5,
1534
3642
  queryParameters: [apiVersion],
1535
- urlParameters: [$host, applicationId],
3643
+ urlParameters: [
3644
+ $host,
3645
+ subscriptionId,
3646
+ resourceGroupName,
3647
+ applicationDefinitionName
3648
+ ],
1536
3649
  headerParameters: [accept, contentType],
1537
3650
  mediaType: "json",
1538
3651
  serializer: serializer$2
1539
3652
  };
1540
- const listByResourceGroupNextOperationSpec$1 = {
3653
+ const listByResourceGroupNextOperationSpec = {
1541
3654
  path: "{nextLink}",
1542
3655
  httpMethod: "GET",
1543
3656
  responses: {
1544
3657
  200: {
1545
- bodyMapper: ApplicationListResult
3658
+ bodyMapper: ApplicationDefinitionListResult
1546
3659
  },
1547
3660
  default: {
1548
3661
  bodyMapper: ErrorResponse
1549
3662
  }
1550
3663
  },
1551
- queryParameters: [apiVersion],
1552
3664
  urlParameters: [
1553
3665
  $host,
1554
3666
  nextLink,
1555
- resourceGroupName,
1556
- subscriptionId
3667
+ subscriptionId,
3668
+ resourceGroupName
1557
3669
  ],
1558
3670
  headerParameters: [accept],
1559
3671
  serializer: serializer$2
@@ -1563,13 +3675,12 @@ const listBySubscriptionNextOperationSpec = {
1563
3675
  httpMethod: "GET",
1564
3676
  responses: {
1565
3677
  200: {
1566
- bodyMapper: ApplicationListResult
3678
+ bodyMapper: ApplicationDefinitionListResult
1567
3679
  },
1568
3680
  default: {
1569
3681
  bodyMapper: ErrorResponse
1570
3682
  }
1571
3683
  },
1572
- queryParameters: [apiVersion],
1573
3684
  urlParameters: [
1574
3685
  $host,
1575
3686
  nextLink,
@@ -1585,157 +3696,38 @@ const listBySubscriptionNextOperationSpec = {
1585
3696
  *
1586
3697
  * Code generated by Microsoft (R) AutoRest Code Generator.
1587
3698
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1588
- */
1589
- /// <reference lib="esnext.asynciterable" />
1590
- /** Class containing ApplicationDefinitions operations. */
1591
- class ApplicationDefinitionsImpl {
1592
- /**
1593
- * Initialize a new instance of the class ApplicationDefinitions class.
1594
- * @param client Reference to the service client
1595
- */
1596
- constructor(client) {
1597
- this.client = client;
1598
- }
1599
- /**
1600
- * Lists the managed application definitions in a resource group.
1601
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1602
- * @param options The options parameters.
1603
- */
1604
- listByResourceGroup(resourceGroupName, options) {
1605
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1606
- return {
1607
- next() {
1608
- return iter.next();
1609
- },
1610
- [Symbol.asyncIterator]() {
1611
- return this;
1612
- },
1613
- byPage: (settings) => {
1614
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1615
- throw new Error("maxPageSize is not supported by this operation.");
1616
- }
1617
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1618
- }
1619
- };
1620
- }
1621
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1622
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1623
- let result;
1624
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1625
- if (!continuationToken) {
1626
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1627
- let page = result.value || [];
1628
- continuationToken = result.nextLink;
1629
- setContinuationToken(page, continuationToken);
1630
- yield yield tslib.__await(page);
1631
- }
1632
- while (continuationToken) {
1633
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1634
- continuationToken = result.nextLink;
1635
- let page = result.value || [];
1636
- setContinuationToken(page, continuationToken);
1637
- yield yield tslib.__await(page);
1638
- }
1639
- });
1640
- }
1641
- listByResourceGroupPagingAll(resourceGroupName, options) {
1642
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1643
- var _a, e_1, _b, _c;
1644
- try {
1645
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1646
- _c = _f.value;
1647
- _d = false;
1648
- try {
1649
- const page = _c;
1650
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1651
- }
1652
- finally {
1653
- _d = true;
1654
- }
1655
- }
1656
- }
1657
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1658
- finally {
1659
- try {
1660
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1661
- }
1662
- finally { if (e_1) throw e_1.error; }
1663
- }
1664
- });
1665
- }
1666
- /**
1667
- * Gets the managed application definition.
1668
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1669
- * @param applicationDefinitionName The name of the managed application definition.
1670
- * @param options The options parameters.
1671
- */
1672
- get(resourceGroupName, applicationDefinitionName, options) {
1673
- return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, options }, getOperationSpec);
1674
- }
1675
- /**
1676
- * Deletes the managed application definition.
1677
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1678
- * @param applicationDefinitionName The name of the managed application definition to delete.
1679
- * @param options The options parameters.
3699
+ */
3700
+ /** Class containing JitRequests operations. */
3701
+ class JitRequestsImpl {
3702
+ /**
3703
+ * Initialize a new instance of the class JitRequests class.
3704
+ * @param client Reference to the service client
1680
3705
  */
1681
- beginDelete(resourceGroupName, applicationDefinitionName, options) {
1682
- return tslib.__awaiter(this, void 0, void 0, function* () {
1683
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1684
- return this.client.sendOperationRequest(args, spec);
1685
- });
1686
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1687
- var _a;
1688
- let currentRawResponse = undefined;
1689
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1690
- const callback = (rawResponse, flatResponse) => {
1691
- currentRawResponse = rawResponse;
1692
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1693
- };
1694
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1695
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1696
- return {
1697
- flatResponse,
1698
- rawResponse: {
1699
- statusCode: currentRawResponse.status,
1700
- body: currentRawResponse.parsedBody,
1701
- headers: currentRawResponse.headers.toJSON()
1702
- }
1703
- };
1704
- });
1705
- const lro = new LroImpl(sendOperation, { resourceGroupName, applicationDefinitionName, options }, deleteOperationSpec);
1706
- const poller = new coreLro.LroEngine(lro, {
1707
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1708
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1709
- });
1710
- yield poller.poll();
1711
- return poller;
1712
- });
3706
+ constructor(client) {
3707
+ this.client = client;
1713
3708
  }
1714
3709
  /**
1715
- * Deletes the managed application definition.
3710
+ * Gets the JIT request.
1716
3711
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1717
- * @param applicationDefinitionName The name of the managed application definition to delete.
3712
+ * @param jitRequestName The name of the JIT request.
1718
3713
  * @param options The options parameters.
1719
3714
  */
1720
- beginDeleteAndWait(resourceGroupName, applicationDefinitionName, options) {
1721
- return tslib.__awaiter(this, void 0, void 0, function* () {
1722
- const poller = yield this.beginDelete(resourceGroupName, applicationDefinitionName, options);
1723
- return poller.pollUntilDone();
1724
- });
3715
+ get(resourceGroupName, jitRequestName, options) {
3716
+ return this.client.sendOperationRequest({ resourceGroupName, jitRequestName, options }, getOperationSpec);
1725
3717
  }
1726
3718
  /**
1727
- * Creates a new managed application definition.
3719
+ * Creates or updates the JIT request.
1728
3720
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1729
- * @param applicationDefinitionName The name of the managed application definition.
1730
- * @param parameters Parameters supplied to the create or update an managed application definition.
3721
+ * @param jitRequestName The name of the JIT request.
3722
+ * @param parameters Parameters supplied to the update JIT request.
1731
3723
  * @param options The options parameters.
1732
3724
  */
1733
- beginCreateOrUpdate(resourceGroupName, applicationDefinitionName, parameters, options) {
3725
+ beginCreateOrUpdate(resourceGroupName, jitRequestName, parameters, options) {
1734
3726
  return tslib.__awaiter(this, void 0, void 0, function* () {
1735
3727
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1736
3728
  return this.client.sendOperationRequest(args, spec);
1737
3729
  });
1738
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3730
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1739
3731
  var _a;
1740
3732
  let currentRawResponse = undefined;
1741
3733
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1754,167 +3746,76 @@ class ApplicationDefinitionsImpl {
1754
3746
  }
1755
3747
  };
1756
3748
  });
1757
- const lro = new LroImpl(sendOperation, { resourceGroupName, applicationDefinitionName, parameters, options }, createOrUpdateOperationSpec);
1758
- const poller = new coreLro.LroEngine(lro, {
1759
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1760
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3749
+ const lro = createLroSpec({
3750
+ sendOperationFn,
3751
+ args: { resourceGroupName, jitRequestName, parameters, options },
3752
+ spec: createOrUpdateOperationSpec
3753
+ });
3754
+ const poller = yield coreLro.createHttpPoller(lro, {
3755
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3756
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3757
+ resourceLocationConfig: "azure-async-operation"
1761
3758
  });
1762
3759
  yield poller.poll();
1763
3760
  return poller;
1764
3761
  });
1765
3762
  }
1766
3763
  /**
1767
- * Creates a new managed application definition.
3764
+ * Creates or updates the JIT request.
1768
3765
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1769
- * @param applicationDefinitionName The name of the managed application definition.
1770
- * @param parameters Parameters supplied to the create or update an managed application definition.
3766
+ * @param jitRequestName The name of the JIT request.
3767
+ * @param parameters Parameters supplied to the update JIT request.
1771
3768
  * @param options The options parameters.
1772
3769
  */
1773
- beginCreateOrUpdateAndWait(resourceGroupName, applicationDefinitionName, parameters, options) {
3770
+ beginCreateOrUpdateAndWait(resourceGroupName, jitRequestName, parameters, options) {
1774
3771
  return tslib.__awaiter(this, void 0, void 0, function* () {
1775
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, applicationDefinitionName, parameters, options);
3772
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, jitRequestName, parameters, options);
1776
3773
  return poller.pollUntilDone();
1777
3774
  });
1778
3775
  }
1779
3776
  /**
1780
- * Lists the managed application definitions in a resource group.
1781
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1782
- * @param options The options parameters.
1783
- */
1784
- _listByResourceGroup(resourceGroupName, options) {
1785
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1786
- }
1787
- /**
1788
- * Gets the managed application definition.
1789
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1790
- * @param applicationDefinitionName The name of the managed application definition.
1791
- * @param options The options parameters.
1792
- */
1793
- getById(resourceGroupName, applicationDefinitionName, options) {
1794
- return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, options }, getByIdOperationSpec);
1795
- }
1796
- /**
1797
- * Deletes the managed application definition.
1798
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1799
- * @param applicationDefinitionName The name of the managed application definition.
1800
- * @param options The options parameters.
1801
- */
1802
- beginDeleteById(resourceGroupName, applicationDefinitionName, options) {
1803
- return tslib.__awaiter(this, void 0, void 0, function* () {
1804
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1805
- return this.client.sendOperationRequest(args, spec);
1806
- });
1807
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1808
- var _a;
1809
- let currentRawResponse = undefined;
1810
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1811
- const callback = (rawResponse, flatResponse) => {
1812
- currentRawResponse = rawResponse;
1813
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1814
- };
1815
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1816
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1817
- return {
1818
- flatResponse,
1819
- rawResponse: {
1820
- statusCode: currentRawResponse.status,
1821
- body: currentRawResponse.parsedBody,
1822
- headers: currentRawResponse.headers.toJSON()
1823
- }
1824
- };
1825
- });
1826
- const lro = new LroImpl(sendOperation, { resourceGroupName, applicationDefinitionName, options }, deleteByIdOperationSpec);
1827
- const poller = new coreLro.LroEngine(lro, {
1828
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1829
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1830
- });
1831
- yield poller.poll();
1832
- return poller;
1833
- });
1834
- }
1835
- /**
1836
- * Deletes the managed application definition.
3777
+ * Updates the JIT request.
1837
3778
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1838
- * @param applicationDefinitionName The name of the managed application definition.
3779
+ * @param jitRequestName The name of the JIT request.
3780
+ * @param parameters Parameters supplied to the update JIT request.
1839
3781
  * @param options The options parameters.
1840
3782
  */
1841
- beginDeleteByIdAndWait(resourceGroupName, applicationDefinitionName, options) {
1842
- return tslib.__awaiter(this, void 0, void 0, function* () {
1843
- const poller = yield this.beginDeleteById(resourceGroupName, applicationDefinitionName, options);
1844
- return poller.pollUntilDone();
1845
- });
3783
+ update(resourceGroupName, jitRequestName, parameters, options) {
3784
+ return this.client.sendOperationRequest({ resourceGroupName, jitRequestName, parameters, options }, updateOperationSpec);
1846
3785
  }
1847
3786
  /**
1848
- * Creates a new managed application definition.
3787
+ * Deletes the JIT request.
1849
3788
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1850
- * @param applicationDefinitionName The name of the managed application definition.
1851
- * @param parameters Parameters supplied to the create or update a managed application definition.
3789
+ * @param jitRequestName The name of the JIT request.
1852
3790
  * @param options The options parameters.
1853
3791
  */
1854
- beginCreateOrUpdateById(resourceGroupName, applicationDefinitionName, parameters, options) {
1855
- return tslib.__awaiter(this, void 0, void 0, function* () {
1856
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1857
- return this.client.sendOperationRequest(args, spec);
1858
- });
1859
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1860
- var _a;
1861
- let currentRawResponse = undefined;
1862
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1863
- const callback = (rawResponse, flatResponse) => {
1864
- currentRawResponse = rawResponse;
1865
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1866
- };
1867
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1868
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1869
- return {
1870
- flatResponse,
1871
- rawResponse: {
1872
- statusCode: currentRawResponse.status,
1873
- body: currentRawResponse.parsedBody,
1874
- headers: currentRawResponse.headers.toJSON()
1875
- }
1876
- };
1877
- });
1878
- const lro = new LroImpl(sendOperation, { resourceGroupName, applicationDefinitionName, parameters, options }, createOrUpdateByIdOperationSpec);
1879
- const poller = new coreLro.LroEngine(lro, {
1880
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1881
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1882
- });
1883
- yield poller.poll();
1884
- return poller;
1885
- });
3792
+ delete(resourceGroupName, jitRequestName, options) {
3793
+ return this.client.sendOperationRequest({ resourceGroupName, jitRequestName, options }, deleteOperationSpec);
1886
3794
  }
1887
3795
  /**
1888
- * Creates a new managed application definition.
1889
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1890
- * @param applicationDefinitionName The name of the managed application definition.
1891
- * @param parameters Parameters supplied to the create or update a managed application definition.
3796
+ * Lists all JIT requests within the subscription.
1892
3797
  * @param options The options parameters.
1893
3798
  */
1894
- beginCreateOrUpdateByIdAndWait(resourceGroupName, applicationDefinitionName, parameters, options) {
1895
- return tslib.__awaiter(this, void 0, void 0, function* () {
1896
- const poller = yield this.beginCreateOrUpdateById(resourceGroupName, applicationDefinitionName, parameters, options);
1897
- return poller.pollUntilDone();
1898
- });
3799
+ listBySubscription(options) {
3800
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1899
3801
  }
1900
3802
  /**
1901
- * ListByResourceGroupNext
3803
+ * Lists all JIT requests within the resource group.
1902
3804
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1903
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1904
3805
  * @param options The options parameters.
1905
3806
  */
1906
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1907
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
3807
+ listByResourceGroup(resourceGroupName, options) {
3808
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1908
3809
  }
1909
3810
  }
1910
3811
  // Operation Specifications
1911
3812
  const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1912
3813
  const getOperationSpec = {
1913
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
3814
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}",
1914
3815
  httpMethod: "GET",
1915
3816
  responses: {
1916
3817
  200: {
1917
- bodyMapper: ApplicationDefinition
3818
+ bodyMapper: JitRequestDefinition
1918
3819
  },
1919
3820
  404: {},
1920
3821
  default: {
@@ -1924,116 +3825,73 @@ const getOperationSpec = {
1924
3825
  queryParameters: [apiVersion],
1925
3826
  urlParameters: [
1926
3827
  $host,
1927
- resourceGroupName,
1928
3828
  subscriptionId,
1929
- applicationDefinitionName
1930
- ],
1931
- headerParameters: [accept],
1932
- serializer: serializer$1
1933
- };
1934
- const deleteOperationSpec = {
1935
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
1936
- httpMethod: "DELETE",
1937
- responses: {
1938
- 200: {},
1939
- 201: {},
1940
- 202: {},
1941
- 204: {},
1942
- default: {
1943
- bodyMapper: ErrorResponse
1944
- }
1945
- },
1946
- queryParameters: [apiVersion],
1947
- urlParameters: [
1948
- $host,
1949
3829
  resourceGroupName,
1950
- subscriptionId,
1951
- applicationDefinitionName
3830
+ jitRequestName
1952
3831
  ],
1953
3832
  headerParameters: [accept],
1954
3833
  serializer: serializer$1
1955
3834
  };
1956
3835
  const createOrUpdateOperationSpec = {
1957
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
3836
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}",
1958
3837
  httpMethod: "PUT",
1959
3838
  responses: {
1960
3839
  200: {
1961
- bodyMapper: ApplicationDefinition
3840
+ bodyMapper: JitRequestDefinition
1962
3841
  },
1963
3842
  201: {
1964
- bodyMapper: ApplicationDefinition
3843
+ bodyMapper: JitRequestDefinition
1965
3844
  },
1966
3845
  202: {
1967
- bodyMapper: ApplicationDefinition
3846
+ bodyMapper: JitRequestDefinition
1968
3847
  },
1969
3848
  204: {
1970
- bodyMapper: ApplicationDefinition
3849
+ bodyMapper: JitRequestDefinition
1971
3850
  },
1972
3851
  default: {
1973
3852
  bodyMapper: ErrorResponse
1974
3853
  }
1975
3854
  },
1976
- requestBody: parameters3,
3855
+ requestBody: parameters6,
1977
3856
  queryParameters: [apiVersion],
1978
3857
  urlParameters: [
1979
3858
  $host,
1980
- resourceGroupName,
1981
3859
  subscriptionId,
1982
- applicationDefinitionName
3860
+ resourceGroupName,
3861
+ jitRequestName
1983
3862
  ],
1984
3863
  headerParameters: [accept, contentType],
1985
3864
  mediaType: "json",
1986
3865
  serializer: serializer$1
1987
3866
  };
1988
- const listByResourceGroupOperationSpec = {
1989
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions",
1990
- httpMethod: "GET",
1991
- responses: {
1992
- 200: {
1993
- bodyMapper: ApplicationDefinitionListResult
1994
- },
1995
- default: {
1996
- bodyMapper: ErrorResponse
1997
- }
1998
- },
1999
- queryParameters: [apiVersion],
2000
- urlParameters: [
2001
- $host,
2002
- resourceGroupName,
2003
- subscriptionId
2004
- ],
2005
- headerParameters: [accept],
2006
- serializer: serializer$1
2007
- };
2008
- const getByIdOperationSpec = {
2009
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
2010
- httpMethod: "GET",
3867
+ const updateOperationSpec = {
3868
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}",
3869
+ httpMethod: "PATCH",
2011
3870
  responses: {
2012
3871
  200: {
2013
- bodyMapper: ApplicationDefinition
3872
+ bodyMapper: JitRequestDefinition
2014
3873
  },
2015
- 404: {},
2016
3874
  default: {
2017
3875
  bodyMapper: ErrorResponse
2018
3876
  }
2019
3877
  },
3878
+ requestBody: parameters7,
2020
3879
  queryParameters: [apiVersion],
2021
3880
  urlParameters: [
2022
3881
  $host,
2023
- resourceGroupName,
2024
3882
  subscriptionId,
2025
- applicationDefinitionName
3883
+ resourceGroupName,
3884
+ jitRequestName
2026
3885
  ],
2027
- headerParameters: [accept],
3886
+ headerParameters: [accept, contentType],
3887
+ mediaType: "json",
2028
3888
  serializer: serializer$1
2029
3889
  };
2030
- const deleteByIdOperationSpec = {
2031
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
3890
+ const deleteOperationSpec = {
3891
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}",
2032
3892
  httpMethod: "DELETE",
2033
3893
  responses: {
2034
3894
  200: {},
2035
- 201: {},
2036
- 202: {},
2037
3895
  204: {},
2038
3896
  default: {
2039
3897
  bodyMapper: ErrorResponse
@@ -2042,51 +3900,35 @@ const deleteByIdOperationSpec = {
2042
3900
  queryParameters: [apiVersion],
2043
3901
  urlParameters: [
2044
3902
  $host,
2045
- resourceGroupName,
2046
3903
  subscriptionId,
2047
- applicationDefinitionName
3904
+ resourceGroupName,
3905
+ jitRequestName
2048
3906
  ],
2049
3907
  headerParameters: [accept],
2050
3908
  serializer: serializer$1
2051
3909
  };
2052
- const createOrUpdateByIdOperationSpec = {
2053
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
2054
- httpMethod: "PUT",
3910
+ const listBySubscriptionOperationSpec = {
3911
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/jitRequests",
3912
+ httpMethod: "GET",
2055
3913
  responses: {
2056
3914
  200: {
2057
- bodyMapper: ApplicationDefinition
2058
- },
2059
- 201: {
2060
- bodyMapper: ApplicationDefinition
2061
- },
2062
- 202: {
2063
- bodyMapper: ApplicationDefinition
2064
- },
2065
- 204: {
2066
- bodyMapper: ApplicationDefinition
3915
+ bodyMapper: JitRequestDefinitionListResult
2067
3916
  },
2068
3917
  default: {
2069
3918
  bodyMapper: ErrorResponse
2070
3919
  }
2071
3920
  },
2072
- requestBody: parameters3,
2073
3921
  queryParameters: [apiVersion],
2074
- urlParameters: [
2075
- $host,
2076
- resourceGroupName,
2077
- subscriptionId,
2078
- applicationDefinitionName
2079
- ],
2080
- headerParameters: [accept, contentType],
2081
- mediaType: "json",
3922
+ urlParameters: [$host, subscriptionId],
3923
+ headerParameters: [accept],
2082
3924
  serializer: serializer$1
2083
3925
  };
2084
- const listByResourceGroupNextOperationSpec = {
2085
- path: "{nextLink}",
3926
+ const listByResourceGroupOperationSpec = {
3927
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests",
2086
3928
  httpMethod: "GET",
2087
3929
  responses: {
2088
3930
  200: {
2089
- bodyMapper: ApplicationDefinitionListResult
3931
+ bodyMapper: JitRequestDefinitionListResult
2090
3932
  },
2091
3933
  default: {
2092
3934
  bodyMapper: ErrorResponse
@@ -2095,9 +3937,8 @@ const listByResourceGroupNextOperationSpec = {
2095
3937
  queryParameters: [apiVersion],
2096
3938
  urlParameters: [
2097
3939
  $host,
2098
- nextLink,
2099
- resourceGroupName,
2100
- subscriptionId
3940
+ subscriptionId,
3941
+ resourceGroupName
2101
3942
  ],
2102
3943
  headerParameters: [accept],
2103
3944
  serializer: serializer$1
@@ -2112,19 +3953,17 @@ const listByResourceGroupNextOperationSpec = {
2112
3953
  */
2113
3954
  /// <reference lib="esnext.asynciterable" />
2114
3955
  class ApplicationClient extends coreClient__namespace.ServiceClient {
2115
- /**
2116
- * Initializes a new instance of the ApplicationClient class.
2117
- * @param credentials Subscription credentials which uniquely identify client subscription.
2118
- * @param subscriptionId The ID of the target subscription.
2119
- * @param options The parameter options
2120
- */
2121
- constructor(credentials, subscriptionId, options) {
3956
+ constructor(credentials, subscriptionIdOrOptions, options) {
2122
3957
  var _a, _b, _c;
2123
3958
  if (credentials === undefined) {
2124
3959
  throw new Error("'credentials' cannot be null");
2125
3960
  }
2126
- if (subscriptionId === undefined) {
2127
- throw new Error("'subscriptionId' cannot be null");
3961
+ let subscriptionId;
3962
+ if (typeof subscriptionIdOrOptions === "string") {
3963
+ subscriptionId = subscriptionIdOrOptions;
3964
+ }
3965
+ else if (typeof subscriptionIdOrOptions === "object") {
3966
+ options = subscriptionIdOrOptions;
2128
3967
  }
2129
3968
  // Initializing default values for options
2130
3969
  if (!options) {
@@ -2134,7 +3973,7 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
2134
3973
  requestContentType: "application/json; charset=utf-8",
2135
3974
  credential: credentials
2136
3975
  };
2137
- const packageDetails = `azsdk-js-arm-managedapplications/2.1.1`;
3976
+ const packageDetails = `azsdk-js-arm-managedapplications/3.0.0`;
2138
3977
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2139
3978
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2140
3979
  : `${packageDetails}`;
@@ -2167,9 +4006,10 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
2167
4006
  this.subscriptionId = subscriptionId;
2168
4007
  // Assigning values to Constant parameters
2169
4008
  this.$host = options.$host || "https://management.azure.com";
2170
- this.apiVersion = options.apiVersion || "2018-06-01";
4009
+ this.apiVersion = options.apiVersion || "2021-07-01";
2171
4010
  this.applications = new ApplicationsImpl(this);
2172
4011
  this.applicationDefinitions = new ApplicationDefinitionsImpl(this);
4012
+ this.jitRequests = new JitRequestsImpl(this);
2173
4013
  this.addCustomApiVersionPolicy(options.apiVersion);
2174
4014
  }
2175
4015
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
@@ -2289,6 +4129,9 @@ const listOperationsOperationSpec = {
2289
4129
  responses: {
2290
4130
  200: {
2291
4131
  bodyMapper: OperationListResult
4132
+ },
4133
+ default: {
4134
+ bodyMapper: ErrorResponse
2292
4135
  }
2293
4136
  },
2294
4137
  queryParameters: [apiVersion],
@@ -2302,9 +4145,11 @@ const listOperationsNextOperationSpec = {
2302
4145
  responses: {
2303
4146
  200: {
2304
4147
  bodyMapper: OperationListResult
4148
+ },
4149
+ default: {
4150
+ bodyMapper: ErrorResponse
2305
4151
  }
2306
4152
  },
2307
- queryParameters: [apiVersion],
2308
4153
  urlParameters: [$host, nextLink],
2309
4154
  headerParameters: [accept],
2310
4155
  serializer