@azure/arm-resourcehealth 2.0.0 → 3.0.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -82
  4. package/dist/index.js +1811 -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/index.d.ts +6 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +13 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/microsoftResourceHealth.d.ts +20 -0
  13. package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -0
  14. package/dist-esm/src/microsoftResourceHealth.js +27 -0
  15. package/dist-esm/src/microsoftResourceHealth.js.map +1 -0
  16. package/dist-esm/src/microsoftResourceHealthContext.d.ts +17 -0
  17. package/dist-esm/src/microsoftResourceHealthContext.d.ts.map +1 -0
  18. package/dist-esm/src/microsoftResourceHealthContext.js +50 -0
  19. package/dist-esm/src/microsoftResourceHealthContext.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +402 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +22 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +21 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +233 -309
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +12 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/parameters.js +44 -39
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/availabilityStatuses.d.ts +102 -0
  33. package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -0
  34. package/dist-esm/src/operations/availabilityStatuses.js +407 -0
  35. package/dist-esm/src/operations/availabilityStatuses.js.map +1 -0
  36. package/dist-esm/src/operations/childAvailabilityStatuses.d.ts +51 -0
  37. package/dist-esm/src/operations/childAvailabilityStatuses.d.ts.map +1 -0
  38. package/dist-esm/src/operations/childAvailabilityStatuses.js +173 -0
  39. package/dist-esm/src/operations/childAvailabilityStatuses.js.map +1 -0
  40. package/dist-esm/src/operations/childResources.d.ts +43 -0
  41. package/dist-esm/src/operations/childResources.d.ts.map +1 -0
  42. package/dist-esm/src/operations/childResources.js +143 -0
  43. package/dist-esm/src/operations/childResources.js.map +1 -0
  44. package/dist-esm/src/operations/emergingIssues.d.ts +37 -0
  45. package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -0
  46. package/dist-esm/src/operations/emergingIssues.js +143 -0
  47. package/dist-esm/src/operations/emergingIssues.js.map +1 -0
  48. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  49. package/dist-esm/src/operations/index.d.ts.map +1 -0
  50. package/{esm → dist-esm/src}/operations/index.js +1 -2
  51. package/dist-esm/src/operations/index.js.map +1 -0
  52. package/dist-esm/src/operations/operations.d.ts +18 -0
  53. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  54. package/dist-esm/src/operations/operations.js +46 -0
  55. package/dist-esm/src/operations/operations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts +40 -0
  57. package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts.map +1 -0
  58. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/availabilityStatuses.js} +2 -7
  59. package/dist-esm/src/operationsInterfaces/availabilityStatuses.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.d.ts +23 -0
  61. package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.d.ts.map +1 -0
  62. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js} +2 -2
  63. package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/childResources.d.ts +15 -0
  65. package/dist-esm/src/operationsInterfaces/childResources.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/childResources.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/childResources.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts +16 -0
  69. package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/emergingIssues.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/emergingIssues.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  73. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  75. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  77. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  78. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
  79. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  80. package/dist-esm/test/sampleTest.d.ts +2 -0
  81. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  82. package/dist-esm/test/sampleTest.js +40 -0
  83. package/dist-esm/test/sampleTest.js.map +1 -0
  84. package/package.json +63 -32
  85. package/review/arm-resourcehealth.api.md +396 -0
  86. package/rollup.config.js +181 -30
  87. package/src/index.ts +13 -0
  88. package/src/microsoftResourceHealth.ts +38 -41
  89. package/src/microsoftResourceHealthContext.ts +47 -44
  90. package/src/models/index.ts +322 -878
  91. package/src/models/mappers.ts +232 -320
  92. package/src/models/parameters.ts +58 -40
  93. package/src/operations/availabilityStatuses.ts +325 -276
  94. package/src/operations/childAvailabilityStatuses.ts +137 -130
  95. package/src/operations/childResources.ts +109 -85
  96. package/src/operations/emergingIssues.ts +96 -103
  97. package/src/operations/index.ts +1 -2
  98. package/src/operations/operations.ts +24 -38
  99. package/src/operationsInterfaces/availabilityStatuses.ts +67 -0
  100. package/src/operationsInterfaces/childAvailabilityStatuses.ts +43 -0
  101. package/src/operationsInterfaces/childResources.ts +30 -0
  102. package/src/operationsInterfaces/emergingIssues.ts +34 -0
  103. package/src/operationsInterfaces/index.ts +13 -0
  104. package/src/operationsInterfaces/operations.ts +21 -0
  105. package/tsconfig.json +3 -3
  106. package/types/arm-resourcehealth.d.ts +588 -0
  107. package/types/tsdoc-metadata.json +11 -0
  108. package/dist/arm-resourcehealth.js +0 -1743
  109. package/dist/arm-resourcehealth.js.map +0 -1
  110. package/dist/arm-resourcehealth.min.js +0 -1
  111. package/dist/arm-resourcehealth.min.js.map +0 -1
  112. package/esm/microsoftResourceHealth.d.ts +0 -29
  113. package/esm/microsoftResourceHealth.d.ts.map +0 -1
  114. package/esm/microsoftResourceHealth.js +0 -42
  115. package/esm/microsoftResourceHealth.js.map +0 -1
  116. package/esm/microsoftResourceHealthContext.d.ts +0 -23
  117. package/esm/microsoftResourceHealthContext.d.ts.map +0 -1
  118. package/esm/microsoftResourceHealthContext.js +0 -61
  119. package/esm/microsoftResourceHealthContext.js.map +0 -1
  120. package/esm/models/availabilityStatusesMappers.d.ts +0 -2
  121. package/esm/models/availabilityStatusesMappers.d.ts.map +0 -1
  122. package/esm/models/availabilityStatusesMappers.js +0 -9
  123. package/esm/models/availabilityStatusesMappers.js.map +0 -1
  124. package/esm/models/childAvailabilityStatusesMappers.d.ts +0 -2
  125. package/esm/models/childAvailabilityStatusesMappers.d.ts.map +0 -1
  126. package/esm/models/childAvailabilityStatusesMappers.js +0 -9
  127. package/esm/models/childAvailabilityStatusesMappers.js.map +0 -1
  128. package/esm/models/childResourcesMappers.d.ts +0 -2
  129. package/esm/models/childResourcesMappers.d.ts.map +0 -1
  130. package/esm/models/childResourcesMappers.js +0 -9
  131. package/esm/models/childResourcesMappers.js.map +0 -1
  132. package/esm/models/emergingIssuesMappers.d.ts +0 -2
  133. package/esm/models/emergingIssuesMappers.d.ts.map +0 -1
  134. package/esm/models/emergingIssuesMappers.js +0 -9
  135. package/esm/models/emergingIssuesMappers.js.map +0 -1
  136. package/esm/models/index.d.ts +0 -957
  137. package/esm/models/index.d.ts.map +0 -1
  138. package/esm/models/index.js.map +0 -1
  139. package/esm/models/mappers.d.ts +0 -26
  140. package/esm/models/mappers.d.ts.map +0 -1
  141. package/esm/models/mappers.js.map +0 -1
  142. package/esm/models/operationsMappers.d.ts +0 -2
  143. package/esm/models/operationsMappers.d.ts.map +0 -1
  144. package/esm/models/operationsMappers.js.map +0 -1
  145. package/esm/models/parameters.d.ts +0 -11
  146. package/esm/models/parameters.d.ts.map +0 -1
  147. package/esm/models/parameters.js.map +0 -1
  148. package/esm/operations/availabilityStatuses.d.ts +0 -166
  149. package/esm/operations/availabilityStatuses.d.ts.map +0 -1
  150. package/esm/operations/availabilityStatuses.js +0 -239
  151. package/esm/operations/availabilityStatuses.js.map +0 -1
  152. package/esm/operations/childAvailabilityStatuses.d.ts +0 -81
  153. package/esm/operations/childAvailabilityStatuses.d.ts.map +0 -1
  154. package/esm/operations/childAvailabilityStatuses.js +0 -117
  155. package/esm/operations/childAvailabilityStatuses.js.map +0 -1
  156. package/esm/operations/childResources.d.ts +0 -57
  157. package/esm/operations/childResources.d.ts.map +0 -1
  158. package/esm/operations/childResources.js +0 -87
  159. package/esm/operations/childResources.js.map +0 -1
  160. package/esm/operations/emergingIssues.d.ts +0 -61
  161. package/esm/operations/emergingIssues.d.ts.map +0 -1
  162. package/esm/operations/emergingIssues.js +0 -106
  163. package/esm/operations/emergingIssues.js.map +0 -1
  164. package/esm/operations/index.d.ts.map +0 -1
  165. package/esm/operations/index.js.map +0 -1
  166. package/esm/operations/operations.d.ts +0 -28
  167. package/esm/operations/operations.d.ts.map +0 -1
  168. package/esm/operations/operations.js +0 -50
  169. package/esm/operations/operations.js.map +0 -1
  170. package/src/models/availabilityStatusesMappers.ts +0 -19
  171. package/src/models/childAvailabilityStatusesMappers.ts +0 -19
  172. package/src/models/childResourcesMappers.ts +0 -19
  173. package/src/models/emergingIssuesMappers.ts +0 -22
@@ -3,267 +3,323 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/availabilityStatusesMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { AvailabilityStatuses } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
14
  import { MicrosoftResourceHealthContext } from "../microsoftResourceHealthContext";
15
+ import {
16
+ AvailabilityStatus,
17
+ AvailabilityStatusesListBySubscriptionIdNextOptionalParams,
18
+ AvailabilityStatusesListBySubscriptionIdOptionalParams,
19
+ AvailabilityStatusesListByResourceGroupNextOptionalParams,
20
+ AvailabilityStatusesListByResourceGroupOptionalParams,
21
+ AvailabilityStatusesListNextOptionalParams,
22
+ AvailabilityStatusesListOptionalParams,
23
+ AvailabilityStatusesListBySubscriptionIdResponse,
24
+ AvailabilityStatusesListByResourceGroupResponse,
25
+ AvailabilityStatusesGetByResourceOptionalParams,
26
+ AvailabilityStatusesGetByResourceResponse,
27
+ AvailabilityStatusesListResponse,
28
+ AvailabilityStatusesListBySubscriptionIdNextResponse,
29
+ AvailabilityStatusesListByResourceGroupNextResponse,
30
+ AvailabilityStatusesListNextResponse
31
+ } from "../models";
15
32
 
16
- /** Class representing a AvailabilityStatuses. */
17
- export class AvailabilityStatuses {
33
+ /// <reference lib="esnext.asynciterable" />
34
+ /** Class containing AvailabilityStatuses operations. */
35
+ export class AvailabilityStatusesImpl implements AvailabilityStatuses {
18
36
  private readonly client: MicrosoftResourceHealthContext;
19
37
 
20
38
  /**
21
- * Create a AvailabilityStatuses.
22
- * @param {MicrosoftResourceHealthContext} client Reference to the service client.
39
+ * Initialize a new instance of the class AvailabilityStatuses class.
40
+ * @param client Reference to the service client
23
41
  */
24
42
  constructor(client: MicrosoftResourceHealthContext) {
25
43
  this.client = client;
26
44
  }
27
45
 
28
46
  /**
29
- * Lists the current availability status for all the resources in the subscription. Use the
30
- * nextLink property in the response to get the next page of availability statuses.
31
- * @param [options] The optional parameters
32
- * @returns Promise<Models.AvailabilityStatusesListBySubscriptionIdResponse>
47
+ * Lists the current availability status for all the resources in the subscription. Use the nextLink
48
+ * property in the response to get the next page of availability statuses.
49
+ * @param options The options parameters.
33
50
  */
34
- listBySubscriptionId(options?: Models.AvailabilityStatusesListBySubscriptionIdOptionalParams): Promise<Models.AvailabilityStatusesListBySubscriptionIdResponse>;
35
- /**
36
- * @param callback The callback
37
- */
38
- listBySubscriptionId(callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
39
- /**
40
- * @param options The optional parameters
41
- * @param callback The callback
42
- */
43
- listBySubscriptionId(options: Models.AvailabilityStatusesListBySubscriptionIdOptionalParams, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
44
- listBySubscriptionId(options?: Models.AvailabilityStatusesListBySubscriptionIdOptionalParams | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListBySubscriptionIdResponse> {
45
- return this.client.sendOperationRequest(
46
- {
47
- options
51
+ public listBySubscriptionId(
52
+ options?: AvailabilityStatusesListBySubscriptionIdOptionalParams
53
+ ): PagedAsyncIterableIterator<AvailabilityStatus> {
54
+ const iter = this.listBySubscriptionIdPagingAll(options);
55
+ return {
56
+ next() {
57
+ return iter.next();
48
58
  },
49
- listBySubscriptionIdOperationSpec,
50
- callback) as Promise<Models.AvailabilityStatusesListBySubscriptionIdResponse>;
59
+ [Symbol.asyncIterator]() {
60
+ return this;
61
+ },
62
+ byPage: () => {
63
+ return this.listBySubscriptionIdPagingPage(options);
64
+ }
65
+ };
66
+ }
67
+
68
+ private async *listBySubscriptionIdPagingPage(
69
+ options?: AvailabilityStatusesListBySubscriptionIdOptionalParams
70
+ ): AsyncIterableIterator<AvailabilityStatus[]> {
71
+ let result = await this._listBySubscriptionId(options);
72
+ yield result.value || [];
73
+ let continuationToken = result.nextLink;
74
+ while (continuationToken) {
75
+ result = await this._listBySubscriptionIdNext(continuationToken, options);
76
+ continuationToken = result.nextLink;
77
+ yield result.value || [];
78
+ }
79
+ }
80
+
81
+ private async *listBySubscriptionIdPagingAll(
82
+ options?: AvailabilityStatusesListBySubscriptionIdOptionalParams
83
+ ): AsyncIterableIterator<AvailabilityStatus> {
84
+ for await (const page of this.listBySubscriptionIdPagingPage(options)) {
85
+ yield* page;
86
+ }
51
87
  }
52
88
 
53
89
  /**
54
- * Lists the current availability status for all the resources in the resource group. Use the
55
- * nextLink property in the response to get the next page of availability statuses.
56
- * @param resourceGroupName The name of the resource group.
57
- * @param [options] The optional parameters
58
- * @returns Promise<Models.AvailabilityStatusesListByResourceGroupResponse>
59
- */
60
- listByResourceGroup(resourceGroupName: string, options?: Models.AvailabilityStatusesListByResourceGroupOptionalParams): Promise<Models.AvailabilityStatusesListByResourceGroupResponse>;
61
- /**
62
- * @param resourceGroupName The name of the resource group.
63
- * @param callback The callback
64
- */
65
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
66
- /**
90
+ * Lists the current availability status for all the resources in the resource group. Use the nextLink
91
+ * property in the response to get the next page of availability statuses.
67
92
  * @param resourceGroupName The name of the resource group.
68
- * @param options The optional parameters
69
- * @param callback The callback
93
+ * @param options The options parameters.
70
94
  */
71
- listByResourceGroup(resourceGroupName: string, options: Models.AvailabilityStatusesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
72
- listByResourceGroup(resourceGroupName: string, options?: Models.AvailabilityStatusesListByResourceGroupOptionalParams | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListByResourceGroupResponse> {
73
- return this.client.sendOperationRequest(
74
- {
95
+ public listByResourceGroup(
96
+ resourceGroupName: string,
97
+ options?: AvailabilityStatusesListByResourceGroupOptionalParams
98
+ ): PagedAsyncIterableIterator<AvailabilityStatus> {
99
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
100
+ return {
101
+ next() {
102
+ return iter.next();
103
+ },
104
+ [Symbol.asyncIterator]() {
105
+ return this;
106
+ },
107
+ byPage: () => {
108
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
109
+ }
110
+ };
111
+ }
112
+
113
+ private async *listByResourceGroupPagingPage(
114
+ resourceGroupName: string,
115
+ options?: AvailabilityStatusesListByResourceGroupOptionalParams
116
+ ): AsyncIterableIterator<AvailabilityStatus[]> {
117
+ let result = await this._listByResourceGroup(resourceGroupName, options);
118
+ yield result.value || [];
119
+ let continuationToken = result.nextLink;
120
+ while (continuationToken) {
121
+ result = await this._listByResourceGroupNext(
75
122
  resourceGroupName,
123
+ continuationToken,
76
124
  options
77
- },
78
- listByResourceGroupOperationSpec,
79
- callback) as Promise<Models.AvailabilityStatusesListByResourceGroupResponse>;
125
+ );
126
+ continuationToken = result.nextLink;
127
+ yield result.value || [];
128
+ }
129
+ }
130
+
131
+ private async *listByResourceGroupPagingAll(
132
+ resourceGroupName: string,
133
+ options?: AvailabilityStatusesListByResourceGroupOptionalParams
134
+ ): AsyncIterableIterator<AvailabilityStatus> {
135
+ for await (const page of this.listByResourceGroupPagingPage(
136
+ resourceGroupName,
137
+ options
138
+ )) {
139
+ yield* page;
140
+ }
80
141
  }
81
142
 
82
143
  /**
83
- * Gets current availability status for a single resource
84
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
85
- * resource type. Currently the API support not nested and one nesting level resource types :
86
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
87
- * and
88
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
89
- * @param [options] The optional parameters
90
- * @returns Promise<Models.AvailabilityStatusesGetByResourceResponse>
91
- */
92
- getByResource(resourceUri: string, options?: Models.AvailabilityStatusesGetByResourceOptionalParams): Promise<Models.AvailabilityStatusesGetByResourceResponse>;
93
- /**
94
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
95
- * resource type. Currently the API support not nested and one nesting level resource types :
96
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
97
- * and
98
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
99
- * @param callback The callback
100
- */
101
- getByResource(resourceUri: string, callback: msRest.ServiceCallback<Models.AvailabilityStatus>): void;
102
- /**
103
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
104
- * resource type. Currently the API support not nested and one nesting level resource types :
105
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
106
- * and
107
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
108
- * @param options The optional parameters
109
- * @param callback The callback
144
+ * Lists all historical availability transitions and impacting events for a single resource. Use the
145
+ * nextLink property in the response to get the next page of availability status
146
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and resource
147
+ * type. Currently the API support not nested and one nesting level resource types :
148
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
149
+ * and
150
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
151
+ * @param options The options parameters.
110
152
  */
111
- getByResource(resourceUri: string, options: Models.AvailabilityStatusesGetByResourceOptionalParams, callback: msRest.ServiceCallback<Models.AvailabilityStatus>): void;
112
- getByResource(resourceUri: string, options?: Models.AvailabilityStatusesGetByResourceOptionalParams | msRest.ServiceCallback<Models.AvailabilityStatus>, callback?: msRest.ServiceCallback<Models.AvailabilityStatus>): Promise<Models.AvailabilityStatusesGetByResourceResponse> {
113
- return this.client.sendOperationRequest(
114
- {
115
- resourceUri,
116
- options
153
+ public list(
154
+ resourceUri: string,
155
+ options?: AvailabilityStatusesListOptionalParams
156
+ ): PagedAsyncIterableIterator<AvailabilityStatus> {
157
+ const iter = this.listPagingAll(resourceUri, options);
158
+ return {
159
+ next() {
160
+ return iter.next();
117
161
  },
118
- getByResourceOperationSpec,
119
- callback) as Promise<Models.AvailabilityStatusesGetByResourceResponse>;
162
+ [Symbol.asyncIterator]() {
163
+ return this;
164
+ },
165
+ byPage: () => {
166
+ return this.listPagingPage(resourceUri, options);
167
+ }
168
+ };
169
+ }
170
+
171
+ private async *listPagingPage(
172
+ resourceUri: string,
173
+ options?: AvailabilityStatusesListOptionalParams
174
+ ): AsyncIterableIterator<AvailabilityStatus[]> {
175
+ let result = await this._list(resourceUri, options);
176
+ yield result.value || [];
177
+ let continuationToken = result.nextLink;
178
+ while (continuationToken) {
179
+ result = await this._listNext(resourceUri, continuationToken, options);
180
+ continuationToken = result.nextLink;
181
+ yield result.value || [];
182
+ }
183
+ }
184
+
185
+ private async *listPagingAll(
186
+ resourceUri: string,
187
+ options?: AvailabilityStatusesListOptionalParams
188
+ ): AsyncIterableIterator<AvailabilityStatus> {
189
+ for await (const page of this.listPagingPage(resourceUri, options)) {
190
+ yield* page;
191
+ }
120
192
  }
121
193
 
122
194
  /**
123
- * Lists all historical availability transitions and impacting events for a single resource. Use
124
- * the nextLink property in the response to get the next page of availability status
125
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
126
- * resource type. Currently the API support not nested and one nesting level resource types :
127
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
128
- * and
129
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
130
- * @param [options] The optional parameters
131
- * @returns Promise<Models.AvailabilityStatusesListResponse>
132
- */
133
- list(resourceUri: string, options?: Models.AvailabilityStatusesListOptionalParams): Promise<Models.AvailabilityStatusesListResponse>;
134
- /**
135
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
136
- * resource type. Currently the API support not nested and one nesting level resource types :
137
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
138
- * and
139
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
140
- * @param callback The callback
141
- */
142
- list(resourceUri: string, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
143
- /**
144
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
145
- * resource type. Currently the API support not nested and one nesting level resource types :
146
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
147
- * and
148
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
149
- * @param options The optional parameters
150
- * @param callback The callback
195
+ * Lists the current availability status for all the resources in the subscription. Use the nextLink
196
+ * property in the response to get the next page of availability statuses.
197
+ * @param options The options parameters.
151
198
  */
152
- list(resourceUri: string, options: Models.AvailabilityStatusesListOptionalParams, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
153
- list(resourceUri: string, options?: Models.AvailabilityStatusesListOptionalParams | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListResponse> {
199
+ private _listBySubscriptionId(
200
+ options?: AvailabilityStatusesListBySubscriptionIdOptionalParams
201
+ ): Promise<AvailabilityStatusesListBySubscriptionIdResponse> {
154
202
  return this.client.sendOperationRequest(
155
- {
156
- resourceUri,
157
- options
158
- },
159
- listOperationSpec,
160
- callback) as Promise<Models.AvailabilityStatusesListResponse>;
203
+ { options },
204
+ listBySubscriptionIdOperationSpec
205
+ );
161
206
  }
162
207
 
163
208
  /**
164
- * Lists the current availability status for all the resources in the subscription. Use the
165
- * nextLink property in the response to get the next page of availability statuses.
166
- * @param nextPageLink The NextLink from the previous successful call to List operation.
167
- * @param [options] The optional parameters
168
- * @returns Promise<Models.AvailabilityStatusesListBySubscriptionIdNextResponse>
169
- */
170
- listBySubscriptionIdNext(nextPageLink: string, options?: Models.AvailabilityStatusesListBySubscriptionIdNextOptionalParams): Promise<Models.AvailabilityStatusesListBySubscriptionIdNextResponse>;
171
- /**
172
- * @param nextPageLink The NextLink from the previous successful call to List operation.
173
- * @param callback The callback
174
- */
175
- listBySubscriptionIdNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
176
- /**
177
- * @param nextPageLink The NextLink from the previous successful call to List operation.
178
- * @param options The optional parameters
179
- * @param callback The callback
209
+ * Lists the current availability status for all the resources in the resource group. Use the nextLink
210
+ * property in the response to get the next page of availability statuses.
211
+ * @param resourceGroupName The name of the resource group.
212
+ * @param options The options parameters.
180
213
  */
181
- listBySubscriptionIdNext(nextPageLink: string, options: Models.AvailabilityStatusesListBySubscriptionIdNextOptionalParams, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
182
- listBySubscriptionIdNext(nextPageLink: string, options?: Models.AvailabilityStatusesListBySubscriptionIdNextOptionalParams | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListBySubscriptionIdNextResponse> {
214
+ private _listByResourceGroup(
215
+ resourceGroupName: string,
216
+ options?: AvailabilityStatusesListByResourceGroupOptionalParams
217
+ ): Promise<AvailabilityStatusesListByResourceGroupResponse> {
183
218
  return this.client.sendOperationRequest(
184
- {
185
- nextPageLink,
186
- options
187
- },
188
- listBySubscriptionIdNextOperationSpec,
189
- callback) as Promise<Models.AvailabilityStatusesListBySubscriptionIdNextResponse>;
219
+ { resourceGroupName, options },
220
+ listByResourceGroupOperationSpec
221
+ );
190
222
  }
191
223
 
192
224
  /**
193
- * Lists the current availability status for all the resources in the resource group. Use the
194
- * nextLink property in the response to get the next page of availability statuses.
195
- * @param nextPageLink The NextLink from the previous successful call to List operation.
196
- * @param [options] The optional parameters
197
- * @returns Promise<Models.AvailabilityStatusesListByResourceGroupNextResponse>
198
- */
199
- listByResourceGroupNext(nextPageLink: string, options?: Models.AvailabilityStatusesListByResourceGroupNextOptionalParams): Promise<Models.AvailabilityStatusesListByResourceGroupNextResponse>;
200
- /**
201
- * @param nextPageLink The NextLink from the previous successful call to List operation.
202
- * @param callback The callback
225
+ * Gets current availability status for a single resource
226
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and resource
227
+ * type. Currently the API support not nested and one nesting level resource types :
228
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
229
+ * and
230
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
231
+ * @param options The options parameters.
203
232
  */
204
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
233
+ getByResource(
234
+ resourceUri: string,
235
+ options?: AvailabilityStatusesGetByResourceOptionalParams
236
+ ): Promise<AvailabilityStatusesGetByResourceResponse> {
237
+ return this.client.sendOperationRequest(
238
+ { resourceUri, options },
239
+ getByResourceOperationSpec
240
+ );
241
+ }
242
+
205
243
  /**
206
- * @param nextPageLink The NextLink from the previous successful call to List operation.
207
- * @param options The optional parameters
208
- * @param callback The callback
244
+ * Lists all historical availability transitions and impacting events for a single resource. Use the
245
+ * nextLink property in the response to get the next page of availability status
246
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and resource
247
+ * type. Currently the API support not nested and one nesting level resource types :
248
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
249
+ * and
250
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
251
+ * @param options The options parameters.
209
252
  */
210
- listByResourceGroupNext(nextPageLink: string, options: Models.AvailabilityStatusesListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
211
- listByResourceGroupNext(nextPageLink: string, options?: Models.AvailabilityStatusesListByResourceGroupNextOptionalParams | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListByResourceGroupNextResponse> {
253
+ private _list(
254
+ resourceUri: string,
255
+ options?: AvailabilityStatusesListOptionalParams
256
+ ): Promise<AvailabilityStatusesListResponse> {
212
257
  return this.client.sendOperationRequest(
213
- {
214
- nextPageLink,
215
- options
216
- },
217
- listByResourceGroupNextOperationSpec,
218
- callback) as Promise<Models.AvailabilityStatusesListByResourceGroupNextResponse>;
258
+ { resourceUri, options },
259
+ listOperationSpec
260
+ );
219
261
  }
220
262
 
221
263
  /**
222
- * Lists all historical availability transitions and impacting events for a single resource. Use
223
- * the nextLink property in the response to get the next page of availability status
224
- * @param nextPageLink The NextLink from the previous successful call to List operation.
225
- * @param [options] The optional parameters
226
- * @returns Promise<Models.AvailabilityStatusesListNextResponse>
264
+ * ListBySubscriptionIdNext
265
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
266
+ * @param options The options parameters.
227
267
  */
228
- listNext(nextPageLink: string, options?: Models.AvailabilityStatusesListNextOptionalParams): Promise<Models.AvailabilityStatusesListNextResponse>;
268
+ private _listBySubscriptionIdNext(
269
+ nextLink: string,
270
+ options?: AvailabilityStatusesListBySubscriptionIdNextOptionalParams
271
+ ): Promise<AvailabilityStatusesListBySubscriptionIdNextResponse> {
272
+ return this.client.sendOperationRequest(
273
+ { nextLink, options },
274
+ listBySubscriptionIdNextOperationSpec
275
+ );
276
+ }
277
+
229
278
  /**
230
- * @param nextPageLink The NextLink from the previous successful call to List operation.
231
- * @param callback The callback
279
+ * ListByResourceGroupNext
280
+ * @param resourceGroupName The name of the resource group.
281
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
282
+ * @param options The options parameters.
232
283
  */
233
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
284
+ private _listByResourceGroupNext(
285
+ resourceGroupName: string,
286
+ nextLink: string,
287
+ options?: AvailabilityStatusesListByResourceGroupNextOptionalParams
288
+ ): Promise<AvailabilityStatusesListByResourceGroupNextResponse> {
289
+ return this.client.sendOperationRequest(
290
+ { resourceGroupName, nextLink, options },
291
+ listByResourceGroupNextOperationSpec
292
+ );
293
+ }
294
+
234
295
  /**
235
- * @param nextPageLink The NextLink from the previous successful call to List operation.
236
- * @param options The optional parameters
237
- * @param callback The callback
296
+ * ListNext
297
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and resource
298
+ * type. Currently the API support not nested and one nesting level resource types :
299
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
300
+ * and
301
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
302
+ * @param nextLink The nextLink from the previous successful call to the List method.
303
+ * @param options The options parameters.
238
304
  */
239
- listNext(nextPageLink: string, options: Models.AvailabilityStatusesListNextOptionalParams, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
240
- listNext(nextPageLink: string, options?: Models.AvailabilityStatusesListNextOptionalParams | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListNextResponse> {
305
+ private _listNext(
306
+ resourceUri: string,
307
+ nextLink: string,
308
+ options?: AvailabilityStatusesListNextOptionalParams
309
+ ): Promise<AvailabilityStatusesListNextResponse> {
241
310
  return this.client.sendOperationRequest(
242
- {
243
- nextPageLink,
244
- options
245
- },
246
- listNextOperationSpec,
247
- callback) as Promise<Models.AvailabilityStatusesListNextResponse>;
311
+ { resourceUri, nextLink, options },
312
+ listNextOperationSpec
313
+ );
248
314
  }
249
315
  }
250
-
251
316
  // Operation Specifications
252
- const serializer = new msRest.Serializer(Mappers);
253
- const listBySubscriptionIdOperationSpec: msRest.OperationSpec = {
317
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
318
+
319
+ const listBySubscriptionIdOperationSpec: coreClient.OperationSpec = {
320
+ path:
321
+ "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",
254
322
  httpMethod: "GET",
255
- path: "subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",
256
- urlParameters: [
257
- Parameters.subscriptionId
258
- ],
259
- queryParameters: [
260
- Parameters.apiVersion,
261
- Parameters.filter,
262
- Parameters.expand
263
- ],
264
- headerParameters: [
265
- Parameters.acceptLanguage
266
- ],
267
323
  responses: {
268
324
  200: {
269
325
  bodyMapper: Mappers.AvailabilityStatusListResult
@@ -272,24 +328,19 @@ const listBySubscriptionIdOperationSpec: msRest.OperationSpec = {
272
328
  bodyMapper: Mappers.ErrorResponse
273
329
  }
274
330
  },
275
- serializer
276
- };
277
-
278
- const listByResourceGroupOperationSpec: msRest.OperationSpec = {
279
- httpMethod: "GET",
280
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",
281
- urlParameters: [
282
- Parameters.subscriptionId,
283
- Parameters.resourceGroupName
284
- ],
285
331
  queryParameters: [
286
332
  Parameters.apiVersion,
287
333
  Parameters.filter,
288
334
  Parameters.expand
289
335
  ],
290
- headerParameters: [
291
- Parameters.acceptLanguage
292
- ],
336
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
337
+ headerParameters: [Parameters.accept],
338
+ serializer
339
+ };
340
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
341
+ path:
342
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",
343
+ httpMethod: "GET",
293
344
  responses: {
294
345
  200: {
295
346
  bodyMapper: Mappers.AvailabilityStatusListResult
@@ -298,23 +349,23 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
298
349
  bodyMapper: Mappers.ErrorResponse
299
350
  }
300
351
  },
301
- serializer
302
- };
303
-
304
- const getByResourceOperationSpec: msRest.OperationSpec = {
305
- httpMethod: "GET",
306
- path: "{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
307
- urlParameters: [
308
- Parameters.resourceUri
309
- ],
310
352
  queryParameters: [
311
353
  Parameters.apiVersion,
312
354
  Parameters.filter,
313
355
  Parameters.expand
314
356
  ],
315
- headerParameters: [
316
- Parameters.acceptLanguage
357
+ urlParameters: [
358
+ Parameters.$host,
359
+ Parameters.subscriptionId,
360
+ Parameters.resourceGroupName
317
361
  ],
362
+ headerParameters: [Parameters.accept],
363
+ serializer
364
+ };
365
+ const getByResourceOperationSpec: coreClient.OperationSpec = {
366
+ path:
367
+ "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
368
+ httpMethod: "GET",
318
369
  responses: {
319
370
  200: {
320
371
  bodyMapper: Mappers.AvailabilityStatus
@@ -323,23 +374,19 @@ const getByResourceOperationSpec: msRest.OperationSpec = {
323
374
  bodyMapper: Mappers.ErrorResponse
324
375
  }
325
376
  },
326
- serializer
327
- };
328
-
329
- const listOperationSpec: msRest.OperationSpec = {
330
- httpMethod: "GET",
331
- path: "{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",
332
- urlParameters: [
333
- Parameters.resourceUri
334
- ],
335
377
  queryParameters: [
336
378
  Parameters.apiVersion,
337
379
  Parameters.filter,
338
380
  Parameters.expand
339
381
  ],
340
- headerParameters: [
341
- Parameters.acceptLanguage
342
- ],
382
+ urlParameters: [Parameters.$host, Parameters.resourceUri],
383
+ headerParameters: [Parameters.accept],
384
+ serializer
385
+ };
386
+ const listOperationSpec: coreClient.OperationSpec = {
387
+ path:
388
+ "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",
389
+ httpMethod: "GET",
343
390
  responses: {
344
391
  200: {
345
392
  bodyMapper: Mappers.AvailabilityStatusListResult
@@ -348,24 +395,18 @@ const listOperationSpec: msRest.OperationSpec = {
348
395
  bodyMapper: Mappers.ErrorResponse
349
396
  }
350
397
  },
351
- serializer
352
- };
353
-
354
- const listBySubscriptionIdNextOperationSpec: msRest.OperationSpec = {
355
- httpMethod: "GET",
356
- baseUrl: "https://management.azure.com",
357
- path: "{nextLink}",
358
- urlParameters: [
359
- Parameters.nextPageLink
360
- ],
361
398
  queryParameters: [
362
399
  Parameters.apiVersion,
363
400
  Parameters.filter,
364
401
  Parameters.expand
365
402
  ],
366
- headerParameters: [
367
- Parameters.acceptLanguage
368
- ],
403
+ urlParameters: [Parameters.$host, Parameters.resourceUri],
404
+ headerParameters: [Parameters.accept],
405
+ serializer
406
+ };
407
+ const listBySubscriptionIdNextOperationSpec: coreClient.OperationSpec = {
408
+ path: "{nextLink}",
409
+ httpMethod: "GET",
369
410
  responses: {
370
411
  200: {
371
412
  bodyMapper: Mappers.AvailabilityStatusListResult
@@ -374,24 +415,22 @@ const listBySubscriptionIdNextOperationSpec: msRest.OperationSpec = {
374
415
  bodyMapper: Mappers.ErrorResponse
375
416
  }
376
417
  },
377
- serializer
378
- };
379
-
380
- const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
381
- httpMethod: "GET",
382
- baseUrl: "https://management.azure.com",
383
- path: "{nextLink}",
384
- urlParameters: [
385
- Parameters.nextPageLink
386
- ],
387
418
  queryParameters: [
388
419
  Parameters.apiVersion,
389
420
  Parameters.filter,
390
421
  Parameters.expand
391
422
  ],
392
- headerParameters: [
393
- Parameters.acceptLanguage
423
+ urlParameters: [
424
+ Parameters.$host,
425
+ Parameters.subscriptionId,
426
+ Parameters.nextLink
394
427
  ],
428
+ headerParameters: [Parameters.accept],
429
+ serializer
430
+ };
431
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
432
+ path: "{nextLink}",
433
+ httpMethod: "GET",
395
434
  responses: {
396
435
  200: {
397
436
  bodyMapper: Mappers.AvailabilityStatusListResult
@@ -400,24 +439,23 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
400
439
  bodyMapper: Mappers.ErrorResponse
401
440
  }
402
441
  },
403
- serializer
404
- };
405
-
406
- const listNextOperationSpec: msRest.OperationSpec = {
407
- httpMethod: "GET",
408
- baseUrl: "https://management.azure.com",
409
- path: "{nextLink}",
410
- urlParameters: [
411
- Parameters.nextPageLink
412
- ],
413
442
  queryParameters: [
414
443
  Parameters.apiVersion,
415
444
  Parameters.filter,
416
445
  Parameters.expand
417
446
  ],
418
- headerParameters: [
419
- Parameters.acceptLanguage
447
+ urlParameters: [
448
+ Parameters.$host,
449
+ Parameters.subscriptionId,
450
+ Parameters.resourceGroupName,
451
+ Parameters.nextLink
420
452
  ],
453
+ headerParameters: [Parameters.accept],
454
+ serializer
455
+ };
456
+ const listNextOperationSpec: coreClient.OperationSpec = {
457
+ path: "{nextLink}",
458
+ httpMethod: "GET",
421
459
  responses: {
422
460
  200: {
423
461
  bodyMapper: Mappers.AvailabilityStatusListResult
@@ -426,5 +464,16 @@ const listNextOperationSpec: msRest.OperationSpec = {
426
464
  bodyMapper: Mappers.ErrorResponse
427
465
  }
428
466
  },
467
+ queryParameters: [
468
+ Parameters.apiVersion,
469
+ Parameters.filter,
470
+ Parameters.expand
471
+ ],
472
+ urlParameters: [
473
+ Parameters.$host,
474
+ Parameters.resourceUri,
475
+ Parameters.nextLink
476
+ ],
477
+ headerParameters: [Parameters.accept],
429
478
  serializer
430
479
  };