@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
@@ -1,26 +1,176 @@
1
1
  import * as coreClient from "@azure/core-client";
2
- /** Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the next set of results. */
2
+ /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
3
3
  export interface OperationListResult {
4
- /** List of Microsoft.Solutions operations. */
5
- value?: Operation[];
6
- /** URL to get the next set of operation list results if there are any. */
7
- nextLink?: string;
4
+ /**
5
+ * List of operations supported by the resource provider
6
+ * NOTE: This property will not be serialized. It can only be populated by the server.
7
+ */
8
+ readonly value?: Operation[];
9
+ /**
10
+ * URL to get the next set of operation list results (if there are any).
11
+ * NOTE: This property will not be serialized. It can only be populated by the server.
12
+ */
13
+ readonly nextLink?: string;
8
14
  }
9
- /** Microsoft.Solutions operation */
15
+ /** Details of a REST API operation, returned from the Resource Provider Operations API */
10
16
  export interface Operation {
11
- /** Operation name: {provider}/{resource}/{operation} */
12
- name?: string;
13
- /** The object that represents the operation. */
17
+ /**
18
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
19
+ * NOTE: This property will not be serialized. It can only be populated by the server.
20
+ */
21
+ readonly name?: string;
22
+ /**
23
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
24
+ * NOTE: This property will not be serialized. It can only be populated by the server.
25
+ */
26
+ readonly isDataAction?: boolean;
27
+ /** Localized display information for this particular operation. */
14
28
  display?: OperationDisplay;
29
+ /**
30
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
31
+ * NOTE: This property will not be serialized. It can only be populated by the server.
32
+ */
33
+ readonly origin?: Origin;
34
+ /**
35
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
36
+ * NOTE: This property will not be serialized. It can only be populated by the server.
37
+ */
38
+ readonly actionType?: ActionType;
15
39
  }
16
- /** The object that represents the operation. */
40
+ /** Localized display information for this particular operation. */
17
41
  export interface OperationDisplay {
18
- /** Service provider: Microsoft.Solutions */
19
- provider?: string;
20
- /** Resource on which the operation is performed: Application, JitRequest, etc. */
21
- resource?: string;
22
- /** Operation type: Read, write, delete, etc. */
23
- operation?: string;
42
+ /**
43
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
44
+ * NOTE: This property will not be serialized. It can only be populated by the server.
45
+ */
46
+ readonly provider?: string;
47
+ /**
48
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
49
+ * NOTE: This property will not be serialized. It can only be populated by the server.
50
+ */
51
+ readonly resource?: string;
52
+ /**
53
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
54
+ * NOTE: This property will not be serialized. It can only be populated by the server.
55
+ */
56
+ readonly operation?: string;
57
+ /**
58
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
59
+ * NOTE: This property will not be serialized. It can only be populated by the server.
60
+ */
61
+ readonly description?: string;
62
+ }
63
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
64
+ export interface ErrorResponse {
65
+ /** The error object. */
66
+ error?: ErrorDetail;
67
+ }
68
+ /** The error detail. */
69
+ export interface ErrorDetail {
70
+ /**
71
+ * The error code.
72
+ * NOTE: This property will not be serialized. It can only be populated by the server.
73
+ */
74
+ readonly code?: string;
75
+ /**
76
+ * The error message.
77
+ * NOTE: This property will not be serialized. It can only be populated by the server.
78
+ */
79
+ readonly message?: string;
80
+ /**
81
+ * The error target.
82
+ * NOTE: This property will not be serialized. It can only be populated by the server.
83
+ */
84
+ readonly target?: string;
85
+ /**
86
+ * The error details.
87
+ * NOTE: This property will not be serialized. It can only be populated by the server.
88
+ */
89
+ readonly details?: ErrorDetail[];
90
+ /**
91
+ * The error additional info.
92
+ * NOTE: This property will not be serialized. It can only be populated by the server.
93
+ */
94
+ readonly additionalInfo?: ErrorAdditionalInfo[];
95
+ }
96
+ /** The resource management error additional info. */
97
+ export interface ErrorAdditionalInfo {
98
+ /**
99
+ * The additional info type.
100
+ * NOTE: This property will not be serialized. It can only be populated by the server.
101
+ */
102
+ readonly type?: string;
103
+ /**
104
+ * The additional info.
105
+ * NOTE: This property will not be serialized. It can only be populated by the server.
106
+ */
107
+ readonly info?: Record<string, unknown>;
108
+ }
109
+ /** Managed application billing details definition. */
110
+ export interface ApplicationBillingDetailsDefinition {
111
+ /** The managed application resource usage Id. */
112
+ resourceUsageId?: string;
113
+ }
114
+ /** Managed application Jit access policy. */
115
+ export interface ApplicationJitAccessPolicy {
116
+ /** Whether the JIT access is enabled. */
117
+ jitAccessEnabled: boolean;
118
+ /** JIT approval mode. */
119
+ jitApprovalMode?: JitApprovalMode;
120
+ /** The JIT approvers */
121
+ jitApprovers?: JitApproverDefinition[];
122
+ /** The maximum duration JIT access is granted. This is an ISO8601 time period value. */
123
+ maximumJitAccessDuration?: string;
124
+ }
125
+ /** JIT approver definition. */
126
+ export interface JitApproverDefinition {
127
+ /** The approver service principal Id. */
128
+ id: string;
129
+ /** The approver type. */
130
+ type?: JitApproverType;
131
+ /** The approver display name. */
132
+ displayName?: string;
133
+ }
134
+ /** The managed application provider authorization. */
135
+ export interface ApplicationAuthorization {
136
+ /** The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources. */
137
+ principalId: string;
138
+ /** The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. */
139
+ roleDefinitionId: string;
140
+ }
141
+ /** The application package contact information. */
142
+ export interface ApplicationPackageContact {
143
+ /** The contact name. */
144
+ contactName?: string;
145
+ /** The contact email. */
146
+ email: string;
147
+ /** The contact phone number. */
148
+ phone: string;
149
+ }
150
+ /** The appliance package support URLs. */
151
+ export interface ApplicationPackageSupportUrls {
152
+ /** The public azure support URL. */
153
+ publicAzure?: string;
154
+ /** The government cloud support URL. */
155
+ governmentCloud?: string;
156
+ }
157
+ /** Managed application artifact. */
158
+ export interface ApplicationArtifact {
159
+ /** The managed application artifact name. */
160
+ name: ApplicationArtifactName;
161
+ /** The managed application artifact blob uri. */
162
+ uri: string;
163
+ /** The managed application artifact type. */
164
+ type: ApplicationArtifactType;
165
+ }
166
+ /** The application client details to track the entity creating/updating the managed app resource. */
167
+ export interface ApplicationClientDetails {
168
+ /** The client Oid. */
169
+ oid?: string;
170
+ /** The client Puid */
171
+ puid?: string;
172
+ /** The client application Id. */
173
+ applicationId?: string;
24
174
  }
25
175
  /** Plan for the managed application. */
26
176
  export interface Plan {
@@ -35,6 +185,38 @@ export interface Plan {
35
185
  /** The plan's version. */
36
186
  version: string;
37
187
  }
188
+ /** Identity for the resource. */
189
+ export interface Identity {
190
+ /**
191
+ * The principal ID of resource identity.
192
+ * NOTE: This property will not be serialized. It can only be populated by the server.
193
+ */
194
+ readonly principalId?: string;
195
+ /**
196
+ * The tenant ID of resource.
197
+ * NOTE: This property will not be serialized. It can only be populated by the server.
198
+ */
199
+ readonly tenantId?: string;
200
+ /** The identity type. */
201
+ type?: ResourceIdentityType;
202
+ /** The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */
203
+ userAssignedIdentities?: {
204
+ [propertyName: string]: UserAssignedResourceIdentity;
205
+ };
206
+ }
207
+ /** Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity */
208
+ export interface UserAssignedResourceIdentity {
209
+ /**
210
+ * The principal id of user assigned identity.
211
+ * NOTE: This property will not be serialized. It can only be populated by the server.
212
+ */
213
+ readonly principalId?: string;
214
+ /**
215
+ * The tenant id of user assigned identity.
216
+ * NOTE: This property will not be serialized. It can only be populated by the server.
217
+ */
218
+ readonly tenantId?: string;
219
+ }
38
220
  /** SKU for the resource. */
39
221
  export interface Sku {
40
222
  /** The SKU name. */
@@ -50,21 +232,6 @@ export interface Sku {
50
232
  /** The SKU capacity. */
51
233
  capacity?: number;
52
234
  }
53
- /** Identity for the resource. */
54
- export interface Identity {
55
- /**
56
- * The principal ID of resource identity.
57
- * NOTE: This property will not be serialized. It can only be populated by the server.
58
- */
59
- readonly principalId?: string;
60
- /**
61
- * The tenant ID of resource.
62
- * NOTE: This property will not be serialized. It can only be populated by the server.
63
- */
64
- readonly tenantId?: string;
65
- /** The identity type. */
66
- type?: "SystemAssigned";
67
- }
68
235
  /** Resource information. */
69
236
  export interface Resource {
70
237
  /**
@@ -88,15 +255,26 @@ export interface Resource {
88
255
  tags?: {
89
256
  [propertyName: string]: string;
90
257
  };
258
+ /**
259
+ * Metadata pertaining to creation and last modification of the resource.
260
+ * NOTE: This property will not be serialized. It can only be populated by the server.
261
+ */
262
+ readonly systemData?: SystemData;
91
263
  }
92
- /** Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message. */
93
- export interface ErrorResponse {
94
- /** Http status code. */
95
- httpStatus?: string;
96
- /** Error code. */
97
- errorCode?: string;
98
- /** Error message indicating why the operation failed. */
99
- errorMessage?: string;
264
+ /** Metadata pertaining to creation and last modification of the resource. */
265
+ export interface SystemData {
266
+ /** The identity that created the resource. */
267
+ createdBy?: string;
268
+ /** The type of identity that created the resource. */
269
+ createdByType?: CreatedByType;
270
+ /** The timestamp of resource creation (UTC). */
271
+ createdAt?: Date;
272
+ /** The identity that last modified the resource. */
273
+ lastModifiedBy?: string;
274
+ /** The type of identity that last modified the resource. */
275
+ lastModifiedByType?: CreatedByType;
276
+ /** The timestamp of resource last modification (UTC) */
277
+ lastModifiedAt?: Date;
100
278
  }
101
279
  /** Plan for the managed application. */
102
280
  export interface PlanPatchable {
@@ -111,21 +289,57 @@ export interface PlanPatchable {
111
289
  /** The plan's version. */
112
290
  version?: string;
113
291
  }
114
- /** The managed application provider authorization. */
115
- export interface ApplicationProviderAuthorization {
116
- /** The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources. */
117
- principalId: string;
118
- /** The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. */
119
- roleDefinitionId: string;
292
+ /** Application definition artifact. */
293
+ export interface ApplicationDefinitionArtifact {
294
+ /** The managed application definition artifact name. */
295
+ name: ApplicationDefinitionArtifactName;
296
+ /** The managed application definition artifact blob uri. */
297
+ uri: string;
298
+ /** The managed application definition artifact type. */
299
+ type: ApplicationArtifactType;
120
300
  }
121
- /** Managed application artifact. */
122
- export interface ApplicationArtifact {
123
- /** The managed application artifact name. */
301
+ /** Managed application notification policy. */
302
+ export interface ApplicationNotificationPolicy {
303
+ /** The managed application notification endpoint. */
304
+ notificationEndpoints: ApplicationNotificationEndpoint[];
305
+ }
306
+ /** Managed application notification endpoint. */
307
+ export interface ApplicationNotificationEndpoint {
308
+ /** The managed application notification endpoint uri. */
309
+ uri: string;
310
+ }
311
+ /** Managed application locking policy. */
312
+ export interface ApplicationPackageLockingPolicyDefinition {
313
+ /** The deny assignment excluded actions. */
314
+ allowedActions?: string[];
315
+ /** The deny assignment excluded data actions. */
316
+ allowedDataActions?: string[];
317
+ }
318
+ /** Managed application deployment policy. */
319
+ export interface ApplicationDeploymentPolicy {
320
+ /** The managed application deployment mode. */
321
+ deploymentMode: DeploymentMode;
322
+ }
323
+ /** Managed application management policy. */
324
+ export interface ApplicationManagementPolicy {
325
+ /** The managed application management mode. */
326
+ mode?: ApplicationManagementMode;
327
+ }
328
+ /** Managed application policy. */
329
+ export interface ApplicationPolicy {
330
+ /** The policy name */
124
331
  name?: string;
125
- /** The managed application artifact blob uri. */
126
- uri?: string;
127
- /** The managed application artifact type. */
128
- type?: ApplicationArtifactType;
332
+ /** The policy definition Id. */
333
+ policyDefinitionId?: string;
334
+ /** The policy parameters. */
335
+ parameters?: string;
336
+ }
337
+ /** Information about an application definition request. */
338
+ export interface ApplicationDefinitionPatchable {
339
+ /** Application definition tags */
340
+ tags?: {
341
+ [propertyName: string]: string;
342
+ };
129
343
  }
130
344
  /** List of managed application definitions. */
131
345
  export interface ApplicationDefinitionListResult {
@@ -141,14 +355,132 @@ export interface ApplicationListResult {
141
355
  /** The URL to use for getting the next set of results. */
142
356
  nextLink?: string;
143
357
  }
358
+ /** The JIT authorization policies. */
359
+ export interface JitAuthorizationPolicies {
360
+ /** The the principal id that will be granted JIT access. */
361
+ principalId: string;
362
+ /** The role definition id that will be granted to the Principal. */
363
+ roleDefinitionId: string;
364
+ }
365
+ /** The JIT scheduling policies. */
366
+ export interface JitSchedulingPolicy {
367
+ /** The type of JIT schedule. */
368
+ type: JitSchedulingType;
369
+ /** The required duration of the JIT request. */
370
+ duration: string;
371
+ /** The start time of the request. */
372
+ startTime: Date;
373
+ }
374
+ /** Information about JIT request. */
375
+ export interface JitRequestPatchable {
376
+ /** Jit request tags */
377
+ tags?: {
378
+ [propertyName: string]: string;
379
+ };
380
+ }
381
+ /** List of JIT requests. */
382
+ export interface JitRequestDefinitionListResult {
383
+ /** The array of Jit request definition. */
384
+ value?: JitRequestDefinition[];
385
+ /** The URL to use for getting the next set of results. */
386
+ nextLink?: string;
387
+ }
388
+ /** The array of plan. */
389
+ export interface AllowedUpgradePlansResult {
390
+ /** The array of plans. */
391
+ value?: Plan[];
392
+ }
393
+ /** Update access request definition. */
394
+ export interface UpdateAccessDefinition {
395
+ /** The approver name. */
396
+ approver?: string;
397
+ /** The JIT request metadata. */
398
+ metadata: JitRequestMetadata;
399
+ /** The JIT status. */
400
+ status: Status;
401
+ /** The JIT status. */
402
+ subStatus: Substatus;
403
+ }
404
+ /** The JIT request metadata. */
405
+ export interface JitRequestMetadata {
406
+ /** The origin request id. */
407
+ originRequestId?: string;
408
+ /** The requestor id. */
409
+ requestorId?: string;
410
+ /** The publisher's tenant name. */
411
+ tenantDisplayName?: string;
412
+ /** The subject display name. */
413
+ subjectDisplayName?: string;
414
+ }
415
+ /** List token request body. */
416
+ export interface ListTokenRequest {
417
+ /** The authorization audience. */
418
+ authorizationAudience?: string;
419
+ /** The user assigned identities. */
420
+ userAssignedIdentities?: string[];
421
+ }
422
+ /** The array of managed identity tokens. */
423
+ export interface ManagedIdentityTokenResult {
424
+ /** The array of managed identity tokens. */
425
+ value?: ManagedIdentityToken[];
426
+ }
427
+ /** The managed identity token for the managed app resource. */
428
+ export interface ManagedIdentityToken {
429
+ /** The requested access token. */
430
+ accessToken?: string;
431
+ /** The number of seconds the access token will be valid. */
432
+ expiresIn?: string;
433
+ /** The timespan when the access token expires. This is represented as the number of seconds from epoch. */
434
+ expiresOn?: string;
435
+ /** The timespan when the access token takes effect. This is represented as the number of seconds from epoch. */
436
+ notBefore?: string;
437
+ /** The aud (audience) the access token was request for. This is the same as what was provided in the listTokens request. */
438
+ authorizationAudience?: string;
439
+ /** The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID. */
440
+ resourceId?: string;
441
+ /** The type of the token. */
442
+ tokenType?: string;
443
+ }
144
444
  /** Resource information. */
145
445
  export interface GenericResource extends Resource {
146
446
  /** ID of the resource that manages this resource. */
147
447
  managedBy?: string;
148
448
  /** The SKU of the resource. */
149
449
  sku?: Sku;
150
- /** The identity of the resource. */
151
- identity?: Identity;
450
+ }
451
+ /** Information about JIT request definition. */
452
+ export interface JitRequestDefinition extends Resource {
453
+ /** The parent application id. */
454
+ applicationResourceId?: string;
455
+ /**
456
+ * The publisher tenant id.
457
+ * NOTE: This property will not be serialized. It can only be populated by the server.
458
+ */
459
+ readonly publisherTenantId?: string;
460
+ /** The JIT authorization policies. */
461
+ jitAuthorizationPolicies?: JitAuthorizationPolicies[];
462
+ /** The JIT request properties. */
463
+ jitSchedulingPolicy?: JitSchedulingPolicy;
464
+ /**
465
+ * The JIT request provisioning state.
466
+ * NOTE: This property will not be serialized. It can only be populated by the server.
467
+ */
468
+ readonly provisioningState?: ProvisioningState;
469
+ /**
470
+ * The JIT request state.
471
+ * NOTE: This property will not be serialized. It can only be populated by the server.
472
+ */
473
+ readonly jitRequestState?: JitRequestState;
474
+ /**
475
+ * The client entity that created the JIT request.
476
+ * NOTE: This property will not be serialized. It can only be populated by the server.
477
+ */
478
+ readonly createdBy?: ApplicationClientDetails;
479
+ /**
480
+ * The client entity that last updated the JIT request.
481
+ * NOTE: This property will not be serialized. It can only be populated by the server.
482
+ */
483
+ readonly updatedBy?: ApplicationClientDetails;
152
484
  }
153
485
  /** Information about managed application. */
154
486
  export interface Application extends GenericResource {
@@ -156,8 +488,10 @@ export interface Application extends GenericResource {
156
488
  plan?: Plan;
157
489
  /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */
158
490
  kind: string;
491
+ /** The identity of the resource. */
492
+ identity?: Identity;
159
493
  /** The managed resource group Id. */
160
- managedResourceGroupId: string;
494
+ managedResourceGroupId?: string;
161
495
  /** The fully qualified path of managed application definition Id. */
162
496
  applicationDefinitionId?: string;
163
497
  /** Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. */
@@ -172,6 +506,53 @@ export interface Application extends GenericResource {
172
506
  * NOTE: This property will not be serialized. It can only be populated by the server.
173
507
  */
174
508
  readonly provisioningState?: ProvisioningState;
509
+ /**
510
+ * The managed application billing details.
511
+ * NOTE: This property will not be serialized. It can only be populated by the server.
512
+ */
513
+ readonly billingDetails?: ApplicationBillingDetailsDefinition;
514
+ /** The managed application Jit access policy. */
515
+ jitAccessPolicy?: ApplicationJitAccessPolicy;
516
+ /**
517
+ * The publisher tenant Id.
518
+ * NOTE: This property will not be serialized. It can only be populated by the server.
519
+ */
520
+ readonly publisherTenantId?: string;
521
+ /**
522
+ * The read-only authorizations property that is retrieved from the application package.
523
+ * NOTE: This property will not be serialized. It can only be populated by the server.
524
+ */
525
+ readonly authorizations?: ApplicationAuthorization[];
526
+ /**
527
+ * The managed application management mode.
528
+ * NOTE: This property will not be serialized. It can only be populated by the server.
529
+ */
530
+ readonly managementMode?: ApplicationManagementMode;
531
+ /**
532
+ * The read-only customer support property that is retrieved from the application package.
533
+ * NOTE: This property will not be serialized. It can only be populated by the server.
534
+ */
535
+ readonly customerSupport?: ApplicationPackageContact;
536
+ /**
537
+ * The read-only support URLs property that is retrieved from the application package.
538
+ * NOTE: This property will not be serialized. It can only be populated by the server.
539
+ */
540
+ readonly supportUrls?: ApplicationPackageSupportUrls;
541
+ /**
542
+ * The collection of managed application artifacts.
543
+ * NOTE: This property will not be serialized. It can only be populated by the server.
544
+ */
545
+ readonly artifacts?: ApplicationArtifact[];
546
+ /**
547
+ * The client entity that created the JIT request.
548
+ * NOTE: This property will not be serialized. It can only be populated by the server.
549
+ */
550
+ readonly createdBy?: ApplicationClientDetails;
551
+ /**
552
+ * The client entity that last updated the JIT request.
553
+ * NOTE: This property will not be serialized. It can only be populated by the server.
554
+ */
555
+ readonly updatedBy?: ApplicationClientDetails;
175
556
  }
176
557
  /** Information about managed application. */
177
558
  export interface ApplicationPatchable extends GenericResource {
@@ -179,6 +560,8 @@ export interface ApplicationPatchable extends GenericResource {
179
560
  plan?: PlanPatchable;
180
561
  /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */
181
562
  kind?: string;
563
+ /** The identity of the resource. */
564
+ identity?: Identity;
182
565
  /** The managed resource group Id. */
183
566
  managedResourceGroupId?: string;
184
567
  /** The fully qualified path of managed application definition Id. */
@@ -195,6 +578,53 @@ export interface ApplicationPatchable extends GenericResource {
195
578
  * NOTE: This property will not be serialized. It can only be populated by the server.
196
579
  */
197
580
  readonly provisioningState?: ProvisioningState;
581
+ /**
582
+ * The managed application billing details.
583
+ * NOTE: This property will not be serialized. It can only be populated by the server.
584
+ */
585
+ readonly billingDetails?: ApplicationBillingDetailsDefinition;
586
+ /** The managed application Jit access policy. */
587
+ jitAccessPolicy?: ApplicationJitAccessPolicy;
588
+ /**
589
+ * The publisher tenant Id.
590
+ * NOTE: This property will not be serialized. It can only be populated by the server.
591
+ */
592
+ readonly publisherTenantId?: string;
593
+ /**
594
+ * The read-only authorizations property that is retrieved from the application package.
595
+ * NOTE: This property will not be serialized. It can only be populated by the server.
596
+ */
597
+ readonly authorizations?: ApplicationAuthorization[];
598
+ /**
599
+ * The managed application management mode.
600
+ * NOTE: This property will not be serialized. It can only be populated by the server.
601
+ */
602
+ readonly managementMode?: ApplicationManagementMode;
603
+ /**
604
+ * The read-only customer support property that is retrieved from the application package.
605
+ * NOTE: This property will not be serialized. It can only be populated by the server.
606
+ */
607
+ readonly customerSupport?: ApplicationPackageContact;
608
+ /**
609
+ * The read-only support URLs property that is retrieved from the application package.
610
+ * NOTE: This property will not be serialized. It can only be populated by the server.
611
+ */
612
+ readonly supportUrls?: ApplicationPackageSupportUrls;
613
+ /**
614
+ * The collection of managed application artifacts.
615
+ * NOTE: This property will not be serialized. It can only be populated by the server.
616
+ */
617
+ readonly artifacts?: ApplicationArtifact[];
618
+ /**
619
+ * The client entity that created the JIT request.
620
+ * NOTE: This property will not be serialized. It can only be populated by the server.
621
+ */
622
+ readonly createdBy?: ApplicationClientDetails;
623
+ /**
624
+ * The client entity that last updated the JIT request.
625
+ * NOTE: This property will not be serialized. It can only be populated by the server.
626
+ */
627
+ readonly updatedBy?: ApplicationClientDetails;
198
628
  }
199
629
  /** Information about managed application definition. */
200
630
  export interface ApplicationDefinition extends GenericResource {
@@ -203,32 +633,72 @@ export interface ApplicationDefinition extends GenericResource {
203
633
  /** The managed application definition display name. */
204
634
  displayName?: string;
205
635
  /** A value indicating whether the package is enabled or not. */
206
- isEnabled?: string;
636
+ isEnabled?: boolean;
207
637
  /** The managed application provider authorizations. */
208
- authorizations: ApplicationProviderAuthorization[];
638
+ authorizations?: ApplicationAuthorization[];
209
639
  /** The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition. */
210
- artifacts?: ApplicationArtifact[];
640
+ artifacts?: ApplicationDefinitionArtifact[];
211
641
  /** The managed application definition description. */
212
642
  description?: string;
213
643
  /** The managed application definition package file Uri. Use this element */
214
644
  packageFileUri?: string;
645
+ /** The storage account id for bring your own storage scenario. */
646
+ storageAccountId?: string;
215
647
  /** The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. */
216
648
  mainTemplate?: Record<string, unknown>;
217
649
  /** The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. */
218
650
  createUiDefinition?: Record<string, unknown>;
651
+ /** The managed application notification policy. */
652
+ notificationPolicy?: ApplicationNotificationPolicy;
653
+ /** The managed application locking policy. */
654
+ lockingPolicy?: ApplicationPackageLockingPolicyDefinition;
655
+ /** The managed application deployment policy. */
656
+ deploymentPolicy?: ApplicationDeploymentPolicy;
657
+ /** The managed application management policy that determines publisher's access to the managed resource group. */
658
+ managementPolicy?: ApplicationManagementPolicy;
659
+ /** The managed application provider policies. */
660
+ policies?: ApplicationPolicy[];
661
+ }
662
+ /** Known values of {@link Origin} that the service accepts. */
663
+ export declare enum KnownOrigin {
664
+ /** User */
665
+ User = "user",
666
+ /** System */
667
+ System = "system",
668
+ /** UserSystem */
669
+ UserSystem = "user,system"
670
+ }
671
+ /**
672
+ * Defines values for Origin. \
673
+ * {@link KnownOrigin} can be used interchangeably with Origin,
674
+ * this enum contains the known values that the service supports.
675
+ * ### Known values supported by the service
676
+ * **user** \
677
+ * **system** \
678
+ * **user,system**
679
+ */
680
+ export type Origin = string;
681
+ /** Known values of {@link ActionType} that the service accepts. */
682
+ export declare enum KnownActionType {
683
+ /** Internal */
684
+ Internal = "Internal"
219
685
  }
686
+ /**
687
+ * Defines values for ActionType. \
688
+ * {@link KnownActionType} can be used interchangeably with ActionType,
689
+ * this enum contains the known values that the service supports.
690
+ * ### Known values supported by the service
691
+ * **Internal**
692
+ */
693
+ export type ActionType = string;
220
694
  /** Known values of {@link ProvisioningState} that the service accepts. */
221
695
  export declare enum KnownProvisioningState {
696
+ /** NotSpecified */
697
+ NotSpecified = "NotSpecified",
222
698
  /** Accepted */
223
699
  Accepted = "Accepted",
224
700
  /** Running */
225
701
  Running = "Running",
226
- /** Ready */
227
- Ready = "Ready",
228
- /** Creating */
229
- Creating = "Creating",
230
- /** Created */
231
- Created = "Created",
232
702
  /** Deleting */
233
703
  Deleting = "Deleting",
234
704
  /** Deleted */
@@ -247,11 +717,9 @@ export declare enum KnownProvisioningState {
247
717
  * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
248
718
  * this enum contains the known values that the service supports.
249
719
  * ### Known values supported by the service
720
+ * **NotSpecified** \
250
721
  * **Accepted** \
251
722
  * **Running** \
252
- * **Ready** \
253
- * **Creating** \
254
- * **Created** \
255
723
  * **Deleting** \
256
724
  * **Deleted** \
257
725
  * **Canceled** \
@@ -260,10 +728,251 @@ export declare enum KnownProvisioningState {
260
728
  * **Updating**
261
729
  */
262
730
  export type ProvisioningState = string;
731
+ /** Known values of {@link JitApprovalMode} that the service accepts. */
732
+ export declare enum KnownJitApprovalMode {
733
+ /** NotSpecified */
734
+ NotSpecified = "NotSpecified",
735
+ /** AutoApprove */
736
+ AutoApprove = "AutoApprove",
737
+ /** ManualApprove */
738
+ ManualApprove = "ManualApprove"
739
+ }
740
+ /**
741
+ * Defines values for JitApprovalMode. \
742
+ * {@link KnownJitApprovalMode} can be used interchangeably with JitApprovalMode,
743
+ * this enum contains the known values that the service supports.
744
+ * ### Known values supported by the service
745
+ * **NotSpecified** \
746
+ * **AutoApprove** \
747
+ * **ManualApprove**
748
+ */
749
+ export type JitApprovalMode = string;
750
+ /** Known values of {@link JitApproverType} that the service accepts. */
751
+ export declare enum KnownJitApproverType {
752
+ /** User */
753
+ User = "user",
754
+ /** Group */
755
+ Group = "group"
756
+ }
757
+ /**
758
+ * Defines values for JitApproverType. \
759
+ * {@link KnownJitApproverType} can be used interchangeably with JitApproverType,
760
+ * this enum contains the known values that the service supports.
761
+ * ### Known values supported by the service
762
+ * **user** \
763
+ * **group**
764
+ */
765
+ export type JitApproverType = string;
766
+ /** Known values of {@link ApplicationManagementMode} that the service accepts. */
767
+ export declare enum KnownApplicationManagementMode {
768
+ /** NotSpecified */
769
+ NotSpecified = "NotSpecified",
770
+ /** Unmanaged */
771
+ Unmanaged = "Unmanaged",
772
+ /** Managed */
773
+ Managed = "Managed"
774
+ }
775
+ /**
776
+ * Defines values for ApplicationManagementMode. \
777
+ * {@link KnownApplicationManagementMode} can be used interchangeably with ApplicationManagementMode,
778
+ * this enum contains the known values that the service supports.
779
+ * ### Known values supported by the service
780
+ * **NotSpecified** \
781
+ * **Unmanaged** \
782
+ * **Managed**
783
+ */
784
+ export type ApplicationManagementMode = string;
785
+ /** Known values of {@link ApplicationArtifactName} that the service accepts. */
786
+ export declare enum KnownApplicationArtifactName {
787
+ /** NotSpecified */
788
+ NotSpecified = "NotSpecified",
789
+ /** ViewDefinition */
790
+ ViewDefinition = "ViewDefinition",
791
+ /** Authorizations */
792
+ Authorizations = "Authorizations",
793
+ /** CustomRoleDefinition */
794
+ CustomRoleDefinition = "CustomRoleDefinition"
795
+ }
796
+ /**
797
+ * Defines values for ApplicationArtifactName. \
798
+ * {@link KnownApplicationArtifactName} can be used interchangeably with ApplicationArtifactName,
799
+ * this enum contains the known values that the service supports.
800
+ * ### Known values supported by the service
801
+ * **NotSpecified** \
802
+ * **ViewDefinition** \
803
+ * **Authorizations** \
804
+ * **CustomRoleDefinition**
805
+ */
806
+ export type ApplicationArtifactName = string;
807
+ /** Known values of {@link CreatedByType} that the service accepts. */
808
+ export declare enum KnownCreatedByType {
809
+ /** User */
810
+ User = "User",
811
+ /** Application */
812
+ Application = "Application",
813
+ /** ManagedIdentity */
814
+ ManagedIdentity = "ManagedIdentity",
815
+ /** Key */
816
+ Key = "Key"
817
+ }
818
+ /**
819
+ * Defines values for CreatedByType. \
820
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
821
+ * this enum contains the known values that the service supports.
822
+ * ### Known values supported by the service
823
+ * **User** \
824
+ * **Application** \
825
+ * **ManagedIdentity** \
826
+ * **Key**
827
+ */
828
+ export type CreatedByType = string;
829
+ /** Known values of {@link ApplicationDefinitionArtifactName} that the service accepts. */
830
+ export declare enum KnownApplicationDefinitionArtifactName {
831
+ /** NotSpecified */
832
+ NotSpecified = "NotSpecified",
833
+ /** ApplicationResourceTemplate */
834
+ ApplicationResourceTemplate = "ApplicationResourceTemplate",
835
+ /** CreateUiDefinition */
836
+ CreateUiDefinition = "CreateUiDefinition",
837
+ /** MainTemplateParameters */
838
+ MainTemplateParameters = "MainTemplateParameters"
839
+ }
840
+ /**
841
+ * Defines values for ApplicationDefinitionArtifactName. \
842
+ * {@link KnownApplicationDefinitionArtifactName} can be used interchangeably with ApplicationDefinitionArtifactName,
843
+ * this enum contains the known values that the service supports.
844
+ * ### Known values supported by the service
845
+ * **NotSpecified** \
846
+ * **ApplicationResourceTemplate** \
847
+ * **CreateUiDefinition** \
848
+ * **MainTemplateParameters**
849
+ */
850
+ export type ApplicationDefinitionArtifactName = string;
851
+ /** Known values of {@link DeploymentMode} that the service accepts. */
852
+ export declare enum KnownDeploymentMode {
853
+ /** NotSpecified */
854
+ NotSpecified = "NotSpecified",
855
+ /** Incremental */
856
+ Incremental = "Incremental",
857
+ /** Complete */
858
+ Complete = "Complete"
859
+ }
860
+ /**
861
+ * Defines values for DeploymentMode. \
862
+ * {@link KnownDeploymentMode} can be used interchangeably with DeploymentMode,
863
+ * this enum contains the known values that the service supports.
864
+ * ### Known values supported by the service
865
+ * **NotSpecified** \
866
+ * **Incremental** \
867
+ * **Complete**
868
+ */
869
+ export type DeploymentMode = string;
870
+ /** Known values of {@link JitSchedulingType} that the service accepts. */
871
+ export declare enum KnownJitSchedulingType {
872
+ /** NotSpecified */
873
+ NotSpecified = "NotSpecified",
874
+ /** Once */
875
+ Once = "Once",
876
+ /** Recurring */
877
+ Recurring = "Recurring"
878
+ }
879
+ /**
880
+ * Defines values for JitSchedulingType. \
881
+ * {@link KnownJitSchedulingType} can be used interchangeably with JitSchedulingType,
882
+ * this enum contains the known values that the service supports.
883
+ * ### Known values supported by the service
884
+ * **NotSpecified** \
885
+ * **Once** \
886
+ * **Recurring**
887
+ */
888
+ export type JitSchedulingType = string;
889
+ /** Known values of {@link JitRequestState} that the service accepts. */
890
+ export declare enum KnownJitRequestState {
891
+ /** NotSpecified */
892
+ NotSpecified = "NotSpecified",
893
+ /** Pending */
894
+ Pending = "Pending",
895
+ /** Approved */
896
+ Approved = "Approved",
897
+ /** Denied */
898
+ Denied = "Denied",
899
+ /** Failed */
900
+ Failed = "Failed",
901
+ /** Canceled */
902
+ Canceled = "Canceled",
903
+ /** Expired */
904
+ Expired = "Expired",
905
+ /** Timeout */
906
+ Timeout = "Timeout"
907
+ }
908
+ /**
909
+ * Defines values for JitRequestState. \
910
+ * {@link KnownJitRequestState} can be used interchangeably with JitRequestState,
911
+ * this enum contains the known values that the service supports.
912
+ * ### Known values supported by the service
913
+ * **NotSpecified** \
914
+ * **Pending** \
915
+ * **Approved** \
916
+ * **Denied** \
917
+ * **Failed** \
918
+ * **Canceled** \
919
+ * **Expired** \
920
+ * **Timeout**
921
+ */
922
+ export type JitRequestState = string;
923
+ /** Known values of {@link Status} that the service accepts. */
924
+ export declare enum KnownStatus {
925
+ /** NotSpecified */
926
+ NotSpecified = "NotSpecified",
927
+ /** Elevate */
928
+ Elevate = "Elevate",
929
+ /** Remove */
930
+ Remove = "Remove"
931
+ }
932
+ /**
933
+ * Defines values for Status. \
934
+ * {@link KnownStatus} can be used interchangeably with Status,
935
+ * this enum contains the known values that the service supports.
936
+ * ### Known values supported by the service
937
+ * **NotSpecified** \
938
+ * **Elevate** \
939
+ * **Remove**
940
+ */
941
+ export type Status = string;
942
+ /** Known values of {@link Substatus} that the service accepts. */
943
+ export declare enum KnownSubstatus {
944
+ /** NotSpecified */
945
+ NotSpecified = "NotSpecified",
946
+ /** Approved */
947
+ Approved = "Approved",
948
+ /** Denied */
949
+ Denied = "Denied",
950
+ /** Failed */
951
+ Failed = "Failed",
952
+ /** Expired */
953
+ Expired = "Expired",
954
+ /** Timeout */
955
+ Timeout = "Timeout"
956
+ }
957
+ /**
958
+ * Defines values for Substatus. \
959
+ * {@link KnownSubstatus} can be used interchangeably with Substatus,
960
+ * this enum contains the known values that the service supports.
961
+ * ### Known values supported by the service
962
+ * **NotSpecified** \
963
+ * **Approved** \
964
+ * **Denied** \
965
+ * **Failed** \
966
+ * **Expired** \
967
+ * **Timeout**
968
+ */
969
+ export type Substatus = string;
970
+ /** Defines values for ApplicationArtifactType. */
971
+ export type ApplicationArtifactType = "NotSpecified" | "Template" | "Custom";
972
+ /** Defines values for ResourceIdentityType. */
973
+ export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None";
263
974
  /** Defines values for ApplicationLockLevel. */
264
975
  export type ApplicationLockLevel = "CanNotDelete" | "ReadOnly" | "None";
265
- /** Defines values for ApplicationArtifactType. */
266
- export type ApplicationArtifactType = "Template" | "Custom";
267
976
  /** Optional parameters. */
268
977
  export interface ListOperationsOptionalParams extends coreClient.OperationOptions {
269
978
  }
@@ -299,9 +1008,13 @@ export type ApplicationsCreateOrUpdateResponse = Application;
299
1008
  export interface ApplicationsUpdateOptionalParams extends coreClient.OperationOptions {
300
1009
  /** Parameters supplied to update an existing managed application. */
301
1010
  parameters?: ApplicationPatchable;
1011
+ /** Delay to wait until next poll, in milliseconds. */
1012
+ updateIntervalInMs?: number;
1013
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1014
+ resumeFrom?: string;
302
1015
  }
303
1016
  /** Contains response data for the update operation. */
304
- export type ApplicationsUpdateResponse = Application;
1017
+ export type ApplicationsUpdateResponse = ApplicationPatchable;
305
1018
  /** Optional parameters. */
306
1019
  export interface ApplicationsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
307
1020
  }
@@ -336,10 +1049,38 @@ export type ApplicationsCreateOrUpdateByIdResponse = Application;
336
1049
  /** Optional parameters. */
337
1050
  export interface ApplicationsUpdateByIdOptionalParams extends coreClient.OperationOptions {
338
1051
  /** Parameters supplied to update an existing managed application. */
339
- parameters?: Application;
1052
+ parameters?: ApplicationPatchable;
1053
+ /** Delay to wait until next poll, in milliseconds. */
1054
+ updateIntervalInMs?: number;
1055
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1056
+ resumeFrom?: string;
340
1057
  }
341
1058
  /** Contains response data for the updateById operation. */
342
- export type ApplicationsUpdateByIdResponse = Application;
1059
+ export type ApplicationsUpdateByIdResponse = ApplicationPatchable;
1060
+ /** Optional parameters. */
1061
+ export interface ApplicationsRefreshPermissionsOptionalParams extends coreClient.OperationOptions {
1062
+ /** Delay to wait until next poll, in milliseconds. */
1063
+ updateIntervalInMs?: number;
1064
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1065
+ resumeFrom?: string;
1066
+ }
1067
+ /** Optional parameters. */
1068
+ export interface ApplicationsListAllowedUpgradePlansOptionalParams extends coreClient.OperationOptions {
1069
+ }
1070
+ /** Contains response data for the listAllowedUpgradePlans operation. */
1071
+ export type ApplicationsListAllowedUpgradePlansResponse = AllowedUpgradePlansResult;
1072
+ /** Optional parameters. */
1073
+ export interface ApplicationsUpdateAccessOptionalParams extends coreClient.OperationOptions {
1074
+ /** Delay to wait until next poll, in milliseconds. */
1075
+ updateIntervalInMs?: number;
1076
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1077
+ resumeFrom?: string;
1078
+ }
1079
+ /** Optional parameters. */
1080
+ export interface ApplicationsListTokensOptionalParams extends coreClient.OperationOptions {
1081
+ }
1082
+ /** Contains response data for the listTokens operation. */
1083
+ export type ApplicationsListTokensResponse = ManagedIdentityTokenResult;
343
1084
  /** Optional parameters. */
344
1085
  export interface ApplicationsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
345
1086
  }
@@ -357,52 +1098,88 @@ export interface ApplicationDefinitionsGetOptionalParams extends coreClient.Oper
357
1098
  export type ApplicationDefinitionsGetResponse = ApplicationDefinition;
358
1099
  /** Optional parameters. */
359
1100
  export interface ApplicationDefinitionsDeleteOptionalParams extends coreClient.OperationOptions {
360
- /** Delay to wait until next poll, in milliseconds. */
361
- updateIntervalInMs?: number;
362
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
363
- resumeFrom?: string;
364
1101
  }
365
1102
  /** Optional parameters. */
366
1103
  export interface ApplicationDefinitionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
367
- /** Delay to wait until next poll, in milliseconds. */
368
- updateIntervalInMs?: number;
369
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
370
- resumeFrom?: string;
371
1104
  }
372
1105
  /** Contains response data for the createOrUpdate operation. */
373
1106
  export type ApplicationDefinitionsCreateOrUpdateResponse = ApplicationDefinition;
374
1107
  /** Optional parameters. */
1108
+ export interface ApplicationDefinitionsUpdateOptionalParams extends coreClient.OperationOptions {
1109
+ }
1110
+ /** Contains response data for the update operation. */
1111
+ export type ApplicationDefinitionsUpdateResponse = ApplicationDefinition;
1112
+ /** Optional parameters. */
375
1113
  export interface ApplicationDefinitionsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
376
1114
  }
377
1115
  /** Contains response data for the listByResourceGroup operation. */
378
1116
  export type ApplicationDefinitionsListByResourceGroupResponse = ApplicationDefinitionListResult;
379
1117
  /** Optional parameters. */
1118
+ export interface ApplicationDefinitionsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
1119
+ }
1120
+ /** Contains response data for the listBySubscription operation. */
1121
+ export type ApplicationDefinitionsListBySubscriptionResponse = ApplicationDefinitionListResult;
1122
+ /** Optional parameters. */
380
1123
  export interface ApplicationDefinitionsGetByIdOptionalParams extends coreClient.OperationOptions {
381
1124
  }
382
1125
  /** Contains response data for the getById operation. */
383
1126
  export type ApplicationDefinitionsGetByIdResponse = ApplicationDefinition;
384
1127
  /** Optional parameters. */
385
1128
  export interface ApplicationDefinitionsDeleteByIdOptionalParams extends coreClient.OperationOptions {
386
- /** Delay to wait until next poll, in milliseconds. */
387
- updateIntervalInMs?: number;
388
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
389
- resumeFrom?: string;
390
1129
  }
391
1130
  /** Optional parameters. */
392
1131
  export interface ApplicationDefinitionsCreateOrUpdateByIdOptionalParams extends coreClient.OperationOptions {
393
- /** Delay to wait until next poll, in milliseconds. */
394
- updateIntervalInMs?: number;
395
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
396
- resumeFrom?: string;
397
1132
  }
398
1133
  /** Contains response data for the createOrUpdateById operation. */
399
1134
  export type ApplicationDefinitionsCreateOrUpdateByIdResponse = ApplicationDefinition;
400
1135
  /** Optional parameters. */
1136
+ export interface ApplicationDefinitionsUpdateByIdOptionalParams extends coreClient.OperationOptions {
1137
+ }
1138
+ /** Contains response data for the updateById operation. */
1139
+ export type ApplicationDefinitionsUpdateByIdResponse = ApplicationDefinition;
1140
+ /** Optional parameters. */
401
1141
  export interface ApplicationDefinitionsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
402
1142
  }
403
1143
  /** Contains response data for the listByResourceGroupNext operation. */
404
1144
  export type ApplicationDefinitionsListByResourceGroupNextResponse = ApplicationDefinitionListResult;
405
1145
  /** Optional parameters. */
1146
+ export interface ApplicationDefinitionsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
1147
+ }
1148
+ /** Contains response data for the listBySubscriptionNext operation. */
1149
+ export type ApplicationDefinitionsListBySubscriptionNextResponse = ApplicationDefinitionListResult;
1150
+ /** Optional parameters. */
1151
+ export interface JitRequestsGetOptionalParams extends coreClient.OperationOptions {
1152
+ }
1153
+ /** Contains response data for the get operation. */
1154
+ export type JitRequestsGetResponse = JitRequestDefinition;
1155
+ /** Optional parameters. */
1156
+ export interface JitRequestsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
1157
+ /** Delay to wait until next poll, in milliseconds. */
1158
+ updateIntervalInMs?: number;
1159
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1160
+ resumeFrom?: string;
1161
+ }
1162
+ /** Contains response data for the createOrUpdate operation. */
1163
+ export type JitRequestsCreateOrUpdateResponse = JitRequestDefinition;
1164
+ /** Optional parameters. */
1165
+ export interface JitRequestsUpdateOptionalParams extends coreClient.OperationOptions {
1166
+ }
1167
+ /** Contains response data for the update operation. */
1168
+ export type JitRequestsUpdateResponse = JitRequestDefinition;
1169
+ /** Optional parameters. */
1170
+ export interface JitRequestsDeleteOptionalParams extends coreClient.OperationOptions {
1171
+ }
1172
+ /** Optional parameters. */
1173
+ export interface JitRequestsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
1174
+ }
1175
+ /** Contains response data for the listBySubscription operation. */
1176
+ export type JitRequestsListBySubscriptionResponse = JitRequestDefinitionListResult;
1177
+ /** Optional parameters. */
1178
+ export interface JitRequestsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
1179
+ }
1180
+ /** Contains response data for the listByResourceGroup operation. */
1181
+ export type JitRequestsListByResourceGroupResponse = JitRequestDefinitionListResult;
1182
+ /** Optional parameters. */
406
1183
  export interface ApplicationClientOptionalParams extends coreClient.ServiceClientOptions {
407
1184
  /** server parameter */
408
1185
  $host?: string;