@azure/arm-computeschedule 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +100 -0
  4. package/dist/browser/api/computeScheduleContext.d.ts +12 -0
  5. package/dist/browser/api/computeScheduleContext.d.ts.map +1 -0
  6. package/dist/browser/api/computeScheduleContext.js +32 -0
  7. package/dist/browser/api/computeScheduleContext.js.map +1 -0
  8. package/dist/browser/api/index.d.ts +4 -0
  9. package/dist/browser/api/index.d.ts.map +1 -0
  10. package/dist/browser/api/index.js +6 -0
  11. package/dist/browser/api/index.js.map +1 -0
  12. package/dist/browser/api/operations/index.d.ts +10 -0
  13. package/dist/browser/api/operations/index.d.ts.map +1 -0
  14. package/dist/browser/api/operations/index.js +40 -0
  15. package/dist/browser/api/operations/index.js.map +1 -0
  16. package/dist/browser/api/scheduledActions/index.d.ts +41 -0
  17. package/dist/browser/api/scheduledActions/index.d.ts.map +1 -0
  18. package/dist/browser/api/scheduledActions/index.js +550 -0
  19. package/dist/browser/api/scheduledActions/index.js.map +1 -0
  20. package/dist/browser/classic/index.d.ts +3 -0
  21. package/dist/browser/classic/index.d.ts.map +1 -0
  22. package/dist/browser/classic/index.js +4 -0
  23. package/dist/browser/classic/index.js.map +1 -0
  24. package/dist/browser/classic/operations/index.d.ts +14 -0
  25. package/dist/browser/classic/operations/index.d.ts.map +1 -0
  26. package/dist/browser/classic/operations/index.js +12 -0
  27. package/dist/browser/classic/operations/index.js.map +1 -0
  28. package/dist/browser/classic/scheduledActions/index.d.ts +37 -0
  29. package/dist/browser/classic/scheduledActions/index.d.ts.map +1 -0
  30. package/dist/browser/classic/scheduledActions/index.js +20 -0
  31. package/dist/browser/classic/scheduledActions/index.js.map +1 -0
  32. package/dist/browser/computeScheduleClient.d.ts +18 -0
  33. package/dist/browser/computeScheduleClient.d.ts.map +1 -0
  34. package/dist/browser/computeScheduleClient.js +20 -0
  35. package/dist/browser/computeScheduleClient.js.map +1 -0
  36. package/dist/browser/helpers/serializerHelpers.d.ts +3 -0
  37. package/dist/browser/helpers/serializerHelpers.d.ts.map +1 -0
  38. package/dist/browser/helpers/serializerHelpers.js +24 -0
  39. package/dist/browser/helpers/serializerHelpers.js.map +1 -0
  40. package/dist/browser/index.d.ts +6 -0
  41. package/dist/browser/index.d.ts.map +1 -0
  42. package/dist/browser/index.js +5 -0
  43. package/dist/browser/index.js.map +1 -0
  44. package/dist/browser/logger.d.ts +2 -0
  45. package/dist/browser/logger.d.ts.map +1 -0
  46. package/dist/browser/logger.js +5 -0
  47. package/dist/browser/logger.js.map +1 -0
  48. package/dist/browser/models/index.d.ts +3 -0
  49. package/dist/browser/models/index.d.ts.map +1 -0
  50. package/dist/browser/models/index.js +4 -0
  51. package/dist/browser/models/index.js.map +1 -0
  52. package/dist/browser/models/models.d.ts +400 -0
  53. package/dist/browser/models/models.d.ts.map +1 -0
  54. package/dist/browser/models/models.js +159 -0
  55. package/dist/browser/models/models.js.map +1 -0
  56. package/dist/browser/models/options.d.ts +32 -0
  57. package/dist/browser/models/options.d.ts.map +1 -0
  58. package/dist/browser/models/options.js +4 -0
  59. package/dist/browser/models/options.js.map +1 -0
  60. package/dist/browser/package.json +3 -0
  61. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  62. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
  63. package/dist/browser/static-helpers/pagingHelpers.js +137 -0
  64. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  65. package/dist/commonjs/api/computeScheduleContext.d.ts +12 -0
  66. package/dist/commonjs/api/computeScheduleContext.d.ts.map +1 -0
  67. package/dist/commonjs/api/computeScheduleContext.js +35 -0
  68. package/dist/commonjs/api/computeScheduleContext.js.map +1 -0
  69. package/dist/commonjs/api/index.d.ts +4 -0
  70. package/dist/commonjs/api/index.d.ts.map +1 -0
  71. package/dist/commonjs/api/index.js +20 -0
  72. package/dist/commonjs/api/index.js.map +1 -0
  73. package/dist/commonjs/api/operations/index.d.ts +10 -0
  74. package/dist/commonjs/api/operations/index.d.ts.map +1 -0
  75. package/dist/commonjs/api/operations/index.js +45 -0
  76. package/dist/commonjs/api/operations/index.js.map +1 -0
  77. package/dist/commonjs/api/scheduledActions/index.d.ts +41 -0
  78. package/dist/commonjs/api/scheduledActions/index.d.ts.map +1 -0
  79. package/dist/commonjs/api/scheduledActions/index.js +579 -0
  80. package/dist/commonjs/api/scheduledActions/index.js.map +1 -0
  81. package/dist/commonjs/classic/index.d.ts +3 -0
  82. package/dist/commonjs/classic/index.d.ts.map +1 -0
  83. package/dist/commonjs/classic/index.js +5 -0
  84. package/dist/commonjs/classic/index.js.map +1 -0
  85. package/dist/commonjs/classic/operations/index.d.ts +14 -0
  86. package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
  87. package/dist/commonjs/classic/operations/index.js +16 -0
  88. package/dist/commonjs/classic/operations/index.js.map +1 -0
  89. package/dist/commonjs/classic/scheduledActions/index.d.ts +37 -0
  90. package/dist/commonjs/classic/scheduledActions/index.d.ts.map +1 -0
  91. package/dist/commonjs/classic/scheduledActions/index.js +24 -0
  92. package/dist/commonjs/classic/scheduledActions/index.js.map +1 -0
  93. package/dist/commonjs/computeScheduleClient.d.ts +18 -0
  94. package/dist/commonjs/computeScheduleClient.d.ts.map +1 -0
  95. package/dist/commonjs/computeScheduleClient.js +24 -0
  96. package/dist/commonjs/computeScheduleClient.js.map +1 -0
  97. package/dist/commonjs/helpers/serializerHelpers.d.ts +3 -0
  98. package/dist/commonjs/helpers/serializerHelpers.d.ts.map +1 -0
  99. package/dist/commonjs/helpers/serializerHelpers.js +27 -0
  100. package/dist/commonjs/helpers/serializerHelpers.js.map +1 -0
  101. package/dist/commonjs/index.d.ts +6 -0
  102. package/dist/commonjs/index.d.ts.map +1 -0
  103. package/dist/commonjs/index.js +15 -0
  104. package/dist/commonjs/index.js.map +1 -0
  105. package/dist/commonjs/logger.d.ts +2 -0
  106. package/dist/commonjs/logger.d.ts.map +1 -0
  107. package/dist/commonjs/logger.js +8 -0
  108. package/dist/commonjs/logger.js.map +1 -0
  109. package/dist/commonjs/models/index.d.ts +3 -0
  110. package/dist/commonjs/models/index.d.ts.map +1 -0
  111. package/dist/commonjs/models/index.js +13 -0
  112. package/dist/commonjs/models/index.js.map +1 -0
  113. package/dist/commonjs/models/models.d.ts +400 -0
  114. package/dist/commonjs/models/models.d.ts.map +1 -0
  115. package/dist/commonjs/models/models.js +175 -0
  116. package/dist/commonjs/models/models.js.map +1 -0
  117. package/dist/commonjs/models/options.d.ts +32 -0
  118. package/dist/commonjs/models/options.d.ts.map +1 -0
  119. package/dist/commonjs/models/options.js +5 -0
  120. package/dist/commonjs/models/options.js.map +1 -0
  121. package/dist/commonjs/package.json +3 -0
  122. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  123. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
  124. package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
  125. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  126. package/dist/commonjs/tsdoc-metadata.json +11 -0
  127. package/dist/esm/api/computeScheduleContext.d.ts +12 -0
  128. package/dist/esm/api/computeScheduleContext.d.ts.map +1 -0
  129. package/dist/esm/api/computeScheduleContext.js +32 -0
  130. package/dist/esm/api/computeScheduleContext.js.map +1 -0
  131. package/dist/esm/api/index.d.ts +4 -0
  132. package/dist/esm/api/index.d.ts.map +1 -0
  133. package/dist/esm/api/index.js +6 -0
  134. package/dist/esm/api/index.js.map +1 -0
  135. package/dist/esm/api/operations/index.d.ts +10 -0
  136. package/dist/esm/api/operations/index.d.ts.map +1 -0
  137. package/dist/esm/api/operations/index.js +40 -0
  138. package/dist/esm/api/operations/index.js.map +1 -0
  139. package/dist/esm/api/scheduledActions/index.d.ts +41 -0
  140. package/dist/esm/api/scheduledActions/index.d.ts.map +1 -0
  141. package/dist/esm/api/scheduledActions/index.js +550 -0
  142. package/dist/esm/api/scheduledActions/index.js.map +1 -0
  143. package/dist/esm/classic/index.d.ts +3 -0
  144. package/dist/esm/classic/index.d.ts.map +1 -0
  145. package/dist/esm/classic/index.js +4 -0
  146. package/dist/esm/classic/index.js.map +1 -0
  147. package/dist/esm/classic/operations/index.d.ts +14 -0
  148. package/dist/esm/classic/operations/index.d.ts.map +1 -0
  149. package/dist/esm/classic/operations/index.js +12 -0
  150. package/dist/esm/classic/operations/index.js.map +1 -0
  151. package/dist/esm/classic/scheduledActions/index.d.ts +37 -0
  152. package/dist/esm/classic/scheduledActions/index.d.ts.map +1 -0
  153. package/dist/esm/classic/scheduledActions/index.js +20 -0
  154. package/dist/esm/classic/scheduledActions/index.js.map +1 -0
  155. package/dist/esm/computeScheduleClient.d.ts +18 -0
  156. package/dist/esm/computeScheduleClient.d.ts.map +1 -0
  157. package/dist/esm/computeScheduleClient.js +20 -0
  158. package/dist/esm/computeScheduleClient.js.map +1 -0
  159. package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
  160. package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
  161. package/dist/esm/helpers/serializerHelpers.js +24 -0
  162. package/dist/esm/helpers/serializerHelpers.js.map +1 -0
  163. package/dist/esm/index.d.ts +6 -0
  164. package/dist/esm/index.d.ts.map +1 -0
  165. package/dist/esm/index.js +5 -0
  166. package/dist/esm/index.js.map +1 -0
  167. package/dist/esm/logger.d.ts +2 -0
  168. package/dist/esm/logger.d.ts.map +1 -0
  169. package/dist/esm/logger.js +5 -0
  170. package/dist/esm/logger.js.map +1 -0
  171. package/dist/esm/models/index.d.ts +3 -0
  172. package/dist/esm/models/index.d.ts.map +1 -0
  173. package/dist/esm/models/index.js +4 -0
  174. package/dist/esm/models/index.js.map +1 -0
  175. package/dist/esm/models/models.d.ts +400 -0
  176. package/dist/esm/models/models.d.ts.map +1 -0
  177. package/dist/esm/models/models.js +159 -0
  178. package/dist/esm/models/models.js.map +1 -0
  179. package/dist/esm/models/options.d.ts +32 -0
  180. package/dist/esm/models/options.d.ts.map +1 -0
  181. package/dist/esm/models/options.js +4 -0
  182. package/dist/esm/models/options.js.map +1 -0
  183. package/dist/esm/package.json +3 -0
  184. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  185. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  186. package/dist/esm/static-helpers/pagingHelpers.js +137 -0
  187. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  188. package/dist/react-native/api/computeScheduleContext.d.ts +12 -0
  189. package/dist/react-native/api/computeScheduleContext.d.ts.map +1 -0
  190. package/dist/react-native/api/computeScheduleContext.js +32 -0
  191. package/dist/react-native/api/computeScheduleContext.js.map +1 -0
  192. package/dist/react-native/api/index.d.ts +4 -0
  193. package/dist/react-native/api/index.d.ts.map +1 -0
  194. package/dist/react-native/api/index.js +6 -0
  195. package/dist/react-native/api/index.js.map +1 -0
  196. package/dist/react-native/api/operations/index.d.ts +10 -0
  197. package/dist/react-native/api/operations/index.d.ts.map +1 -0
  198. package/dist/react-native/api/operations/index.js +40 -0
  199. package/dist/react-native/api/operations/index.js.map +1 -0
  200. package/dist/react-native/api/scheduledActions/index.d.ts +41 -0
  201. package/dist/react-native/api/scheduledActions/index.d.ts.map +1 -0
  202. package/dist/react-native/api/scheduledActions/index.js +550 -0
  203. package/dist/react-native/api/scheduledActions/index.js.map +1 -0
  204. package/dist/react-native/classic/index.d.ts +3 -0
  205. package/dist/react-native/classic/index.d.ts.map +1 -0
  206. package/dist/react-native/classic/index.js +4 -0
  207. package/dist/react-native/classic/index.js.map +1 -0
  208. package/dist/react-native/classic/operations/index.d.ts +14 -0
  209. package/dist/react-native/classic/operations/index.d.ts.map +1 -0
  210. package/dist/react-native/classic/operations/index.js +12 -0
  211. package/dist/react-native/classic/operations/index.js.map +1 -0
  212. package/dist/react-native/classic/scheduledActions/index.d.ts +37 -0
  213. package/dist/react-native/classic/scheduledActions/index.d.ts.map +1 -0
  214. package/dist/react-native/classic/scheduledActions/index.js +20 -0
  215. package/dist/react-native/classic/scheduledActions/index.js.map +1 -0
  216. package/dist/react-native/computeScheduleClient.d.ts +18 -0
  217. package/dist/react-native/computeScheduleClient.d.ts.map +1 -0
  218. package/dist/react-native/computeScheduleClient.js +20 -0
  219. package/dist/react-native/computeScheduleClient.js.map +1 -0
  220. package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
  221. package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
  222. package/dist/react-native/helpers/serializerHelpers.js +24 -0
  223. package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
  224. package/dist/react-native/index.d.ts +6 -0
  225. package/dist/react-native/index.d.ts.map +1 -0
  226. package/dist/react-native/index.js +5 -0
  227. package/dist/react-native/index.js.map +1 -0
  228. package/dist/react-native/logger.d.ts +2 -0
  229. package/dist/react-native/logger.d.ts.map +1 -0
  230. package/dist/react-native/logger.js +5 -0
  231. package/dist/react-native/logger.js.map +1 -0
  232. package/dist/react-native/models/index.d.ts +3 -0
  233. package/dist/react-native/models/index.d.ts.map +1 -0
  234. package/dist/react-native/models/index.js +4 -0
  235. package/dist/react-native/models/index.js.map +1 -0
  236. package/dist/react-native/models/models.d.ts +400 -0
  237. package/dist/react-native/models/models.d.ts.map +1 -0
  238. package/dist/react-native/models/models.js +159 -0
  239. package/dist/react-native/models/models.js.map +1 -0
  240. package/dist/react-native/models/options.d.ts +32 -0
  241. package/dist/react-native/models/options.d.ts.map +1 -0
  242. package/dist/react-native/models/options.js +4 -0
  243. package/dist/react-native/models/options.js.map +1 -0
  244. package/dist/react-native/package.json +3 -0
  245. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  246. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  247. package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
  248. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  249. package/package.json +169 -0
  250. package/review/arm-computeschedule-models.api.md +306 -0
  251. package/review/arm-computeschedule.api.md +357 -0
@@ -0,0 +1,400 @@
1
+ /** The deallocate request for resources */
2
+ export interface SubmitDeallocateRequest {
3
+ /** The schedule for the request */
4
+ schedule: Schedule;
5
+ /** The execution parameters for the request */
6
+ executionParameters: ExecutionParameters;
7
+ /** The resources for the request */
8
+ resources: Resources;
9
+ /** Correlationid item */
10
+ correlationid: string;
11
+ }
12
+ export declare function submitDeallocateRequestSerializer(item: SubmitDeallocateRequest): Record<string, unknown>;
13
+ /** The schedule details for the user request */
14
+ export interface Schedule {
15
+ /** The deadline for the operation */
16
+ deadLine: string;
17
+ /** The timezone for the operation */
18
+ timeZone: string;
19
+ /** The deadlinetype of the operation, this can either be InitiateAt or CompleteBy */
20
+ deadlineType: DeadlineType;
21
+ }
22
+ export declare function scheduleSerializer(item: Schedule): Record<string, unknown>;
23
+ /** Known values of {@link DeadlineType} that the service accepts. */
24
+ export declare enum KnownDeadlineType {
25
+ /** Unknown */
26
+ Unknown = "Unknown",
27
+ /** InitiateAt */
28
+ InitiateAt = "InitiateAt",
29
+ /** CompleteBy */
30
+ CompleteBy = "CompleteBy"
31
+ }
32
+ /**
33
+ * The types of deadlines supported by ScheduledActions \
34
+ * {@link KnownDeadlineType} can be used interchangeably with DeadlineType,
35
+ * this enum contains the known values that the service supports.
36
+ * ### Known values supported by the service
37
+ * **Unknown** \
38
+ * **InitiateAt** \
39
+ * **CompleteBy**
40
+ */
41
+ export type DeadlineType = string;
42
+ /** Extra details needed to run the user's request */
43
+ export interface ExecutionParameters {
44
+ /** Details that could optimize the user's request */
45
+ optimizationPreference?: OptimizationPreference;
46
+ /** Retry policy the user can pass */
47
+ retryPolicy?: RetryPolicy;
48
+ }
49
+ export declare function executionParametersSerializer(item: ExecutionParameters): Record<string, unknown>;
50
+ /** Known values of {@link OptimizationPreference} that the service accepts. */
51
+ export declare enum KnownOptimizationPreference {
52
+ /** Cost */
53
+ Cost = "Cost",
54
+ /** Availability */
55
+ Availability = "Availability",
56
+ /** CostAvailabilityBalanced */
57
+ CostAvailabilityBalanced = "CostAvailabilityBalanced"
58
+ }
59
+ /**
60
+ * The preferences customers can select to optimize their requests to ScheduledActions \
61
+ * {@link KnownOptimizationPreference} can be used interchangeably with OptimizationPreference,
62
+ * this enum contains the known values that the service supports.
63
+ * ### Known values supported by the service
64
+ * **Cost** \
65
+ * **Availability** \
66
+ * **CostAvailabilityBalanced**
67
+ */
68
+ export type OptimizationPreference = string;
69
+ /** The retry policy for the user request */
70
+ export interface RetryPolicy {
71
+ /** Retry count for user request */
72
+ retryCount?: number;
73
+ /** Retry window in minutes for user request */
74
+ retryWindowInMinutes?: number;
75
+ }
76
+ export declare function retryPolicySerializer(item: RetryPolicy): Record<string, unknown>;
77
+ /** The resources needed for the user request */
78
+ export interface Resources {
79
+ /** The resource ids used for the request */
80
+ ids: string[];
81
+ }
82
+ export declare function resourcesSerializer(item: Resources): Record<string, unknown>;
83
+ /** The response from a deallocate request */
84
+ export interface DeallocateResourceOperationResponse {
85
+ /** The description of the operation response */
86
+ description: string;
87
+ /** The type of resources used in the deallocate request eg virtual machines */
88
+ type: string;
89
+ /** The location of the deallocate request eg westus */
90
+ location: string;
91
+ /** The results from the deallocate request if no errors exist */
92
+ results?: ResourceOperation[];
93
+ }
94
+ /** High level response from an operation on a resource */
95
+ export interface ResourceOperation {
96
+ /** Unique identifier for the resource involved in the operation, eg ArmId */
97
+ resourceId?: string;
98
+ /** Resource level error code if it exists */
99
+ errorCode?: string;
100
+ /** Resource level error details if they exist */
101
+ errorDetails?: string;
102
+ /** Details of the operation performed on a resource */
103
+ operation?: ResourceOperationDetails;
104
+ }
105
+ /** The details of a response from an operation on a resource */
106
+ export interface ResourceOperationDetails {
107
+ /** Operation identifier for the unique operation */
108
+ operationId: string;
109
+ /** Unique identifier for the resource involved in the operation, eg ArmId */
110
+ resourceId: string;
111
+ /** Type of operation performed on the resources */
112
+ opType: ResourceOperationType;
113
+ /** Subscription id attached to the request */
114
+ subscriptionId: string;
115
+ /** Deadline for the operation */
116
+ deadline: string;
117
+ /** Type of deadline of the operation */
118
+ deadlineType: DeadlineType;
119
+ /** Current state of the operation */
120
+ state: OperationState;
121
+ /** Timezone for the operation */
122
+ timeZone?: string;
123
+ /** Operation level errors if they exist */
124
+ resourceOperationError?: ResourceOperationError;
125
+ /** Time the operation was complete if errors are null */
126
+ completedAt?: string;
127
+ /** Retry policy the user can pass */
128
+ retryPolicy?: RetryPolicy;
129
+ }
130
+ /** Known values of {@link ResourceOperationType} that the service accepts. */
131
+ export declare enum KnownResourceOperationType {
132
+ /** Unknown */
133
+ Unknown = "Unknown",
134
+ /** Start */
135
+ Start = "Start",
136
+ /** Deallocate */
137
+ Deallocate = "Deallocate",
138
+ /** Hibernate */
139
+ Hibernate = "Hibernate"
140
+ }
141
+ /**
142
+ * The kind of operation types that can be performed on resources using ScheduledActions \
143
+ * {@link KnownResourceOperationType} can be used interchangeably with ResourceOperationType,
144
+ * this enum contains the known values that the service supports.
145
+ * ### Known values supported by the service
146
+ * **Unknown** \
147
+ * **Start** \
148
+ * **Deallocate** \
149
+ * **Hibernate**
150
+ */
151
+ export type ResourceOperationType = string;
152
+ /** Known values of {@link OperationState} that the service accepts. */
153
+ export declare enum KnownOperationState {
154
+ /** Unknown */
155
+ Unknown = "Unknown",
156
+ /** PendingScheduling */
157
+ PendingScheduling = "PendingScheduling",
158
+ /** Scheduled */
159
+ Scheduled = "Scheduled",
160
+ /** PendingExecution */
161
+ PendingExecution = "PendingExecution",
162
+ /** Executing */
163
+ Executing = "Executing",
164
+ /** Succeeded */
165
+ Succeeded = "Succeeded",
166
+ /** Failed */
167
+ Failed = "Failed",
168
+ /** Cancelled */
169
+ Cancelled = "Cancelled",
170
+ /** Blocked */
171
+ Blocked = "Blocked"
172
+ }
173
+ /**
174
+ * Values that define the states of operations in Scheduled Actions \
175
+ * {@link KnownOperationState} can be used interchangeably with OperationState,
176
+ * this enum contains the known values that the service supports.
177
+ * ### Known values supported by the service
178
+ * **Unknown** \
179
+ * **PendingScheduling** \
180
+ * **Scheduled** \
181
+ * **PendingExecution** \
182
+ * **Executing** \
183
+ * **Succeeded** \
184
+ * **Failed** \
185
+ * **Cancelled** \
186
+ * **Blocked**
187
+ */
188
+ export type OperationState = string;
189
+ /** These describe errors that occur at the resource level */
190
+ export interface ResourceOperationError {
191
+ /** Code for the error eg 404, 500 */
192
+ errorCode: string;
193
+ /** Detailed message about the error */
194
+ errorDetails: string;
195
+ }
196
+ /** This is the request for hibernate */
197
+ export interface SubmitHibernateRequest {
198
+ /** The schedule for the request */
199
+ schedule: Schedule;
200
+ /** The execution parameters for the request */
201
+ executionParameters: ExecutionParameters;
202
+ /** The resources for the request */
203
+ resources: Resources;
204
+ /** Correlationid item */
205
+ correlationid: string;
206
+ }
207
+ export declare function submitHibernateRequestSerializer(item: SubmitHibernateRequest): Record<string, unknown>;
208
+ /** The response from a Hibernate request */
209
+ export interface HibernateResourceOperationResponse {
210
+ /** The description of the operation response */
211
+ description: string;
212
+ /** The type of resources used in the Hibernate request eg virtual machines */
213
+ type: string;
214
+ /** The location of the Hibernate request eg westus */
215
+ location: string;
216
+ /** The results from the Hibernate request if no errors exist */
217
+ results?: ResourceOperation[];
218
+ }
219
+ /** This is the request for start */
220
+ export interface SubmitStartRequest {
221
+ /** The schedule for the request */
222
+ schedule: Schedule;
223
+ /** The execution parameters for the request */
224
+ executionParameters: ExecutionParameters;
225
+ /** The resources for the request */
226
+ resources: Resources;
227
+ /** Correlationid item */
228
+ correlationid: string;
229
+ }
230
+ export declare function submitStartRequestSerializer(item: SubmitStartRequest): Record<string, unknown>;
231
+ /** The response from a start request */
232
+ export interface StartResourceOperationResponse {
233
+ /** The description of the operation response */
234
+ description: string;
235
+ /** The type of resources used in the start request eg virtual machines */
236
+ type: string;
237
+ /** The location of the start request eg westus */
238
+ location: string;
239
+ /** The results from the start request if no errors exist */
240
+ results?: ResourceOperation[];
241
+ }
242
+ /** The ExecuteDeallocateRequest request for executeDeallocate operations */
243
+ export interface ExecuteDeallocateRequest {
244
+ /** The execution parameters for the request */
245
+ executionParameters: ExecutionParameters;
246
+ /** The resources for the request */
247
+ resources: Resources;
248
+ /** Correlationid item */
249
+ correlationid: string;
250
+ }
251
+ export declare function executeDeallocateRequestSerializer(item: ExecuteDeallocateRequest): Record<string, unknown>;
252
+ /** The ExecuteHibernateRequest request for executeHibernate operations */
253
+ export interface ExecuteHibernateRequest {
254
+ /** The execution parameters for the request */
255
+ executionParameters: ExecutionParameters;
256
+ /** The resources for the request */
257
+ resources: Resources;
258
+ /** Correlationid item */
259
+ correlationid: string;
260
+ }
261
+ export declare function executeHibernateRequestSerializer(item: ExecuteHibernateRequest): Record<string, unknown>;
262
+ /** The ExecuteStartRequest request for executeStart operations */
263
+ export interface ExecuteStartRequest {
264
+ /** The execution parameters for the request */
265
+ executionParameters: ExecutionParameters;
266
+ /** The resources for the request */
267
+ resources: Resources;
268
+ /** Correlationid item */
269
+ correlationid: string;
270
+ }
271
+ export declare function executeStartRequestSerializer(item: ExecuteStartRequest): Record<string, unknown>;
272
+ /** This is the request to get operation status using operationids */
273
+ export interface GetOperationStatusRequest {
274
+ /** The list of operation ids to get the status of */
275
+ operationIds: string[];
276
+ /** Correlationid item */
277
+ correlationid: string;
278
+ }
279
+ export declare function getOperationStatusRequestSerializer(item: GetOperationStatusRequest): Record<string, unknown>;
280
+ /** This is the response from a get operations status request */
281
+ export interface GetOperationStatusResponse {
282
+ /** An array of resource operations based on their operation ids */
283
+ results: ResourceOperation[];
284
+ }
285
+ /** This is the request to cancel running operations in scheduled actions using the operation ids */
286
+ export interface CancelOperationsRequest {
287
+ /** The list of operation ids to cancel operations on */
288
+ operationIds: string[];
289
+ /** Correlationid item */
290
+ correlationid: string;
291
+ }
292
+ export declare function cancelOperationsRequestSerializer(item: CancelOperationsRequest): Record<string, unknown>;
293
+ /** This is the response from a cancel operations request */
294
+ export interface CancelOperationsResponse {
295
+ /** An array of resource operations that were successfully cancelled */
296
+ results: ResourceOperation[];
297
+ }
298
+ /** This is the request to get errors per vm operations */
299
+ export interface GetOperationErrorsRequest {
300
+ /** The list of operation ids to query errors of */
301
+ operationIds: string[];
302
+ }
303
+ export declare function getOperationErrorsRequestSerializer(item: GetOperationErrorsRequest): Record<string, unknown>;
304
+ /** This is the response from a get operations errors request */
305
+ export interface GetOperationErrorsResponse {
306
+ /** An array of operationids and their corresponding errors if any */
307
+ results: OperationErrorsResult[];
308
+ }
309
+ /** This is the first level of operation errors from the request when clients get errors per vm operation */
310
+ export interface OperationErrorsResult {
311
+ /** The operationId identifying a vm operation */
312
+ operationId?: string;
313
+ /** The creation time of the error result */
314
+ creationTime?: string;
315
+ /** The activation time of a vm operation */
316
+ activationTime?: string;
317
+ /** The completion time of the operation if the operation was completed */
318
+ completedAt?: string;
319
+ /** A list of errors associated with the operationid */
320
+ operationErrors?: OperationErrorDetails[];
321
+ /** Request level error code */
322
+ requestErrorCode?: string;
323
+ /** Request level error details */
324
+ requestErrorDetails?: string;
325
+ }
326
+ /** This defines a list of operation errors associated with a unique operationId */
327
+ export interface OperationErrorDetails {
328
+ /** The error code of the operation */
329
+ errorCode: string;
330
+ /** The error details of the operation */
331
+ errorDetails: string;
332
+ /** The timestamp of the error occurence */
333
+ timeStamp: string;
334
+ /** CRP operationid of the operation for deeper analysis */
335
+ crpOperationId: string;
336
+ }
337
+ /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
338
+ export interface _OperationListResult {
339
+ /** The Operation items on this page */
340
+ value: Operation[];
341
+ /** The link to the next page of items */
342
+ nextLink?: string;
343
+ }
344
+ /** Details of a REST API operation, returned from the Resource Provider Operations API */
345
+ export interface Operation {
346
+ /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */
347
+ readonly name?: string;
348
+ /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */
349
+ readonly isDataAction?: boolean;
350
+ /** Localized display information for this particular operation. */
351
+ readonly display?: OperationDisplay;
352
+ /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
353
+ readonly origin?: Origin;
354
+ /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
355
+ actionType?: ActionType;
356
+ }
357
+ /** Localized display information for and operation. */
358
+ export interface OperationDisplay {
359
+ /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */
360
+ readonly provider?: string;
361
+ /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */
362
+ readonly resource?: string;
363
+ /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */
364
+ readonly operation?: string;
365
+ /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */
366
+ readonly description?: string;
367
+ }
368
+ /** Known values of {@link Origin} that the service accepts. */
369
+ export declare enum KnownOrigin {
370
+ /** user */
371
+ User = "user",
372
+ /** system */
373
+ System = "system",
374
+ /** user,system */
375
+ UserSystem = "user,system"
376
+ }
377
+ /**
378
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" \
379
+ * {@link KnownOrigin} can be used interchangeably with Origin,
380
+ * this enum contains the known values that the service supports.
381
+ * ### Known values supported by the service
382
+ * **user** \
383
+ * **system** \
384
+ * **user,system**
385
+ */
386
+ export type Origin = string;
387
+ /** Known values of {@link ActionType} that the service accepts. */
388
+ export declare enum KnownActionType {
389
+ /** Internal */
390
+ Internal = "Internal"
391
+ }
392
+ /**
393
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. \
394
+ * {@link KnownActionType} can be used interchangeably with ActionType,
395
+ * this enum contains the known values that the service supports.
396
+ * ### Known values supported by the service
397
+ * **Internal**
398
+ */
399
+ export type ActionType = string;
400
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3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AAC1F,MAAM,WAAW,SAAS;IACxB,sLAAsL;IACtL,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,6JAA6J;IAC7J,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,mEAAmE;IACnE,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC;IACpC,2IAA2I;IAC3I,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,gHAAgH;IAChH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,uDAAuD;AACvD,MAAM,WAAW,gBAAgB;IAC/B,8HAA8H;IAC9H,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,yIAAyI;IACzI,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,0JAA0J;IAC1J,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,6GAA6G;IAC7G,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,+DAA+D;AAC/D,oBAAY,WAAW;IACrB,WAAW;IACX,IAAI,SAAS;IACb,aAAa;IACb,MAAM,WAAW;IACjB,kBAAkB;IAClB,UAAU,gBAAgB;CAC3B;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B,mEAAmE;AACnE,oBAAY,eAAe;IACzB,eAAe;IACf,QAAQ,aAAa;CACtB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC"}
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.KnownActionType = exports.KnownOrigin = exports.KnownOperationState = exports.KnownResourceOperationType = exports.KnownOptimizationPreference = exports.KnownDeadlineType = void 0;
6
+ exports.submitDeallocateRequestSerializer = submitDeallocateRequestSerializer;
7
+ exports.scheduleSerializer = scheduleSerializer;
8
+ exports.executionParametersSerializer = executionParametersSerializer;
9
+ exports.retryPolicySerializer = retryPolicySerializer;
10
+ exports.resourcesSerializer = resourcesSerializer;
11
+ exports.submitHibernateRequestSerializer = submitHibernateRequestSerializer;
12
+ exports.submitStartRequestSerializer = submitStartRequestSerializer;
13
+ exports.executeDeallocateRequestSerializer = executeDeallocateRequestSerializer;
14
+ exports.executeHibernateRequestSerializer = executeHibernateRequestSerializer;
15
+ exports.executeStartRequestSerializer = executeStartRequestSerializer;
16
+ exports.getOperationStatusRequestSerializer = getOperationStatusRequestSerializer;
17
+ exports.cancelOperationsRequestSerializer = cancelOperationsRequestSerializer;
18
+ exports.getOperationErrorsRequestSerializer = getOperationErrorsRequestSerializer;
19
+ function submitDeallocateRequestSerializer(item) {
20
+ return {
21
+ schedule: scheduleSerializer(item.schedule),
22
+ executionParameters: executionParametersSerializer(item.executionParameters),
23
+ resources: resourcesSerializer(item.resources),
24
+ correlationid: item["correlationid"],
25
+ };
26
+ }
27
+ function scheduleSerializer(item) {
28
+ return {
29
+ deadLine: item["deadLine"],
30
+ timeZone: item["timeZone"],
31
+ deadlineType: item["deadlineType"],
32
+ };
33
+ }
34
+ /** Known values of {@link DeadlineType} that the service accepts. */
35
+ var KnownDeadlineType;
36
+ (function (KnownDeadlineType) {
37
+ /** Unknown */
38
+ KnownDeadlineType["Unknown"] = "Unknown";
39
+ /** InitiateAt */
40
+ KnownDeadlineType["InitiateAt"] = "InitiateAt";
41
+ /** CompleteBy */
42
+ KnownDeadlineType["CompleteBy"] = "CompleteBy";
43
+ })(KnownDeadlineType || (exports.KnownDeadlineType = KnownDeadlineType = {}));
44
+ function executionParametersSerializer(item) {
45
+ return {
46
+ optimizationPreference: item["optimizationPreference"],
47
+ retryPolicy: !item.retryPolicy ? item.retryPolicy : retryPolicySerializer(item.retryPolicy),
48
+ };
49
+ }
50
+ /** Known values of {@link OptimizationPreference} that the service accepts. */
51
+ var KnownOptimizationPreference;
52
+ (function (KnownOptimizationPreference) {
53
+ /** Cost */
54
+ KnownOptimizationPreference["Cost"] = "Cost";
55
+ /** Availability */
56
+ KnownOptimizationPreference["Availability"] = "Availability";
57
+ /** CostAvailabilityBalanced */
58
+ KnownOptimizationPreference["CostAvailabilityBalanced"] = "CostAvailabilityBalanced";
59
+ })(KnownOptimizationPreference || (exports.KnownOptimizationPreference = KnownOptimizationPreference = {}));
60
+ function retryPolicySerializer(item) {
61
+ return {
62
+ retryCount: item["retryCount"],
63
+ retryWindowInMinutes: item["retryWindowInMinutes"],
64
+ };
65
+ }
66
+ function resourcesSerializer(item) {
67
+ return {
68
+ ids: item["ids"],
69
+ };
70
+ }
71
+ /** Known values of {@link ResourceOperationType} that the service accepts. */
72
+ var KnownResourceOperationType;
73
+ (function (KnownResourceOperationType) {
74
+ /** Unknown */
75
+ KnownResourceOperationType["Unknown"] = "Unknown";
76
+ /** Start */
77
+ KnownResourceOperationType["Start"] = "Start";
78
+ /** Deallocate */
79
+ KnownResourceOperationType["Deallocate"] = "Deallocate";
80
+ /** Hibernate */
81
+ KnownResourceOperationType["Hibernate"] = "Hibernate";
82
+ })(KnownResourceOperationType || (exports.KnownResourceOperationType = KnownResourceOperationType = {}));
83
+ /** Known values of {@link OperationState} that the service accepts. */
84
+ var KnownOperationState;
85
+ (function (KnownOperationState) {
86
+ /** Unknown */
87
+ KnownOperationState["Unknown"] = "Unknown";
88
+ /** PendingScheduling */
89
+ KnownOperationState["PendingScheduling"] = "PendingScheduling";
90
+ /** Scheduled */
91
+ KnownOperationState["Scheduled"] = "Scheduled";
92
+ /** PendingExecution */
93
+ KnownOperationState["PendingExecution"] = "PendingExecution";
94
+ /** Executing */
95
+ KnownOperationState["Executing"] = "Executing";
96
+ /** Succeeded */
97
+ KnownOperationState["Succeeded"] = "Succeeded";
98
+ /** Failed */
99
+ KnownOperationState["Failed"] = "Failed";
100
+ /** Cancelled */
101
+ KnownOperationState["Cancelled"] = "Cancelled";
102
+ /** Blocked */
103
+ KnownOperationState["Blocked"] = "Blocked";
104
+ })(KnownOperationState || (exports.KnownOperationState = KnownOperationState = {}));
105
+ function submitHibernateRequestSerializer(item) {
106
+ return {
107
+ schedule: scheduleSerializer(item.schedule),
108
+ executionParameters: executionParametersSerializer(item.executionParameters),
109
+ resources: resourcesSerializer(item.resources),
110
+ correlationid: item["correlationid"],
111
+ };
112
+ }
113
+ function submitStartRequestSerializer(item) {
114
+ return {
115
+ schedule: scheduleSerializer(item.schedule),
116
+ executionParameters: executionParametersSerializer(item.executionParameters),
117
+ resources: resourcesSerializer(item.resources),
118
+ correlationid: item["correlationid"],
119
+ };
120
+ }
121
+ function executeDeallocateRequestSerializer(item) {
122
+ return {
123
+ executionParameters: executionParametersSerializer(item.executionParameters),
124
+ resources: resourcesSerializer(item.resources),
125
+ correlationid: item["correlationid"],
126
+ };
127
+ }
128
+ function executeHibernateRequestSerializer(item) {
129
+ return {
130
+ executionParameters: executionParametersSerializer(item.executionParameters),
131
+ resources: resourcesSerializer(item.resources),
132
+ correlationid: item["correlationid"],
133
+ };
134
+ }
135
+ function executeStartRequestSerializer(item) {
136
+ return {
137
+ executionParameters: executionParametersSerializer(item.executionParameters),
138
+ resources: resourcesSerializer(item.resources),
139
+ correlationid: item["correlationid"],
140
+ };
141
+ }
142
+ function getOperationStatusRequestSerializer(item) {
143
+ return {
144
+ operationIds: item["operationIds"],
145
+ correlationid: item["correlationid"],
146
+ };
147
+ }
148
+ function cancelOperationsRequestSerializer(item) {
149
+ return {
150
+ operationIds: item["operationIds"],
151
+ correlationid: item["correlationid"],
152
+ };
153
+ }
154
+ function getOperationErrorsRequestSerializer(item) {
155
+ return {
156
+ operationIds: item["operationIds"],
157
+ };
158
+ }
159
+ /** Known values of {@link Origin} that the service accepts. */
160
+ var KnownOrigin;
161
+ (function (KnownOrigin) {
162
+ /** user */
163
+ KnownOrigin["User"] = "user";
164
+ /** system */
165
+ KnownOrigin["System"] = "system";
166
+ /** user,system */
167
+ KnownOrigin["UserSystem"] = "user,system";
168
+ })(KnownOrigin || (exports.KnownOrigin = KnownOrigin = {}));
169
+ /** Known values of {@link ActionType} that the service accepts. */
170
+ var KnownActionType;
171
+ (function (KnownActionType) {
172
+ /** Internal */
173
+ KnownActionType["Internal"] = "Internal";
174
+ })(KnownActionType || (exports.KnownActionType = KnownActionType = {}));
175
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAclC,8EASC;AAYD,gDAMC;AA+BD,sEAKC;AA+BD,sDAKC;AAQD,kDAIC;AAuID,4EASC;AA0BD,oEAOC;AAwBD,gFAQC;AAYD,8EAQC;AAYD,sEAMC;AAUD,kFAOC;AAgBD,8EAOC;AAcD,kFAMC;AAlaD,SAAgB,iCAAiC,CAC/C,IAA6B;IAE7B,OAAO;QACL,QAAQ,EAAE,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC3C,mBAAmB,EAAE,6BAA6B,CAAC,IAAI,CAAC,mBAAmB,CAAC;QAC5E,SAAS,EAAE,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC;QAC9C,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;KACrC,CAAC;AACJ,CAAC;AAYD,SAAgB,kBAAkB,CAAC,IAAc;IAC/C,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;KACnC,CAAC;AACJ,CAAC;AAED,qEAAqE;AACrE,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,cAAc;IACd,wCAAmB,CAAA;IACnB,iBAAiB;IACjB,8CAAyB,CAAA;IACzB,iBAAiB;IACjB,8CAAyB,CAAA;AAC3B,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,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B,CAAC,IAAyB;IACrE,OAAO;QACL,mBAAmB,EAAE,6BAA6B,CAAC,IAAI,CAAC,mBAAmB,CAAC;QAC5E,SAAS,EAAE,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC;QAC9C,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;KACrC,CAAC;AACJ,CAAC;AAUD,SAAgB,mCAAmC,CACjD,IAA+B;IAE/B,OAAO;QACL,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;KACrC,CAAC;AACJ,CAAC;AAgBD,SAAgB,iCAAiC,CAC/C,IAA6B;IAE7B,OAAO;QACL,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;KACrC,CAAC;AACJ,CAAC;AAcD,SAAgB,mCAAmC,CACjD,IAA+B;IAE/B,OAAO;QACL,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;KACnC,CAAC;AACJ,CAAC;AAwED,+DAA+D;AAC/D,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,WAAW;IACX,4BAAa,CAAA;IACb,aAAa;IACb,gCAAiB,CAAA;IACjB,kBAAkB;IAClB,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAaD,mEAAmE;AACnE,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,eAAe;IACf,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** The deallocate request for resources */\nexport interface SubmitDeallocateRequest {\n /** The schedule for the request */\n schedule: Schedule;\n /** The execution parameters for the request */\n executionParameters: ExecutionParameters;\n /** The resources for the request */\n resources: Resources;\n /** Correlationid item */\n correlationid: string;\n}\n\nexport function submitDeallocateRequestSerializer(\n item: SubmitDeallocateRequest,\n): Record<string, unknown> {\n return {\n schedule: scheduleSerializer(item.schedule),\n executionParameters: executionParametersSerializer(item.executionParameters),\n resources: resourcesSerializer(item.resources),\n correlationid: item[\"correlationid\"],\n };\n}\n\n/** The schedule details for the user request */\nexport interface Schedule {\n /** The deadline for the operation */\n deadLine: string;\n /** The timezone for the operation */\n timeZone: string;\n /** The deadlinetype of the operation, this can either be InitiateAt or CompleteBy */\n deadlineType: DeadlineType;\n}\n\nexport function scheduleSerializer(item: Schedule): Record<string, unknown> {\n return {\n deadLine: item[\"deadLine\"],\n timeZone: item[\"timeZone\"],\n deadlineType: item[\"deadlineType\"],\n };\n}\n\n/** Known values of {@link DeadlineType} that the service accepts. */\nexport enum KnownDeadlineType {\n /** Unknown */\n Unknown = \"Unknown\",\n /** InitiateAt */\n InitiateAt = \"InitiateAt\",\n /** CompleteBy */\n CompleteBy = \"CompleteBy\",\n}\n\n/**\n * The types of deadlines supported by ScheduledActions \\\n * {@link KnownDeadlineType} can be used interchangeably with DeadlineType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Unknown** \\\n * **InitiateAt** \\\n * **CompleteBy**\n */\nexport type DeadlineType = string;\n\n/** Extra details needed to run the user's request */\nexport interface ExecutionParameters {\n /** Details that could optimize the user's request */\n optimizationPreference?: OptimizationPreference;\n /** Retry policy the user can pass */\n retryPolicy?: RetryPolicy;\n}\n\nexport function executionParametersSerializer(item: ExecutionParameters): Record<string, unknown> {\n return {\n optimizationPreference: item[\"optimizationPreference\"],\n retryPolicy: !item.retryPolicy ? item.retryPolicy : retryPolicySerializer(item.retryPolicy),\n };\n}\n\n/** Known values of {@link OptimizationPreference} that the service accepts. */\nexport enum KnownOptimizationPreference {\n /** Cost */\n Cost = \"Cost\",\n /** Availability */\n Availability = \"Availability\",\n /** CostAvailabilityBalanced */\n CostAvailabilityBalanced = \"CostAvailabilityBalanced\",\n}\n\n/**\n * The preferences customers can select to optimize their requests to ScheduledActions \\\n * {@link KnownOptimizationPreference} can be used interchangeably with OptimizationPreference,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Cost** \\\n * **Availability** \\\n * **CostAvailabilityBalanced**\n */\nexport type OptimizationPreference = string;\n\n/** The retry policy for the user request */\nexport interface RetryPolicy {\n /** Retry count for user request */\n retryCount?: number;\n /** Retry window in minutes for user request */\n retryWindowInMinutes?: number;\n}\n\nexport function retryPolicySerializer(item: RetryPolicy): Record<string, unknown> {\n return {\n retryCount: item[\"retryCount\"],\n retryWindowInMinutes: item[\"retryWindowInMinutes\"],\n };\n}\n\n/** The resources needed for the user request */\nexport interface Resources {\n /** The resource ids used for the request */\n ids: string[];\n}\n\nexport function resourcesSerializer(item: Resources): Record<string, unknown> {\n return {\n ids: item[\"ids\"],\n };\n}\n\n/** The response from a deallocate request */\nexport interface DeallocateResourceOperationResponse {\n /** The description of the operation response */\n description: string;\n /** The type of resources used in the deallocate request eg virtual machines */\n type: string;\n /** The location of the deallocate request eg westus */\n location: string;\n /** The results from the deallocate request if no errors exist */\n results?: ResourceOperation[];\n}\n\n/** High level response from an operation on a resource */\nexport interface ResourceOperation {\n /** Unique identifier for the resource involved in the operation, eg ArmId */\n resourceId?: string;\n /** Resource level error code if it exists */\n errorCode?: string;\n /** Resource level error details if they exist */\n errorDetails?: string;\n /** Details of the operation performed on a resource */\n operation?: ResourceOperationDetails;\n}\n\n/** The details of a response from an operation on a resource */\nexport interface ResourceOperationDetails {\n /** Operation identifier for the unique operation */\n operationId: string;\n /** Unique identifier for the resource involved in the operation, eg ArmId */\n resourceId: string;\n /** Type of operation performed on the resources */\n opType: ResourceOperationType;\n /** Subscription id attached to the request */\n subscriptionId: string;\n /** Deadline for the operation */\n deadline: string;\n /** Type of deadline of the operation */\n deadlineType: DeadlineType;\n /** Current state of the operation */\n state: OperationState;\n /** Timezone for the operation */\n timeZone?: string;\n /** Operation level errors if they exist */\n resourceOperationError?: ResourceOperationError;\n /** Time the operation was complete if errors are null */\n completedAt?: string;\n /** Retry policy the user can pass */\n retryPolicy?: RetryPolicy;\n}\n\n/** Known values of {@link ResourceOperationType} that the service accepts. */\nexport enum KnownResourceOperationType {\n /** Unknown */\n Unknown = \"Unknown\",\n /** Start */\n Start = \"Start\",\n /** Deallocate */\n Deallocate = \"Deallocate\",\n /** Hibernate */\n Hibernate = \"Hibernate\",\n}\n\n/**\n * The kind of operation types that can be performed on resources using ScheduledActions \\\n * {@link KnownResourceOperationType} can be used interchangeably with ResourceOperationType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Unknown** \\\n * **Start** \\\n * **Deallocate** \\\n * **Hibernate**\n */\nexport type ResourceOperationType = string;\n\n/** Known values of {@link OperationState} that the service accepts. */\nexport enum KnownOperationState {\n /** Unknown */\n Unknown = \"Unknown\",\n /** PendingScheduling */\n PendingScheduling = \"PendingScheduling\",\n /** Scheduled */\n Scheduled = \"Scheduled\",\n /** PendingExecution */\n PendingExecution = \"PendingExecution\",\n /** Executing */\n Executing = \"Executing\",\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\",\n /** Cancelled */\n Cancelled = \"Cancelled\",\n /** Blocked */\n Blocked = \"Blocked\",\n}\n\n/**\n * Values that define the states of operations in Scheduled Actions \\\n * {@link KnownOperationState} can be used interchangeably with OperationState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Unknown** \\\n * **PendingScheduling** \\\n * **Scheduled** \\\n * **PendingExecution** \\\n * **Executing** \\\n * **Succeeded** \\\n * **Failed** \\\n * **Cancelled** \\\n * **Blocked**\n */\nexport type OperationState = string;\n\n/** These describe errors that occur at the resource level */\nexport interface ResourceOperationError {\n /** Code for the error eg 404, 500 */\n errorCode: string;\n /** Detailed message about the error */\n errorDetails: string;\n}\n\n/** This is the request for hibernate */\nexport interface SubmitHibernateRequest {\n /** The schedule for the request */\n schedule: Schedule;\n /** The execution parameters for the request */\n executionParameters: ExecutionParameters;\n /** The resources for the request */\n resources: Resources;\n /** Correlationid item */\n correlationid: string;\n}\n\nexport function submitHibernateRequestSerializer(\n item: SubmitHibernateRequest,\n): Record<string, unknown> {\n return {\n schedule: scheduleSerializer(item.schedule),\n executionParameters: executionParametersSerializer(item.executionParameters),\n resources: resourcesSerializer(item.resources),\n correlationid: item[\"correlationid\"],\n };\n}\n\n/** The response from a Hibernate request */\nexport interface HibernateResourceOperationResponse {\n /** The description of the operation response */\n description: string;\n /** The type of resources used in the Hibernate request eg virtual machines */\n type: string;\n /** The location of the Hibernate request eg westus */\n location: string;\n /** The results from the Hibernate request if no errors exist */\n results?: ResourceOperation[];\n}\n\n/** This is the request for start */\nexport interface SubmitStartRequest {\n /** The schedule for the request */\n schedule: Schedule;\n /** The execution parameters for the request */\n executionParameters: ExecutionParameters;\n /** The resources for the request */\n resources: Resources;\n /** Correlationid item */\n correlationid: string;\n}\n\nexport function submitStartRequestSerializer(item: SubmitStartRequest): Record<string, unknown> {\n return {\n schedule: scheduleSerializer(item.schedule),\n executionParameters: executionParametersSerializer(item.executionParameters),\n resources: resourcesSerializer(item.resources),\n correlationid: item[\"correlationid\"],\n };\n}\n\n/** The response from a start request */\nexport interface StartResourceOperationResponse {\n /** The description of the operation response */\n description: string;\n /** The type of resources used in the start request eg virtual machines */\n type: string;\n /** The location of the start request eg westus */\n location: string;\n /** The results from the start request if no errors exist */\n results?: ResourceOperation[];\n}\n\n/** The ExecuteDeallocateRequest request for executeDeallocate operations */\nexport interface ExecuteDeallocateRequest {\n /** The execution parameters for the request */\n executionParameters: ExecutionParameters;\n /** The resources for the request */\n resources: Resources;\n /** Correlationid item */\n correlationid: string;\n}\n\nexport function executeDeallocateRequestSerializer(\n item: ExecuteDeallocateRequest,\n): Record<string, unknown> {\n return {\n executionParameters: executionParametersSerializer(item.executionParameters),\n resources: resourcesSerializer(item.resources),\n correlationid: item[\"correlationid\"],\n };\n}\n\n/** The ExecuteHibernateRequest request for executeHibernate operations */\nexport interface ExecuteHibernateRequest {\n /** The execution parameters for the request */\n executionParameters: ExecutionParameters;\n /** The resources for the request */\n resources: Resources;\n /** Correlationid item */\n correlationid: string;\n}\n\nexport function executeHibernateRequestSerializer(\n item: ExecuteHibernateRequest,\n): Record<string, unknown> {\n return {\n executionParameters: executionParametersSerializer(item.executionParameters),\n resources: resourcesSerializer(item.resources),\n correlationid: item[\"correlationid\"],\n };\n}\n\n/** The ExecuteStartRequest request for executeStart operations */\nexport interface ExecuteStartRequest {\n /** The execution parameters for the request */\n executionParameters: ExecutionParameters;\n /** The resources for the request */\n resources: Resources;\n /** Correlationid item */\n correlationid: string;\n}\n\nexport function executeStartRequestSerializer(item: ExecuteStartRequest): Record<string, unknown> {\n return {\n executionParameters: executionParametersSerializer(item.executionParameters),\n resources: resourcesSerializer(item.resources),\n correlationid: item[\"correlationid\"],\n };\n}\n\n/** This is the request to get operation status using operationids */\nexport interface GetOperationStatusRequest {\n /** The list of operation ids to get the status of */\n operationIds: string[];\n /** Correlationid item */\n correlationid: string;\n}\n\nexport function getOperationStatusRequestSerializer(\n item: GetOperationStatusRequest,\n): Record<string, unknown> {\n return {\n operationIds: item[\"operationIds\"],\n correlationid: item[\"correlationid\"],\n };\n}\n\n/** This is the response from a get operations status request */\nexport interface GetOperationStatusResponse {\n /** An array of resource operations based on their operation ids */\n results: ResourceOperation[];\n}\n\n/** This is the request to cancel running operations in scheduled actions using the operation ids */\nexport interface CancelOperationsRequest {\n /** The list of operation ids to cancel operations on */\n operationIds: string[];\n /** Correlationid item */\n correlationid: string;\n}\n\nexport function cancelOperationsRequestSerializer(\n item: CancelOperationsRequest,\n): Record<string, unknown> {\n return {\n operationIds: item[\"operationIds\"],\n correlationid: item[\"correlationid\"],\n };\n}\n\n/** This is the response from a cancel operations request */\nexport interface CancelOperationsResponse {\n /** An array of resource operations that were successfully cancelled */\n results: ResourceOperation[];\n}\n\n/** This is the request to get errors per vm operations */\nexport interface GetOperationErrorsRequest {\n /** The list of operation ids to query errors of */\n operationIds: string[];\n}\n\nexport function getOperationErrorsRequestSerializer(\n item: GetOperationErrorsRequest,\n): Record<string, unknown> {\n return {\n operationIds: item[\"operationIds\"],\n };\n}\n\n/** This is the response from a get operations errors request */\nexport interface GetOperationErrorsResponse {\n /** An array of operationids and their corresponding errors if any */\n results: OperationErrorsResult[];\n}\n\n/** This is the first level of operation errors from the request when clients get errors per vm operation */\nexport interface OperationErrorsResult {\n /** The operationId identifying a vm operation */\n operationId?: string;\n /** The creation time of the error result */\n creationTime?: string;\n /** The activation time of a vm operation */\n activationTime?: string;\n /** The completion time of the operation if the operation was completed */\n completedAt?: string;\n /** A list of errors associated with the operationid */\n operationErrors?: OperationErrorDetails[];\n /** Request level error code */\n requestErrorCode?: string;\n /** Request level error details */\n requestErrorDetails?: string;\n}\n\n/** This defines a list of operation errors associated with a unique operationId */\nexport interface OperationErrorDetails {\n /** The error code of the operation */\n errorCode: string;\n /** The error details of the operation */\n errorDetails: string;\n /** The timestamp of the error occurence */\n timeStamp: string;\n /** CRP operationid of the operation for deeper analysis */\n crpOperationId: string;\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n readonly display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n actionType?: ActionType;\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\n/** Known values of {@link Origin} that the service accepts. */\nexport enum KnownOrigin {\n /** user */\n User = \"user\",\n /** system */\n System = \"system\",\n /** user,system */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user** \\\n * **system** \\\n * **user,system**\n */\nexport type Origin = string;\n\n/** Known values of {@link ActionType} that the service accepts. */\nexport enum KnownActionType {\n /** Internal */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**\n */\nexport type ActionType = string;\n"]}