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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +75 -73
  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 +77 -34
  81. package/review/arm-commitmentplans.api.md +405 -0
  82. package/rollup.config.js +184 -27
  83. package/src/azureMLCommitmentPlansManagementClient.ts +95 -0
  84. package/src/index.ts +12 -0
  85. package/src/models/index.ts +579 -0
  86. package/{lib → src}/models/mappers.ts +354 -336
  87. package/src/models/parameters.ts +147 -0
  88. package/src/operations/commitmentAssociations.ts +281 -0
  89. package/src/operations/commitmentPlans.ts +420 -0
  90. package/{lib → src}/operations/index.ts +4 -5
  91. package/src/operations/operations.ts +95 -0
  92. package/src/operations/skus.ts +94 -0
  93. package/src/operations/usageHistory.ts +183 -0
  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 -1649
  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 -21
  108. package/esm/azureMLCommitmentPlansManagementClient.d.ts.map +0 -1
  109. package/esm/azureMLCommitmentPlansManagementClient.js +0 -36
  110. package/esm/azureMLCommitmentPlansManagementClient.js.map +0 -1
  111. package/esm/azureMLCommitmentPlansManagementClientContext.d.ts +0 -16
  112. package/esm/azureMLCommitmentPlansManagementClientContext.d.ts.map +0 -1
  113. package/esm/azureMLCommitmentPlansManagementClientContext.js +0 -56
  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/lib/azureMLCommitmentPlansManagementClient.ts +0 -48
  161. package/lib/azureMLCommitmentPlansManagementClientContext.ts +0 -62
  162. package/lib/models/commitmentAssociationsMappers.ts +0 -24
  163. package/lib/models/commitmentPlansMappers.ts +0 -24
  164. package/lib/models/index.ts +0 -936
  165. package/lib/models/parameters.ts +0 -95
  166. package/lib/models/skusMappers.ts +0 -20
  167. package/lib/models/usageHistoryMappers.ts +0 -16
  168. package/lib/operations/commitmentAssociations.ts +0 -272
  169. package/lib/operations/commitmentPlans.ts +0 -483
  170. package/lib/operations/skus.ts +0 -77
  171. package/lib/operations/usageHistory.ts +0 -137
@@ -1,95 +0,0 @@
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.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
-
11
- import * as msRest from "@azure/ms-rest-js";
12
-
13
- export const acceptLanguage: msRest.OperationParameter = {
14
- parameterPath: "acceptLanguage",
15
- mapper: {
16
- serializedName: "accept-language",
17
- defaultValue: 'en-US',
18
- type: {
19
- name: "String"
20
- }
21
- }
22
- };
23
- export const apiVersion: msRest.OperationQueryParameter = {
24
- parameterPath: "apiVersion",
25
- mapper: {
26
- required: true,
27
- serializedName: "api-version",
28
- type: {
29
- name: "String"
30
- }
31
- }
32
- };
33
- export const commitmentAssociationName: msRest.OperationURLParameter = {
34
- parameterPath: "commitmentAssociationName",
35
- mapper: {
36
- required: true,
37
- serializedName: "commitmentAssociationName",
38
- type: {
39
- name: "String"
40
- }
41
- }
42
- };
43
- export const commitmentPlanName: msRest.OperationURLParameter = {
44
- parameterPath: "commitmentPlanName",
45
- mapper: {
46
- required: true,
47
- serializedName: "commitmentPlanName",
48
- type: {
49
- name: "String"
50
- }
51
- }
52
- };
53
- export const nextPageLink: msRest.OperationURLParameter = {
54
- parameterPath: "nextPageLink",
55
- mapper: {
56
- required: true,
57
- serializedName: "nextLink",
58
- type: {
59
- name: "String"
60
- }
61
- },
62
- skipEncoding: true
63
- };
64
- export const resourceGroupName: msRest.OperationURLParameter = {
65
- parameterPath: "resourceGroupName",
66
- mapper: {
67
- required: true,
68
- serializedName: "resourceGroupName",
69
- type: {
70
- name: "String"
71
- }
72
- }
73
- };
74
- export const skipToken: msRest.OperationQueryParameter = {
75
- parameterPath: [
76
- "options",
77
- "skipToken"
78
- ],
79
- mapper: {
80
- serializedName: "$skipToken",
81
- type: {
82
- name: "String"
83
- }
84
- }
85
- };
86
- export const subscriptionId: msRest.OperationURLParameter = {
87
- parameterPath: "subscriptionId",
88
- mapper: {
89
- required: true,
90
- serializedName: "subscriptionId",
91
- type: {
92
- name: "String"
93
- }
94
- }
95
- };
@@ -1,20 +0,0 @@
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.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
-
11
- export {
12
- SkuListResult,
13
- CatalogSku,
14
- SkuCapacity,
15
- SkuCapability,
16
- SkuCost,
17
- SkuRestrictions,
18
- CloudError
19
- } from "../models/mappers";
20
-
@@ -1,16 +0,0 @@
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.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
-
11
- export {
12
- PlanUsageHistoryListResult,
13
- PlanUsageHistory,
14
- CloudError
15
- } from "../models/mappers";
16
-
@@ -1,272 +0,0 @@
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.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
-
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/commitmentAssociationsMappers";
14
- import * as Parameters from "../models/parameters";
15
- import { AzureMLCommitmentPlansManagementClientContext } from "../azureMLCommitmentPlansManagementClientContext";
16
-
17
- /** Class representing a CommitmentAssociations. */
18
- export class CommitmentAssociations {
19
- private readonly client: AzureMLCommitmentPlansManagementClientContext;
20
-
21
- /**
22
- * Create a CommitmentAssociations.
23
- * @param {AzureMLCommitmentPlansManagementClientContext} client Reference to the service client.
24
- */
25
- constructor(client: AzureMLCommitmentPlansManagementClientContext) {
26
- this.client = client;
27
- }
28
-
29
- /**
30
- * Get a commitment association.
31
- * @param resourceGroupName The resource group name.
32
- * @param commitmentPlanName The Azure ML commitment plan name.
33
- * @param commitmentAssociationName The commitment association name.
34
- * @param [options] The optional parameters
35
- * @returns Promise<Models.CommitmentAssociationsGetResponse>
36
- */
37
- get(resourceGroupName: string, commitmentPlanName: string, commitmentAssociationName: string, options?: msRest.RequestOptionsBase): Promise<Models.CommitmentAssociationsGetResponse>;
38
- /**
39
- * @param resourceGroupName The resource group name.
40
- * @param commitmentPlanName The Azure ML commitment plan name.
41
- * @param commitmentAssociationName The commitment association name.
42
- * @param callback The callback
43
- */
44
- get(resourceGroupName: string, commitmentPlanName: string, commitmentAssociationName: string, callback: msRest.ServiceCallback<Models.CommitmentAssociation>): void;
45
- /**
46
- * @param resourceGroupName The resource group name.
47
- * @param commitmentPlanName The Azure ML commitment plan name.
48
- * @param commitmentAssociationName The commitment association name.
49
- * @param options The optional parameters
50
- * @param callback The callback
51
- */
52
- get(resourceGroupName: string, commitmentPlanName: string, commitmentAssociationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CommitmentAssociation>): void;
53
- get(resourceGroupName: string, commitmentPlanName: string, commitmentAssociationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CommitmentAssociation>, callback?: msRest.ServiceCallback<Models.CommitmentAssociation>): Promise<Models.CommitmentAssociationsGetResponse> {
54
- return this.client.sendOperationRequest(
55
- {
56
- resourceGroupName,
57
- commitmentPlanName,
58
- commitmentAssociationName,
59
- options
60
- },
61
- getOperationSpec,
62
- callback) as Promise<Models.CommitmentAssociationsGetResponse>;
63
- }
64
-
65
- /**
66
- * Get all commitment associations for a parent commitment plan.
67
- * @param resourceGroupName The resource group name.
68
- * @param commitmentPlanName The Azure ML commitment plan name.
69
- * @param [options] The optional parameters
70
- * @returns Promise<Models.CommitmentAssociationsListResponse>
71
- */
72
- list(resourceGroupName: string, commitmentPlanName: string, options?: Models.CommitmentAssociationsListOptionalParams): Promise<Models.CommitmentAssociationsListResponse>;
73
- /**
74
- * @param resourceGroupName The resource group name.
75
- * @param commitmentPlanName The Azure ML commitment plan name.
76
- * @param callback The callback
77
- */
78
- list(resourceGroupName: string, commitmentPlanName: string, callback: msRest.ServiceCallback<Models.CommitmentAssociationListResult>): void;
79
- /**
80
- * @param resourceGroupName The resource group name.
81
- * @param commitmentPlanName The Azure ML commitment plan name.
82
- * @param options The optional parameters
83
- * @param callback The callback
84
- */
85
- list(resourceGroupName: string, commitmentPlanName: string, options: Models.CommitmentAssociationsListOptionalParams, callback: msRest.ServiceCallback<Models.CommitmentAssociationListResult>): void;
86
- list(resourceGroupName: string, commitmentPlanName: string, options?: Models.CommitmentAssociationsListOptionalParams | msRest.ServiceCallback<Models.CommitmentAssociationListResult>, callback?: msRest.ServiceCallback<Models.CommitmentAssociationListResult>): Promise<Models.CommitmentAssociationsListResponse> {
87
- return this.client.sendOperationRequest(
88
- {
89
- resourceGroupName,
90
- commitmentPlanName,
91
- options
92
- },
93
- listOperationSpec,
94
- callback) as Promise<Models.CommitmentAssociationsListResponse>;
95
- }
96
-
97
- /**
98
- * Re-parent a commitment association from one commitment plan to another.
99
- * @param resourceGroupName The resource group name.
100
- * @param commitmentPlanName The Azure ML commitment plan name.
101
- * @param commitmentAssociationName The commitment association name.
102
- * @param movePayload The move request payload.
103
- * @param [options] The optional parameters
104
- * @returns Promise<Models.CommitmentAssociationsMoveResponse>
105
- */
106
- move(resourceGroupName: string, commitmentPlanName: string, commitmentAssociationName: string, movePayload: Models.MoveCommitmentAssociationRequest, options?: msRest.RequestOptionsBase): Promise<Models.CommitmentAssociationsMoveResponse>;
107
- /**
108
- * @param resourceGroupName The resource group name.
109
- * @param commitmentPlanName The Azure ML commitment plan name.
110
- * @param commitmentAssociationName The commitment association name.
111
- * @param movePayload The move request payload.
112
- * @param callback The callback
113
- */
114
- move(resourceGroupName: string, commitmentPlanName: string, commitmentAssociationName: string, movePayload: Models.MoveCommitmentAssociationRequest, callback: msRest.ServiceCallback<Models.CommitmentAssociation>): void;
115
- /**
116
- * @param resourceGroupName The resource group name.
117
- * @param commitmentPlanName The Azure ML commitment plan name.
118
- * @param commitmentAssociationName The commitment association name.
119
- * @param movePayload The move request payload.
120
- * @param options The optional parameters
121
- * @param callback The callback
122
- */
123
- move(resourceGroupName: string, commitmentPlanName: string, commitmentAssociationName: string, movePayload: Models.MoveCommitmentAssociationRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CommitmentAssociation>): void;
124
- move(resourceGroupName: string, commitmentPlanName: string, commitmentAssociationName: string, movePayload: Models.MoveCommitmentAssociationRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CommitmentAssociation>, callback?: msRest.ServiceCallback<Models.CommitmentAssociation>): Promise<Models.CommitmentAssociationsMoveResponse> {
125
- return this.client.sendOperationRequest(
126
- {
127
- resourceGroupName,
128
- commitmentPlanName,
129
- commitmentAssociationName,
130
- movePayload,
131
- options
132
- },
133
- moveOperationSpec,
134
- callback) as Promise<Models.CommitmentAssociationsMoveResponse>;
135
- }
136
-
137
- /**
138
- * Get all commitment associations for a parent commitment plan.
139
- * @param nextPageLink The NextLink from the previous successful call to List operation.
140
- * @param [options] The optional parameters
141
- * @returns Promise<Models.CommitmentAssociationsListNextResponse>
142
- */
143
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.CommitmentAssociationsListNextResponse>;
144
- /**
145
- * @param nextPageLink The NextLink from the previous successful call to List operation.
146
- * @param callback The callback
147
- */
148
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.CommitmentAssociationListResult>): void;
149
- /**
150
- * @param nextPageLink The NextLink from the previous successful call to List operation.
151
- * @param options The optional parameters
152
- * @param callback The callback
153
- */
154
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CommitmentAssociationListResult>): void;
155
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CommitmentAssociationListResult>, callback?: msRest.ServiceCallback<Models.CommitmentAssociationListResult>): Promise<Models.CommitmentAssociationsListNextResponse> {
156
- return this.client.sendOperationRequest(
157
- {
158
- nextPageLink,
159
- options
160
- },
161
- listNextOperationSpec,
162
- callback) as Promise<Models.CommitmentAssociationsListNextResponse>;
163
- }
164
- }
165
-
166
- // Operation Specifications
167
- const serializer = new msRest.Serializer(Mappers);
168
- const getOperationSpec: msRest.OperationSpec = {
169
- httpMethod: "GET",
170
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations/{commitmentAssociationName}",
171
- urlParameters: [
172
- Parameters.subscriptionId,
173
- Parameters.resourceGroupName,
174
- Parameters.commitmentPlanName,
175
- Parameters.commitmentAssociationName
176
- ],
177
- queryParameters: [
178
- Parameters.apiVersion
179
- ],
180
- headerParameters: [
181
- Parameters.acceptLanguage
182
- ],
183
- responses: {
184
- 200: {
185
- bodyMapper: Mappers.CommitmentAssociation
186
- },
187
- default: {
188
- bodyMapper: Mappers.CloudError
189
- }
190
- },
191
- serializer
192
- };
193
-
194
- const listOperationSpec: msRest.OperationSpec = {
195
- httpMethod: "GET",
196
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations",
197
- urlParameters: [
198
- Parameters.subscriptionId,
199
- Parameters.resourceGroupName,
200
- Parameters.commitmentPlanName
201
- ],
202
- queryParameters: [
203
- Parameters.skipToken,
204
- Parameters.apiVersion
205
- ],
206
- headerParameters: [
207
- Parameters.acceptLanguage
208
- ],
209
- responses: {
210
- 200: {
211
- bodyMapper: Mappers.CommitmentAssociationListResult
212
- },
213
- default: {
214
- bodyMapper: Mappers.CloudError
215
- }
216
- },
217
- serializer
218
- };
219
-
220
- const moveOperationSpec: msRest.OperationSpec = {
221
- httpMethod: "POST",
222
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/commitmentPlans/{commitmentPlanName}/commitmentAssociations/{commitmentAssociationName}/move",
223
- urlParameters: [
224
- Parameters.subscriptionId,
225
- Parameters.resourceGroupName,
226
- Parameters.commitmentPlanName,
227
- Parameters.commitmentAssociationName
228
- ],
229
- queryParameters: [
230
- Parameters.apiVersion
231
- ],
232
- headerParameters: [
233
- Parameters.acceptLanguage
234
- ],
235
- requestBody: {
236
- parameterPath: "movePayload",
237
- mapper: {
238
- ...Mappers.MoveCommitmentAssociationRequest,
239
- required: true
240
- }
241
- },
242
- responses: {
243
- 200: {
244
- bodyMapper: Mappers.CommitmentAssociation
245
- },
246
- default: {
247
- bodyMapper: Mappers.CloudError
248
- }
249
- },
250
- serializer
251
- };
252
-
253
- const listNextOperationSpec: msRest.OperationSpec = {
254
- httpMethod: "GET",
255
- baseUrl: "https://management.azure.com",
256
- path: "{nextLink}",
257
- urlParameters: [
258
- Parameters.nextPageLink
259
- ],
260
- headerParameters: [
261
- Parameters.acceptLanguage
262
- ],
263
- responses: {
264
- 200: {
265
- bodyMapper: Mappers.CommitmentAssociationListResult
266
- },
267
- default: {
268
- bodyMapper: Mappers.CloudError
269
- }
270
- },
271
- serializer
272
- };