@azure/arm-commitmentplans 1.3.1 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +1794 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/azureMLCommitmentPlansManagementClient.d.ts +22 -0
  9. package/dist-esm/src/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureMLCommitmentPlansManagementClient.js +55 -0
  11. package/dist-esm/src/azureMLCommitmentPlansManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +522 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +27 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +24 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +352 -337
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +15 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +125 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/commitmentAssociations.d.ts +55 -0
  29. package/dist-esm/src/operations/commitmentAssociations.d.ts.map +1 -0
  30. package/dist-esm/src/operations/commitmentAssociations.js +203 -0
  31. package/dist-esm/src/operations/commitmentAssociations.js.map +1 -0
  32. package/dist-esm/src/operations/commitmentPlans.d.ts +84 -0
  33. package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -0
  34. package/dist-esm/src/operations/commitmentPlans.js +332 -0
  35. package/dist-esm/src/operations/commitmentPlans.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +4 -5
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/operations.d.ts +26 -0
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/operations.js +87 -0
  43. package/dist-esm/src/operations/operations.js.map +1 -0
  44. package/dist-esm/src/operations/skus.d.ts +26 -0
  45. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  46. package/dist-esm/src/operations/skus.js +87 -0
  47. package/dist-esm/src/operations/skus.js.map +1 -0
  48. package/dist-esm/src/operations/usageHistory.d.ts +38 -0
  49. package/dist-esm/src/operations/usageHistory.d.ts.map +1 -0
  50. package/dist-esm/src/operations/usageHistory.js +131 -0
  51. package/dist-esm/src/operations/usageHistory.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts +30 -0
  53. package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/commitmentAssociations.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/commitmentAssociations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts +48 -0
  57. package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/commitmentPlans.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/commitmentPlans.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  61. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  63. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  65. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/skus.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/usageHistory.d.ts +13 -0
  73. package/dist-esm/src/operationsInterfaces/usageHistory.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/usageHistory.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/usageHistory.js.map +1 -0
  76. package/dist-esm/test/sampleTest.d.ts +2 -0
  77. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  78. package/dist-esm/test/sampleTest.js +40 -0
  79. package/dist-esm/test/sampleTest.js.map +1 -0
  80. package/package.json +74 -33
  81. package/review/arm-commitmentplans.api.md +405 -0
  82. package/rollup.config.js +184 -27
  83. package/src/azureMLCommitmentPlansManagementClient.ts +82 -41
  84. package/src/index.ts +12 -0
  85. package/src/models/index.ts +388 -745
  86. package/src/models/mappers.ts +354 -336
  87. package/src/models/parameters.ts +87 -35
  88. package/src/operations/commitmentAssociations.ts +183 -174
  89. package/src/operations/commitmentPlans.ts +277 -340
  90. package/src/operations/index.ts +4 -5
  91. package/src/operations/operations.ts +95 -0
  92. package/src/operations/skus.ts +65 -48
  93. package/src/operations/usageHistory.ts +135 -89
  94. package/src/operationsInterfaces/commitmentAssociations.ts +62 -0
  95. package/src/operationsInterfaces/commitmentPlans.ts +92 -0
  96. package/src/operationsInterfaces/index.ts +13 -0
  97. package/src/operationsInterfaces/operations.ts +22 -0
  98. package/src/operationsInterfaces/skus.ts +22 -0
  99. package/src/operationsInterfaces/usageHistory.ts +26 -0
  100. package/tsconfig.json +6 -5
  101. package/types/arm-commitmentplans.d.ts +706 -0
  102. package/types/tsdoc-metadata.json +11 -0
  103. package/dist/arm-commitmentplans.js +0 -1659
  104. package/dist/arm-commitmentplans.js.map +0 -1
  105. package/dist/arm-commitmentplans.min.js +0 -1
  106. package/dist/arm-commitmentplans.min.js.map +0 -1
  107. package/esm/azureMLCommitmentPlansManagementClient.d.ts +0 -27
  108. package/esm/azureMLCommitmentPlansManagementClient.d.ts.map +0 -1
  109. package/esm/azureMLCommitmentPlansManagementClient.js +0 -41
  110. package/esm/azureMLCommitmentPlansManagementClient.js.map +0 -1
  111. package/esm/azureMLCommitmentPlansManagementClientContext.d.ts +0 -22
  112. package/esm/azureMLCommitmentPlansManagementClientContext.d.ts.map +0 -1
  113. package/esm/azureMLCommitmentPlansManagementClientContext.js +0 -61
  114. package/esm/azureMLCommitmentPlansManagementClientContext.js.map +0 -1
  115. package/esm/models/commitmentAssociationsMappers.d.ts +0 -2
  116. package/esm/models/commitmentAssociationsMappers.d.ts.map +0 -1
  117. package/esm/models/commitmentAssociationsMappers.js +0 -11
  118. package/esm/models/commitmentAssociationsMappers.js.map +0 -1
  119. package/esm/models/commitmentPlansMappers.d.ts +0 -2
  120. package/esm/models/commitmentPlansMappers.d.ts.map +0 -1
  121. package/esm/models/commitmentPlansMappers.js +0 -11
  122. package/esm/models/commitmentPlansMappers.js.map +0 -1
  123. package/esm/models/index.d.ts +0 -901
  124. package/esm/models/index.d.ts.map +0 -1
  125. package/esm/models/index.js +0 -10
  126. package/esm/models/index.js.map +0 -1
  127. package/esm/models/mappers.d.ts +0 -23
  128. package/esm/models/mappers.d.ts.map +0 -1
  129. package/esm/models/mappers.js.map +0 -1
  130. package/esm/models/parameters.d.ts +0 -10
  131. package/esm/models/parameters.d.ts.map +0 -1
  132. package/esm/models/parameters.js +0 -93
  133. package/esm/models/parameters.js.map +0 -1
  134. package/esm/models/skusMappers.d.ts +0 -2
  135. package/esm/models/skusMappers.d.ts.map +0 -1
  136. package/esm/models/skusMappers.js +0 -11
  137. package/esm/models/skusMappers.js.map +0 -1
  138. package/esm/models/usageHistoryMappers.d.ts +0 -2
  139. package/esm/models/usageHistoryMappers.d.ts.map +0 -1
  140. package/esm/models/usageHistoryMappers.js +0 -11
  141. package/esm/models/usageHistoryMappers.js.map +0 -1
  142. package/esm/operations/commitmentAssociations.d.ts +0 -103
  143. package/esm/operations/commitmentAssociations.d.ts.map +0 -1
  144. package/esm/operations/commitmentAssociations.js +0 -157
  145. package/esm/operations/commitmentAssociations.js.map +0 -1
  146. package/esm/operations/commitmentPlans.d.ts +0 -175
  147. package/esm/operations/commitmentPlans.d.ts.map +0 -1
  148. package/esm/operations/commitmentPlans.js +0 -273
  149. package/esm/operations/commitmentPlans.js.map +0 -1
  150. package/esm/operations/index.d.ts.map +0 -1
  151. package/esm/operations/index.js.map +0 -1
  152. package/esm/operations/skus.d.ts +0 -28
  153. package/esm/operations/skus.d.ts.map +0 -1
  154. package/esm/operations/skus.js +0 -54
  155. package/esm/operations/skus.js.map +0 -1
  156. package/esm/operations/usageHistory.d.ts +0 -52
  157. package/esm/operations/usageHistory.d.ts.map +0 -1
  158. package/esm/operations/usageHistory.js +0 -85
  159. package/esm/operations/usageHistory.js.map +0 -1
  160. package/src/azureMLCommitmentPlansManagementClientContext.ts +0 -68
  161. package/src/models/commitmentAssociationsMappers.ts +0 -24
  162. package/src/models/commitmentPlansMappers.ts +0 -24
  163. package/src/models/skusMappers.ts +0 -20
  164. package/src/models/usageHistoryMappers.ts +0 -16
@@ -1,936 +1,579 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
12
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
13
10
 
14
- export { BaseResource, CloudError };
15
-
16
-
17
- /**
18
- * @interface
19
- * An interface representing SkuCapacity.
20
- * Describes scaling information of a SKU.
21
- *
22
- */
23
- export interface SkuCapacity {
24
- /**
25
- * @member {number} [minimum] The minimum capacity.
26
- * **NOTE: This property will not be serialized. It can only be populated by
27
- * the server.**
28
- */
29
- readonly minimum?: number;
30
- /**
31
- * @member {number} [maximum] The maximum capacity that can be set.
32
- * **NOTE: This property will not be serialized. It can only be populated by
33
- * the server.**
34
- */
35
- readonly maximum?: number;
36
- /**
37
- * @member {number} [default] The default capacity.
38
- * **NOTE: This property will not be serialized. It can only be populated by
39
- * the server.**
40
- */
41
- readonly default?: number;
11
+ /** The list of REST API operations. */
12
+ export interface OperationEntityListResult {
42
13
  /**
43
- * @member {SkuCapacityScaleType} [scaleType] The scale type applicable to
44
- * the sku. Possible values include: 'Automatic', 'Manual', 'None'
45
- * **NOTE: This property will not be serialized. It can only be populated by
46
- * the server.**
14
+ * The list of operations.
15
+ * NOTE: This property will not be serialized. It can only be populated by the server.
47
16
  */
48
- readonly scaleType?: SkuCapacityScaleType;
17
+ readonly value?: OperationEntity[];
49
18
  }
50
19
 
51
- /**
52
- * @interface
53
- * An interface representing SkuCapability.
54
- * Describes The SKU capabilites object.
55
- *
56
- */
57
- export interface SkuCapability {
20
+ /** An API operation. */
21
+ export interface OperationEntity {
58
22
  /**
59
- * @member {string} [name] The capability name.
60
- * **NOTE: This property will not be serialized. It can only be populated by
61
- * the server.**
23
+ * Operation name: {provider}/{resource}/{operation}.
24
+ * NOTE: This property will not be serialized. It can only be populated by the server.
62
25
  */
63
26
  readonly name?: string;
64
- /**
65
- * @member {string} [value] The capability value.
66
- * **NOTE: This property will not be serialized. It can only be populated by
67
- * the server.**
68
- */
69
- readonly value?: string;
27
+ /** The API operation info. */
28
+ display?: OperationDisplayInfo;
70
29
  }
71
30
 
72
- /**
73
- * @interface
74
- * An interface representing SkuCost.
75
- * Describes metadata for SKU cost info.
76
- *
77
- */
78
- export interface SkuCost {
79
- /**
80
- * @member {string} [meterID] The meter used for this part of a SKU's cost.
81
- * **NOTE: This property will not be serialized. It can only be populated by
82
- * the server.**
83
- */
84
- readonly meterID?: string;
31
+ /** The API operation info. */
32
+ export interface OperationDisplayInfo {
85
33
  /**
86
- * @member {number} [quantity] The multiplier for the meter ID.
87
- * **NOTE: This property will not be serialized. It can only be populated by
88
- * the server.**
34
+ * The description of the operation.
35
+ * NOTE: This property will not be serialized. It can only be populated by the server.
89
36
  */
90
- readonly quantity?: number;
91
- /**
92
- * @member {string} [extendedUnit] The overall duration represented by the
93
- * quantity.
94
- * **NOTE: This property will not be serialized. It can only be populated by
95
- * the server.**
96
- */
97
- readonly extendedUnit?: string;
98
- }
99
-
100
- /**
101
- * @interface
102
- * An interface representing SkuRestrictions.
103
- * Describes restrictions which would prevent a SKU from being used.
104
- *
105
- */
106
- export interface SkuRestrictions {
37
+ readonly description?: string;
107
38
  /**
108
- * @member {ResourceSkuRestrictionsType} [type] The type of restrictions.
109
- * Possible values include: 'location', 'zone'
110
- * **NOTE: This property will not be serialized. It can only be populated by
111
- * the server.**
39
+ * The action that users can perform, based on their permission level.
40
+ * NOTE: This property will not be serialized. It can only be populated by the server.
112
41
  */
113
- readonly type?: ResourceSkuRestrictionsType;
42
+ readonly operation?: string;
114
43
  /**
115
- * @member {string[]} [values] The value of restrictions. If the restriction
116
- * type is set to location. This would be different locations where the SKU
117
- * is restricted.
118
- * **NOTE: This property will not be serialized. It can only be populated by
119
- * the server.**
44
+ * The service provider.
45
+ * NOTE: This property will not be serialized. It can only be populated by the server.
120
46
  */
121
- readonly values?: string[];
47
+ readonly provider?: string;
122
48
  /**
123
- * @member {ResourceSkuRestrictionsReasonCode} [reasonCode] The reason for
124
- * restriction. Possible values include: 'QuotaId',
125
- * 'NotAvailableForSubscription'
126
- * **NOTE: This property will not be serialized. It can only be populated by
127
- * the server.**
49
+ * The resource on which the operation is performed.
50
+ * NOTE: This property will not be serialized. It can only be populated by the server.
128
51
  */
129
- readonly reasonCode?: ResourceSkuRestrictionsReasonCode;
52
+ readonly resource?: string;
130
53
  }
131
54
 
132
- /**
133
- * @interface
134
- * An interface representing CatalogSku.
135
- * Details of a commitment plan SKU.
136
- *
137
- */
55
+ /** The list of commitment plan SKUs. */
56
+ export interface SkuListResult {
57
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
58
+ readonly value?: CatalogSku[];
59
+ }
60
+
61
+ /** Details of a commitment plan SKU. */
138
62
  export interface CatalogSku {
139
63
  /**
140
- * @member {string} [resourceType] Resource type name
141
- * **NOTE: This property will not be serialized. It can only be populated by
142
- * the server.**
64
+ * Resource type name
65
+ * NOTE: This property will not be serialized. It can only be populated by the server.
143
66
  */
144
67
  readonly resourceType?: string;
145
68
  /**
146
- * @member {string} [name] SKU name
147
- * **NOTE: This property will not be serialized. It can only be populated by
148
- * the server.**
69
+ * SKU name
70
+ * NOTE: This property will not be serialized. It can only be populated by the server.
149
71
  */
150
72
  readonly name?: string;
151
73
  /**
152
- * @member {string} [tier] SKU tier
153
- * **NOTE: This property will not be serialized. It can only be populated by
154
- * the server.**
74
+ * SKU tier
75
+ * NOTE: This property will not be serialized. It can only be populated by the server.
155
76
  */
156
77
  readonly tier?: string;
157
78
  /**
158
- * @member {string[]} [locations] Regions where the SKU is available.
159
- * **NOTE: This property will not be serialized. It can only be populated by
160
- * the server.**
79
+ * Regions where the SKU is available.
80
+ * NOTE: This property will not be serialized. It can only be populated by the server.
161
81
  */
162
82
  readonly locations?: string[];
163
83
  /**
164
- * @member {SkuCapacity} [capacity] SKU scaling information
165
- * **NOTE: This property will not be serialized. It can only be populated by
166
- * the server.**
84
+ * SKU scaling information
85
+ * NOTE: This property will not be serialized. It can only be populated by the server.
167
86
  */
168
87
  readonly capacity?: SkuCapacity;
169
88
  /**
170
- * @member {SkuCapability[]} [capabilities] The capability information for
171
- * the specified SKU.
172
- * **NOTE: This property will not be serialized. It can only be populated by
173
- * the server.**
89
+ * The capability information for the specified SKU.
90
+ * NOTE: This property will not be serialized. It can only be populated by the server.
174
91
  */
175
92
  readonly capabilities?: SkuCapability[];
176
93
  /**
177
- * @member {SkuCost[]} [costs] The cost information for the specified SKU.
178
- * **NOTE: This property will not be serialized. It can only be populated by
179
- * the server.**
94
+ * The cost information for the specified SKU.
95
+ * NOTE: This property will not be serialized. It can only be populated by the server.
180
96
  */
181
97
  readonly costs?: SkuCost[];
182
98
  /**
183
- * @member {SkuRestrictions[]} [restrictions] Restrictions which would
184
- * prevent a SKU from being used. This is empty if there are no restrictions.
185
- * **NOTE: This property will not be serialized. It can only be populated by
186
- * the server.**
99
+ * Restrictions which would prevent a SKU from being used. This is empty if there are no restrictions.
100
+ * NOTE: This property will not be serialized. It can only be populated by the server.
187
101
  */
188
102
  readonly restrictions?: SkuRestrictions[];
189
103
  }
190
104
 
191
- /**
192
- * @interface
193
- * An interface representing Resource.
194
- * Common properties of an ARM resource.
195
- *
196
- * @extends BaseResource
197
- */
198
- export interface Resource extends BaseResource {
199
- /**
200
- * @member {string} [id] Resource Id.
201
- * **NOTE: This property will not be serialized. It can only be populated by
202
- * the server.**
203
- */
204
- readonly id?: string;
105
+ /** Describes scaling information of a SKU. */
106
+ export interface SkuCapacity {
205
107
  /**
206
- * @member {string} [name] Resource name.
207
- * **NOTE: This property will not be serialized. It can only be populated by
208
- * the server.**
108
+ * The minimum capacity.
109
+ * NOTE: This property will not be serialized. It can only be populated by the server.
209
110
  */
210
- readonly name?: string;
111
+ readonly minimum?: number;
211
112
  /**
212
- * @member {string} location Resource location.
113
+ * The maximum capacity that can be set.
114
+ * NOTE: This property will not be serialized. It can only be populated by the server.
213
115
  */
214
- location: string;
116
+ readonly maximum?: number;
215
117
  /**
216
- * @member {string} [type] Resource type.
217
- * **NOTE: This property will not be serialized. It can only be populated by
218
- * the server.**
118
+ * The default capacity.
119
+ * NOTE: This property will not be serialized. It can only be populated by the server.
219
120
  */
220
- readonly type?: string;
121
+ readonly default?: number;
221
122
  /**
222
- * @member {{ [propertyName: string]: string }} [tags] User-defined tags for
223
- * the resource.
123
+ * The scale type applicable to the sku.
124
+ * NOTE: This property will not be serialized. It can only be populated by the server.
224
125
  */
225
- tags?: { [propertyName: string]: string };
126
+ readonly scaleType?: SkuCapacityScaleType;
226
127
  }
227
128
 
228
- /**
229
- * @interface
230
- * An interface representing CommitmentAssociationProperties.
231
- * Properties of an Azure ML commitment association.
232
- *
233
- */
234
- export interface CommitmentAssociationProperties {
235
- /**
236
- * @member {string} [associatedResourceId] The ID of the resource this
237
- * association points to, such as the ARM ID of an Azure ML web service.
238
- * **NOTE: This property will not be serialized. It can only be populated by
239
- * the server.**
240
- */
241
- readonly associatedResourceId?: string;
129
+ /** Describes The SKU capabilities object. */
130
+ export interface SkuCapability {
242
131
  /**
243
- * @member {string} [commitmentPlanId] The ARM ID of the parent Azure ML
244
- * commitment plan.
245
- * **NOTE: This property will not be serialized. It can only be populated by
246
- * the server.**
132
+ * The capability name.
133
+ * NOTE: This property will not be serialized. It can only be populated by the server.
247
134
  */
248
- readonly commitmentPlanId?: string;
135
+ readonly name?: string;
249
136
  /**
250
- * @member {Date} [creationDate] The date at which this commitment
251
- * association was created, in ISO 8601 format.
252
- * **NOTE: This property will not be serialized. It can only be populated by
253
- * the server.**
137
+ * The capability value.
138
+ * NOTE: This property will not be serialized. It can only be populated by the server.
254
139
  */
255
- readonly creationDate?: Date;
140
+ readonly value?: string;
256
141
  }
257
142
 
258
- /**
259
- * @interface
260
- * An interface representing CommitmentAssociation.
261
- * Represents the association between a commitment plan and some other
262
- * resource, such as a Machine Learning web service.
263
- *
264
- * @extends Resource
265
- */
266
- export interface CommitmentAssociation extends Resource {
143
+ /** Describes metadata for SKU cost info. */
144
+ export interface SkuCost {
267
145
  /**
268
- * @member {string} [etag] An entity tag used to enforce optimistic
269
- * concurrency.
146
+ * The meter used for this part of a SKU's cost.
147
+ * NOTE: This property will not be serialized. It can only be populated by the server.
270
148
  */
271
- etag?: string;
149
+ readonly meterID?: string;
272
150
  /**
273
- * @member {CommitmentAssociationProperties} [properties] The properties of
274
- * the commitment association resource.
151
+ * The multiplier for the meter ID.
152
+ * NOTE: This property will not be serialized. It can only be populated by the server.
275
153
  */
276
- properties?: CommitmentAssociationProperties;
154
+ readonly quantity?: number;
155
+ /**
156
+ * The overall duration represented by the quantity.
157
+ * NOTE: This property will not be serialized. It can only be populated by the server.
158
+ */
159
+ readonly extendedUnit?: string;
277
160
  }
278
161
 
279
- /**
280
- * @interface
281
- * An interface representing ResourceSku.
282
- * The SKU of a resource.
283
- *
284
- */
285
- export interface ResourceSku {
162
+ /** Describes restrictions which would prevent a SKU from being used. */
163
+ export interface SkuRestrictions {
286
164
  /**
287
- * @member {number} [capacity] The scale-out capacity of the resource. 1 is
288
- * 1x, 2 is 2x, etc. This impacts the quantities and cost of any commitment
289
- * plan resource.
165
+ * The type of restrictions.
166
+ * NOTE: This property will not be serialized. It can only be populated by the server.
290
167
  */
291
- capacity?: number;
168
+ readonly type?: ResourceSkuRestrictionsType;
292
169
  /**
293
- * @member {string} [name] The SKU name. Along with tier, uniquely identifies
294
- * the SKU.
170
+ * The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.
171
+ * NOTE: This property will not be serialized. It can only be populated by the server.
295
172
  */
296
- name?: string;
173
+ readonly values?: string[];
297
174
  /**
298
- * @member {string} [tier] The SKU tier. Along with name, uniquely identifies
299
- * the SKU.
175
+ * The reason for restriction.
176
+ * NOTE: This property will not be serialized. It can only be populated by the server.
300
177
  */
301
- tier?: string;
178
+ readonly reasonCode?: ResourceSkuRestrictionsReasonCode;
302
179
  }
303
180
 
304
- /**
305
- * @interface
306
- * An interface representing MoveCommitmentAssociationRequest.
307
- * Specifies the destination Azure ML commitment plan for a move operation.
308
- *
309
- */
310
- export interface MoveCommitmentAssociationRequest {
181
+ /** Properties of an Azure ML commitment association. */
182
+ export interface CommitmentAssociationProperties {
311
183
  /**
312
- * @member {string} [destinationPlanId] The ARM ID of the commitment plan to
313
- * re-parent the commitment association to.
184
+ * The ID of the resource this association points to, such as the ARM ID of an Azure ML web service.
185
+ * NOTE: This property will not be serialized. It can only be populated by the server.
314
186
  */
315
- destinationPlanId?: string;
316
- }
317
-
318
- /**
319
- * @interface
320
- * An interface representing CommitmentPlanPatchPayload.
321
- * The properties of a commitment plan which may be updated via PATCH.
322
- *
323
- */
324
- export interface CommitmentPlanPatchPayload {
187
+ readonly associatedResourceId?: string;
325
188
  /**
326
- * @member {{ [propertyName: string]: string }} [tags] User-defined tags for
327
- * the commitment plan.
189
+ * The ARM ID of the parent Azure ML commitment plan.
190
+ * NOTE: This property will not be serialized. It can only be populated by the server.
328
191
  */
329
- tags?: { [propertyName: string]: string };
192
+ readonly commitmentPlanId?: string;
330
193
  /**
331
- * @member {ResourceSku} [sku] The commitment plan SKU.
194
+ * The date at which this commitment association was created, in ISO 8601 format.
195
+ * NOTE: This property will not be serialized. It can only be populated by the server.
332
196
  */
333
- sku?: ResourceSku;
197
+ readonly creationDate?: Date;
334
198
  }
335
199
 
336
- /**
337
- * @interface
338
- * An interface representing PlanQuantity.
339
- * Represents the quantity a commitment plan provides of a metered resource.
340
- *
341
- */
342
- export interface PlanQuantity {
200
+ /** Common properties of an ARM resource. */
201
+ export interface Resource {
343
202
  /**
344
- * @member {number} [allowance] The quantity added to the commitment plan at
345
- * an interval specified by its allowance frequency.
346
- * **NOTE: This property will not be serialized. It can only be populated by
347
- * the server.**
203
+ * Resource Id.
204
+ * NOTE: This property will not be serialized. It can only be populated by the server.
348
205
  */
349
- readonly allowance?: number;
350
- /**
351
- * @member {number} [amount] The quantity available to the plan the last time
352
- * usage was calculated.
353
- * **NOTE: This property will not be serialized. It can only be populated by
354
- * the server.**
355
- */
356
- readonly amount?: number;
206
+ readonly id?: string;
357
207
  /**
358
- * @member {string} [includedQuantityMeter] The Azure meter for usage against
359
- * included quantities.
360
- * **NOTE: This property will not be serialized. It can only be populated by
361
- * the server.**
208
+ * Resource name.
209
+ * NOTE: This property will not be serialized. It can only be populated by the server.
362
210
  */
363
- readonly includedQuantityMeter?: string;
211
+ readonly name?: string;
212
+ /** Resource location. */
213
+ location: string;
364
214
  /**
365
- * @member {string} [overageMeter] The Azure meter for usage which exceeds
366
- * included quantities.
367
- * **NOTE: This property will not be serialized. It can only be populated by
368
- * the server.**
215
+ * Resource type.
216
+ * NOTE: This property will not be serialized. It can only be populated by the server.
369
217
  */
370
- readonly overageMeter?: string;
218
+ readonly type?: string;
219
+ /** User-defined tags for the resource. */
220
+ tags?: { [propertyName: string]: string };
371
221
  }
372
222
 
373
- /**
374
- * @interface
375
- * An interface representing CommitmentPlanProperties.
376
- * Properties of an Azure ML commitment plan.
377
- *
378
- */
223
+ /** A page of commitment association resources. */
224
+ export interface CommitmentAssociationListResult {
225
+ /** A URI to retrieve the next page of results. */
226
+ nextLink?: string;
227
+ /** The set of results for this page. */
228
+ value?: CommitmentAssociation[];
229
+ }
230
+
231
+ /** Specifies the destination Azure ML commitment plan for a move operation. */
232
+ export interface MoveCommitmentAssociationRequest {
233
+ /** The ARM ID of the commitment plan to re-parent the commitment association to. */
234
+ destinationPlanId?: string;
235
+ }
236
+
237
+ /** Properties of an Azure ML commitment plan. */
379
238
  export interface CommitmentPlanProperties {
380
239
  /**
381
- * @member {boolean} [chargeForOverage] Indicates whether usage beyond the
382
- * commitment plan's included quantities will be charged.
383
- * **NOTE: This property will not be serialized. It can only be populated by
384
- * the server.**
240
+ * Indicates whether usage beyond the commitment plan's included quantities will be charged.
241
+ * NOTE: This property will not be serialized. It can only be populated by the server.
385
242
  */
386
243
  readonly chargeForOverage?: boolean;
387
244
  /**
388
- * @member {boolean} [chargeForPlan] Indicates whether the commitment plan
389
- * will incur a charge.
390
- * **NOTE: This property will not be serialized. It can only be populated by
391
- * the server.**
245
+ * Indicates whether the commitment plan will incur a charge.
246
+ * NOTE: This property will not be serialized. It can only be populated by the server.
392
247
  */
393
248
  readonly chargeForPlan?: boolean;
394
249
  /**
395
- * @member {Date} [creationDate] The date at which this commitment plan was
396
- * created, in ISO 8601 format.
397
- * **NOTE: This property will not be serialized. It can only be populated by
398
- * the server.**
250
+ * The date at which this commitment plan was created, in ISO 8601 format.
251
+ * NOTE: This property will not be serialized. It can only be populated by the server.
399
252
  */
400
253
  readonly creationDate?: Date;
401
254
  /**
402
- * @member {{ [propertyName: string]: PlanQuantity }} [includedQuantities]
403
255
  * The included resource quantities this plan gives you.
404
- * **NOTE: This property will not be serialized. It can only be populated by
405
- * the server.**
256
+ * NOTE: This property will not be serialized. It can only be populated by the server.
406
257
  */
407
258
  readonly includedQuantities?: { [propertyName: string]: PlanQuantity };
408
259
  /**
409
- * @member {number} [maxAssociationLimit] The maximum number of commitment
410
- * associations that can be children of this commitment plan.
411
- * **NOTE: This property will not be serialized. It can only be populated by
412
- * the server.**
260
+ * The maximum number of commitment associations that can be children of this commitment plan.
261
+ * NOTE: This property will not be serialized. It can only be populated by the server.
413
262
  */
414
263
  readonly maxAssociationLimit?: number;
415
264
  /**
416
- * @member {number} [maxCapacityLimit] The maximum scale-out capacity for
417
- * this commitment plan.
418
- * **NOTE: This property will not be serialized. It can only be populated by
419
- * the server.**
265
+ * The maximum scale-out capacity for this commitment plan.
266
+ * NOTE: This property will not be serialized. It can only be populated by the server.
420
267
  */
421
268
  readonly maxCapacityLimit?: number;
422
269
  /**
423
- * @member {number} [minCapacityLimit] The minimum scale-out capacity for
424
- * this commitment plan.
425
- * **NOTE: This property will not be serialized. It can only be populated by
426
- * the server.**
270
+ * The minimum scale-out capacity for this commitment plan.
271
+ * NOTE: This property will not be serialized. It can only be populated by the server.
427
272
  */
428
273
  readonly minCapacityLimit?: number;
429
274
  /**
430
- * @member {string} [planMeter] The Azure meter which will be used to charge
431
- * for this commitment plan.
432
- * **NOTE: This property will not be serialized. It can only be populated by
433
- * the server.**
275
+ * The Azure meter which will be used to charge for this commitment plan.
276
+ * NOTE: This property will not be serialized. It can only be populated by the server.
434
277
  */
435
278
  readonly planMeter?: string;
436
279
  /**
437
- * @member {number} [refillFrequencyInDays] The frequency at which this
438
- * commitment plan's included quantities are refilled.
439
- * **NOTE: This property will not be serialized. It can only be populated by
440
- * the server.**
280
+ * The frequency at which this commitment plan's included quantities are refilled.
281
+ * NOTE: This property will not be serialized. It can only be populated by the server.
441
282
  */
442
283
  readonly refillFrequencyInDays?: number;
443
284
  /**
444
- * @member {boolean} [suspendPlanOnOverage] Indicates whether this commitment
445
- * plan will be moved into a suspended state if usage goes beyond the
446
- * commitment plan's included quantities.
447
- * **NOTE: This property will not be serialized. It can only be populated by
448
- * the server.**
285
+ * Indicates whether this commitment plan will be moved into a suspended state if usage goes beyond the commitment plan's included quantities.
286
+ * NOTE: This property will not be serialized. It can only be populated by the server.
449
287
  */
450
288
  readonly suspendPlanOnOverage?: boolean;
451
289
  }
452
290
 
453
- /**
454
- * @interface
455
- * An interface representing CommitmentPlan.
456
- * An Azure ML commitment plan resource.
457
- *
458
- * @extends Resource
459
- */
460
- export interface CommitmentPlan extends Resource {
291
+ /** Represents the quantity a commitment plan provides of a metered resource. */
292
+ export interface PlanQuantity {
461
293
  /**
462
- * @member {string} [etag] An entity tag used to enforce optimistic
463
- * concurrency.
294
+ * The quantity added to the commitment plan at an interval specified by its allowance frequency.
295
+ * NOTE: This property will not be serialized. It can only be populated by the server.
464
296
  */
465
- etag?: string;
297
+ readonly allowance?: number;
466
298
  /**
467
- * @member {CommitmentPlanProperties} [properties] The commitment plan
468
- * properties.
469
- * **NOTE: This property will not be serialized. It can only be populated by
470
- * the server.**
299
+ * The quantity available to the plan the last time usage was calculated.
300
+ * NOTE: This property will not be serialized. It can only be populated by the server.
471
301
  */
472
- readonly properties?: CommitmentPlanProperties;
302
+ readonly amount?: number;
473
303
  /**
474
- * @member {ResourceSku} [sku] The commitment plan SKU.
304
+ * The Azure meter for usage against included quantities.
305
+ * NOTE: This property will not be serialized. It can only be populated by the server.
475
306
  */
307
+ readonly includedQuantityMeter?: string;
308
+ /**
309
+ * The Azure meter for usage which exceeds included quantities.
310
+ * NOTE: This property will not be serialized. It can only be populated by the server.
311
+ */
312
+ readonly overageMeter?: string;
313
+ }
314
+
315
+ /** The SKU of a resource. */
316
+ export interface ResourceSku {
317
+ /** The scale-out capacity of the resource. 1 is 1x, 2 is 2x, etc. This impacts the quantities and cost of any commitment plan resource. */
318
+ capacity?: number;
319
+ /** The SKU name. Along with tier, uniquely identifies the SKU. */
320
+ name?: string;
321
+ /** The SKU tier. Along with name, uniquely identifies the SKU. */
322
+ tier?: string;
323
+ }
324
+
325
+ /** The properties of a commitment plan which may be updated via PATCH. */
326
+ export interface CommitmentPlanPatchPayload {
327
+ /** User-defined tags for the commitment plan. */
328
+ tags?: { [propertyName: string]: string };
329
+ /** The commitment plan SKU. */
476
330
  sku?: ResourceSku;
477
331
  }
478
332
 
479
- /**
480
- * @interface
481
- * An interface representing PlanUsageHistory.
482
- * Represents historical information about usage of the Azure resources
483
- * associated with a commitment plan.
484
- *
485
- */
333
+ /** A page of commitment plan resources. */
334
+ export interface CommitmentPlanListResult {
335
+ /** A URI to retrieve the next page of results. */
336
+ nextLink?: string;
337
+ /** The set of results for this page. */
338
+ value?: CommitmentPlan[];
339
+ }
340
+
341
+ /** A page of usage history. */
342
+ export interface PlanUsageHistoryListResult {
343
+ /** A URI to retrieve the next page of results. */
344
+ nextLink?: string;
345
+ /** The set of results for this page. */
346
+ value?: PlanUsageHistory[];
347
+ }
348
+
349
+ /** Represents historical information about usage of the Azure resources associated with a commitment plan. */
486
350
  export interface PlanUsageHistory {
487
- /**
488
- * @member {{ [propertyName: string]: number }} [planDeletionOverage] Overage
489
- * incurred as a result of deleting a commitment plan.
490
- */
351
+ /** Overage incurred as a result of deleting a commitment plan. */
491
352
  planDeletionOverage?: { [propertyName: string]: number };
492
- /**
493
- * @member {{ [propertyName: string]: number }} [planMigrationOverage]
494
- * Overage incurred as a result of migrating a commitment plan from one SKU
495
- * to another.
496
- */
353
+ /** Overage incurred as a result of migrating a commitment plan from one SKU to another. */
497
354
  planMigrationOverage?: { [propertyName: string]: number };
498
- /**
499
- * @member {{ [propertyName: string]: number }} [planQuantitiesAfterUsage]
500
- * Included quantities remaining after usage against the commitment plan's
501
- * associated resources was calculated.
502
- */
355
+ /** Included quantities remaining after usage against the commitment plan's associated resources was calculated. */
503
356
  planQuantitiesAfterUsage?: { [propertyName: string]: number };
504
- /**
505
- * @member {{ [propertyName: string]: number }} [planQuantitiesBeforeUsage]
506
- * Included quantities remaining before usage against the commitment plan's
507
- * associated resources was calculated.
508
- */
357
+ /** Included quantities remaining before usage against the commitment plan's associated resources was calculated. */
509
358
  planQuantitiesBeforeUsage?: { [propertyName: string]: number };
510
- /**
511
- * @member {{ [propertyName: string]: number }} [planUsageOverage] Usage
512
- * against the commitment plan's associated resources which was not covered
513
- * by included quantities and is therefore overage.
514
- */
359
+ /** Usage against the commitment plan's associated resources which was not covered by included quantities and is therefore overage. */
515
360
  planUsageOverage?: { [propertyName: string]: number };
516
- /**
517
- * @member {{ [propertyName: string]: number }} [usage] Usage against the
518
- * commitment plan's associated resources.
519
- */
361
+ /** Usage against the commitment plan's associated resources. */
520
362
  usage?: { [propertyName: string]: number };
521
- /**
522
- * @member {Date} [usageDate] The date of usage, in ISO 8601 format.
523
- */
363
+ /** The date of usage, in ISO 8601 format. */
524
364
  usageDate?: Date;
525
365
  }
526
366
 
527
- /**
528
- * @interface
529
- * An interface representing CommitmentAssociationsListOptionalParams.
530
- * Optional Parameters.
531
- *
532
- * @extends RequestOptionsBase
533
- */
534
- export interface CommitmentAssociationsListOptionalParams extends msRest.RequestOptionsBase {
367
+ /** Represents the association between a commitment plan and some other resource, such as a Machine Learning web service. */
368
+ export type CommitmentAssociation = Resource & {
369
+ /** An entity tag used to enforce optimistic concurrency. */
370
+ etag?: string;
371
+ /** The properties of the commitment association resource. */
372
+ properties?: CommitmentAssociationProperties;
373
+ };
374
+
375
+ /** An Azure ML commitment plan resource. */
376
+ export type CommitmentPlan = Resource & {
377
+ /** An entity tag used to enforce optimistic concurrency. */
378
+ etag?: string;
535
379
  /**
536
- * @member {string} [skipToken] Continuation token for pagination.
380
+ * The commitment plan properties.
381
+ * NOTE: This property will not be serialized. It can only be populated by the server.
537
382
  */
538
- skipToken?: string;
383
+ readonly properties?: CommitmentPlanProperties;
384
+ /** The commitment plan SKU. */
385
+ sku?: ResourceSku;
386
+ };
387
+
388
+ /** Known values of {@link SkuCapacityScaleType} that the service accepts. */
389
+ export enum KnownSkuCapacityScaleType {
390
+ Automatic = "Automatic",
391
+ Manual = "Manual",
392
+ None = "None"
539
393
  }
540
394
 
541
395
  /**
542
- * @interface
543
- * An interface representing CommitmentPlansListOptionalParams.
544
- * Optional Parameters.
545
- *
546
- * @extends RequestOptionsBase
396
+ * Defines values for SkuCapacityScaleType. \
397
+ * {@link KnownSkuCapacityScaleType} can be used interchangeably with SkuCapacityScaleType,
398
+ * this enum contains the known values that the service supports.
399
+ * ### Known values supported by the service
400
+ * **Automatic** \
401
+ * **Manual** \
402
+ * **None**
547
403
  */
548
- export interface CommitmentPlansListOptionalParams extends msRest.RequestOptionsBase {
549
- /**
550
- * @member {string} [skipToken] Continuation token for pagination.
551
- */
552
- skipToken?: string;
404
+ export type SkuCapacityScaleType = string;
405
+
406
+ /** Known values of {@link ResourceSkuRestrictionsType} that the service accepts. */
407
+ export enum KnownResourceSkuRestrictionsType {
408
+ Location = "location",
409
+ Zone = "zone"
553
410
  }
554
411
 
555
412
  /**
556
- * @interface
557
- * An interface representing CommitmentPlansListInResourceGroupOptionalParams.
558
- * Optional Parameters.
559
- *
560
- * @extends RequestOptionsBase
413
+ * Defines values for ResourceSkuRestrictionsType. \
414
+ * {@link KnownResourceSkuRestrictionsType} can be used interchangeably with ResourceSkuRestrictionsType,
415
+ * this enum contains the known values that the service supports.
416
+ * ### Known values supported by the service
417
+ * **location** \
418
+ * **zone**
561
419
  */
562
- export interface CommitmentPlansListInResourceGroupOptionalParams extends msRest.RequestOptionsBase {
563
- /**
564
- * @member {string} [skipToken] Continuation token for pagination.
565
- */
566
- skipToken?: string;
420
+ export type ResourceSkuRestrictionsType = string;
421
+
422
+ /** Known values of {@link ResourceSkuRestrictionsReasonCode} that the service accepts. */
423
+ export enum KnownResourceSkuRestrictionsReasonCode {
424
+ QuotaId = "QuotaId",
425
+ NotAvailableForSubscription = "NotAvailableForSubscription"
567
426
  }
568
427
 
569
428
  /**
570
- * @interface
571
- * An interface representing UsageHistoryListOptionalParams.
572
- * Optional Parameters.
573
- *
574
- * @extends RequestOptionsBase
429
+ * Defines values for ResourceSkuRestrictionsReasonCode. \
430
+ * {@link KnownResourceSkuRestrictionsReasonCode} can be used interchangeably with ResourceSkuRestrictionsReasonCode,
431
+ * this enum contains the known values that the service supports.
432
+ * ### Known values supported by the service
433
+ * **QuotaId** \
434
+ * **NotAvailableForSubscription**
575
435
  */
576
- export interface UsageHistoryListOptionalParams extends msRest.RequestOptionsBase {
577
- /**
578
- * @member {string} [skipToken] Continuation token for pagination.
579
- */
436
+ export type ResourceSkuRestrictionsReasonCode = string;
437
+
438
+ /** Optional parameters. */
439
+ export interface OperationsListOptionalParams
440
+ extends coreClient.OperationOptions {}
441
+
442
+ /** Contains response data for the list operation. */
443
+ export type OperationsListResponse = OperationEntityListResult;
444
+
445
+ /** Optional parameters. */
446
+ export interface SkusListOptionalParams extends coreClient.OperationOptions {}
447
+
448
+ /** Contains response data for the list operation. */
449
+ export type SkusListResponse = SkuListResult;
450
+
451
+ /** Optional parameters. */
452
+ export interface CommitmentAssociationsGetOptionalParams
453
+ extends coreClient.OperationOptions {}
454
+
455
+ /** Contains response data for the get operation. */
456
+ export type CommitmentAssociationsGetResponse = CommitmentAssociation;
457
+
458
+ /** Optional parameters. */
459
+ export interface CommitmentAssociationsListOptionalParams
460
+ extends coreClient.OperationOptions {
461
+ /** Continuation token for pagination. */
580
462
  skipToken?: string;
581
463
  }
582
464
 
583
- /**
584
- * @interface
585
- * An interface representing AzureMLCommitmentPlansManagementClientOptions.
586
- * @extends AzureServiceClientOptions
587
- */
588
- export interface AzureMLCommitmentPlansManagementClientOptions extends AzureServiceClientOptions {
589
- /**
590
- * @member {string} [baseUri]
591
- */
592
- baseUri?: string;
593
- }
465
+ /** Contains response data for the list operation. */
466
+ export type CommitmentAssociationsListResponse = CommitmentAssociationListResult;
594
467
 
468
+ /** Optional parameters. */
469
+ export interface CommitmentAssociationsMoveOptionalParams
470
+ extends coreClient.OperationOptions {}
595
471
 
596
- /**
597
- * @interface
598
- * An interface representing the SkuListResult.
599
- * The list of commitment plan SKUs.
600
- *
601
- * @extends Array<CatalogSku>
602
- */
603
- export interface SkuListResult extends Array<CatalogSku> {
604
- }
472
+ /** Contains response data for the move operation. */
473
+ export type CommitmentAssociationsMoveResponse = CommitmentAssociation;
605
474
 
606
- /**
607
- * @interface
608
- * An interface representing the CommitmentAssociationListResult.
609
- * A page of commitment association resources.
610
- *
611
- * @extends Array<CommitmentAssociation>
612
- */
613
- export interface CommitmentAssociationListResult extends Array<CommitmentAssociation> {
614
- /**
615
- * @member {string} [nextLink] A URI to retrieve the next page of results.
616
- */
617
- nextLink?: string;
475
+ /** Optional parameters. */
476
+ export interface CommitmentAssociationsListNextOptionalParams
477
+ extends coreClient.OperationOptions {
478
+ /** Continuation token for pagination. */
479
+ skipToken?: string;
618
480
  }
619
481
 
620
- /**
621
- * @interface
622
- * An interface representing the CommitmentPlanListResult.
623
- * A page of commitment plan resources.
624
- *
625
- * @extends Array<CommitmentPlan>
626
- */
627
- export interface CommitmentPlanListResult extends Array<CommitmentPlan> {
628
- /**
629
- * @member {string} [nextLink] A URI to retrieve the next page of results.
630
- */
631
- nextLink?: string;
632
- }
482
+ /** Contains response data for the listNext operation. */
483
+ export type CommitmentAssociationsListNextResponse = CommitmentAssociationListResult;
633
484
 
634
- /**
635
- * @interface
636
- * An interface representing the PlanUsageHistoryListResult.
637
- * A page of usage history.
638
- *
639
- * @extends Array<PlanUsageHistory>
640
- */
641
- export interface PlanUsageHistoryListResult extends Array<PlanUsageHistory> {
642
- /**
643
- * @member {string} [nextLink] A URI to retrieve the next page of results.
644
- */
645
- nextLink?: string;
646
- }
485
+ /** Optional parameters. */
486
+ export interface CommitmentPlansGetOptionalParams
487
+ extends coreClient.OperationOptions {}
647
488
 
648
- /**
649
- * Defines values for SkuCapacityScaleType.
650
- * Possible values include: 'Automatic', 'Manual', 'None'
651
- * @readonly
652
- * @enum {string}
653
- */
654
- export type SkuCapacityScaleType = 'Automatic' | 'Manual' | 'None';
489
+ /** Contains response data for the get operation. */
490
+ export type CommitmentPlansGetResponse = CommitmentPlan;
655
491
 
656
- /**
657
- * Defines values for ResourceSkuRestrictionsType.
658
- * Possible values include: 'location', 'zone'
659
- * @readonly
660
- * @enum {string}
661
- */
662
- export type ResourceSkuRestrictionsType = 'location' | 'zone';
492
+ /** Optional parameters. */
493
+ export interface CommitmentPlansCreateOrUpdateOptionalParams
494
+ extends coreClient.OperationOptions {}
663
495
 
664
- /**
665
- * Defines values for ResourceSkuRestrictionsReasonCode.
666
- * Possible values include: 'QuotaId', 'NotAvailableForSubscription'
667
- * @readonly
668
- * @enum {string}
669
- */
670
- export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription';
496
+ /** Contains response data for the createOrUpdate operation. */
497
+ export type CommitmentPlansCreateOrUpdateResponse = CommitmentPlan;
671
498
 
672
- /**
673
- * Contains response data for the list operation.
674
- */
675
- export type SkusListResponse = SkuListResult & {
676
- /**
677
- * The underlying HTTP response.
678
- */
679
- _response: msRest.HttpResponse & {
680
- /**
681
- * The response body as text (string format)
682
- */
683
- bodyAsText: string;
684
- /**
685
- * The response body as parsed JSON or XML
686
- */
687
- parsedBody: SkuListResult;
688
- };
689
- };
499
+ /** Optional parameters. */
500
+ export interface CommitmentPlansRemoveOptionalParams
501
+ extends coreClient.OperationOptions {}
690
502
 
691
- /**
692
- * Contains response data for the get operation.
693
- */
694
- export type CommitmentAssociationsGetResponse = CommitmentAssociation & {
695
- /**
696
- * The underlying HTTP response.
697
- */
698
- _response: msRest.HttpResponse & {
699
- /**
700
- * The response body as text (string format)
701
- */
702
- bodyAsText: string;
703
- /**
704
- * The response body as parsed JSON or XML
705
- */
706
- parsedBody: CommitmentAssociation;
707
- };
708
- };
503
+ /** Optional parameters. */
504
+ export interface CommitmentPlansPatchOptionalParams
505
+ extends coreClient.OperationOptions {}
709
506
 
710
- /**
711
- * Contains response data for the list operation.
712
- */
713
- export type CommitmentAssociationsListResponse = CommitmentAssociationListResult & {
714
- /**
715
- * The underlying HTTP response.
716
- */
717
- _response: msRest.HttpResponse & {
718
- /**
719
- * The response body as text (string format)
720
- */
721
- bodyAsText: string;
722
- /**
723
- * The response body as parsed JSON or XML
724
- */
725
- parsedBody: CommitmentAssociationListResult;
726
- };
727
- };
507
+ /** Contains response data for the patch operation. */
508
+ export type CommitmentPlansPatchResponse = CommitmentPlan;
728
509
 
729
- /**
730
- * Contains response data for the move operation.
731
- */
732
- export type CommitmentAssociationsMoveResponse = CommitmentAssociation & {
733
- /**
734
- * The underlying HTTP response.
735
- */
736
- _response: msRest.HttpResponse & {
737
- /**
738
- * The response body as text (string format)
739
- */
740
- bodyAsText: string;
741
- /**
742
- * The response body as parsed JSON or XML
743
- */
744
- parsedBody: CommitmentAssociation;
745
- };
746
- };
510
+ /** Optional parameters. */
511
+ export interface CommitmentPlansListOptionalParams
512
+ extends coreClient.OperationOptions {
513
+ /** Continuation token for pagination. */
514
+ skipToken?: string;
515
+ }
747
516
 
748
- /**
749
- * Contains response data for the listNext operation.
750
- */
751
- export type CommitmentAssociationsListNextResponse = CommitmentAssociationListResult & {
752
- /**
753
- * The underlying HTTP response.
754
- */
755
- _response: msRest.HttpResponse & {
756
- /**
757
- * The response body as text (string format)
758
- */
759
- bodyAsText: string;
760
- /**
761
- * The response body as parsed JSON or XML
762
- */
763
- parsedBody: CommitmentAssociationListResult;
764
- };
765
- };
517
+ /** Contains response data for the list operation. */
518
+ export type CommitmentPlansListResponse = CommitmentPlanListResult;
766
519
 
767
- /**
768
- * Contains response data for the get operation.
769
- */
770
- export type CommitmentPlansGetResponse = CommitmentPlan & {
771
- /**
772
- * The underlying HTTP response.
773
- */
774
- _response: msRest.HttpResponse & {
775
- /**
776
- * The response body as text (string format)
777
- */
778
- bodyAsText: string;
779
- /**
780
- * The response body as parsed JSON or XML
781
- */
782
- parsedBody: CommitmentPlan;
783
- };
784
- };
520
+ /** Optional parameters. */
521
+ export interface CommitmentPlansListInResourceGroupOptionalParams
522
+ extends coreClient.OperationOptions {
523
+ /** Continuation token for pagination. */
524
+ skipToken?: string;
525
+ }
785
526
 
786
- /**
787
- * Contains response data for the createOrUpdate operation.
788
- */
789
- export type CommitmentPlansCreateOrUpdateResponse = CommitmentPlan & {
790
- /**
791
- * The underlying HTTP response.
792
- */
793
- _response: msRest.HttpResponse & {
794
- /**
795
- * The response body as text (string format)
796
- */
797
- bodyAsText: string;
798
- /**
799
- * The response body as parsed JSON or XML
800
- */
801
- parsedBody: CommitmentPlan;
802
- };
803
- };
527
+ /** Contains response data for the listInResourceGroup operation. */
528
+ export type CommitmentPlansListInResourceGroupResponse = CommitmentPlanListResult;
804
529
 
805
- /**
806
- * Contains response data for the patch operation.
807
- */
808
- export type CommitmentPlansPatchResponse = CommitmentPlan & {
809
- /**
810
- * The underlying HTTP response.
811
- */
812
- _response: msRest.HttpResponse & {
813
- /**
814
- * The response body as text (string format)
815
- */
816
- bodyAsText: string;
817
- /**
818
- * The response body as parsed JSON or XML
819
- */
820
- parsedBody: CommitmentPlan;
821
- };
822
- };
530
+ /** Optional parameters. */
531
+ export interface CommitmentPlansListNextOptionalParams
532
+ extends coreClient.OperationOptions {
533
+ /** Continuation token for pagination. */
534
+ skipToken?: string;
535
+ }
823
536
 
824
- /**
825
- * Contains response data for the list operation.
826
- */
827
- export type CommitmentPlansListResponse = CommitmentPlanListResult & {
828
- /**
829
- * The underlying HTTP response.
830
- */
831
- _response: msRest.HttpResponse & {
832
- /**
833
- * The response body as text (string format)
834
- */
835
- bodyAsText: string;
836
- /**
837
- * The response body as parsed JSON or XML
838
- */
839
- parsedBody: CommitmentPlanListResult;
840
- };
841
- };
537
+ /** Contains response data for the listNext operation. */
538
+ export type CommitmentPlansListNextResponse = CommitmentPlanListResult;
842
539
 
843
- /**
844
- * Contains response data for the listInResourceGroup operation.
845
- */
846
- export type CommitmentPlansListInResourceGroupResponse = CommitmentPlanListResult & {
847
- /**
848
- * The underlying HTTP response.
849
- */
850
- _response: msRest.HttpResponse & {
851
- /**
852
- * The response body as text (string format)
853
- */
854
- bodyAsText: string;
855
- /**
856
- * The response body as parsed JSON or XML
857
- */
858
- parsedBody: CommitmentPlanListResult;
859
- };
860
- };
540
+ /** Optional parameters. */
541
+ export interface CommitmentPlansListInResourceGroupNextOptionalParams
542
+ extends coreClient.OperationOptions {
543
+ /** Continuation token for pagination. */
544
+ skipToken?: string;
545
+ }
861
546
 
862
- /**
863
- * Contains response data for the listNext operation.
864
- */
865
- export type CommitmentPlansListNextResponse = CommitmentPlanListResult & {
866
- /**
867
- * The underlying HTTP response.
868
- */
869
- _response: msRest.HttpResponse & {
870
- /**
871
- * The response body as text (string format)
872
- */
873
- bodyAsText: string;
874
- /**
875
- * The response body as parsed JSON or XML
876
- */
877
- parsedBody: CommitmentPlanListResult;
878
- };
879
- };
547
+ /** Contains response data for the listInResourceGroupNext operation. */
548
+ export type CommitmentPlansListInResourceGroupNextResponse = CommitmentPlanListResult;
880
549
 
881
- /**
882
- * Contains response data for the listInResourceGroupNext operation.
883
- */
884
- export type CommitmentPlansListInResourceGroupNextResponse = CommitmentPlanListResult & {
885
- /**
886
- * The underlying HTTP response.
887
- */
888
- _response: msRest.HttpResponse & {
889
- /**
890
- * The response body as text (string format)
891
- */
892
- bodyAsText: string;
893
- /**
894
- * The response body as parsed JSON or XML
895
- */
896
- parsedBody: CommitmentPlanListResult;
897
- };
898
- };
550
+ /** Optional parameters. */
551
+ export interface UsageHistoryListOptionalParams
552
+ extends coreClient.OperationOptions {
553
+ /** Continuation token for pagination. */
554
+ skipToken?: string;
555
+ }
899
556
 
900
- /**
901
- * Contains response data for the list operation.
902
- */
903
- export type UsageHistoryListResponse = PlanUsageHistoryListResult & {
904
- /**
905
- * The underlying HTTP response.
906
- */
907
- _response: msRest.HttpResponse & {
908
- /**
909
- * The response body as text (string format)
910
- */
911
- bodyAsText: string;
912
- /**
913
- * The response body as parsed JSON or XML
914
- */
915
- parsedBody: PlanUsageHistoryListResult;
916
- };
917
- };
557
+ /** Contains response data for the list operation. */
558
+ export type UsageHistoryListResponse = PlanUsageHistoryListResult;
918
559
 
919
- /**
920
- * Contains response data for the listNext operation.
921
- */
922
- export type UsageHistoryListNextResponse = PlanUsageHistoryListResult & {
923
- /**
924
- * The underlying HTTP response.
925
- */
926
- _response: msRest.HttpResponse & {
927
- /**
928
- * The response body as text (string format)
929
- */
930
- bodyAsText: string;
931
- /**
932
- * The response body as parsed JSON or XML
933
- */
934
- parsedBody: PlanUsageHistoryListResult;
935
- };
936
- };
560
+ /** Optional parameters. */
561
+ export interface UsageHistoryListNextOptionalParams
562
+ extends coreClient.OperationOptions {
563
+ /** Continuation token for pagination. */
564
+ skipToken?: string;
565
+ }
566
+
567
+ /** Contains response data for the listNext operation. */
568
+ export type UsageHistoryListNextResponse = PlanUsageHistoryListResult;
569
+
570
+ /** Optional parameters. */
571
+ export interface AzureMLCommitmentPlansManagementClientOptionalParams
572
+ extends coreClient.ServiceClientOptions {
573
+ /** server parameter */
574
+ $host?: string;
575
+ /** Api Version */
576
+ apiVersion?: string;
577
+ /** Overrides client endpoint. */
578
+ endpoint?: string;
579
+ }