@azure/arm-resourcehealth 1.1.0 → 3.0.0-alpha.20211124.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +21 -21
  3. package/README.md +98 -100
  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 +393 -170
  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 +52 -36
  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/dist-esm/src/operations/index.d.ts +6 -0
  49. package/dist-esm/src/operations/index.d.ts.map +1 -0
  50. package/dist-esm/src/operations/index.js +13 -0
  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/dist-esm/src/operationsInterfaces/availabilityStatuses.js +9 -0
  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/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js +9 -0
  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/dist-esm/src/operationsInterfaces/operations.js +9 -0
  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 +69 -25
  85. package/review/arm-resourcehealth.api.md +396 -0
  86. package/rollup.config.js +184 -27
  87. package/src/index.ts +13 -0
  88. package/src/microsoftResourceHealth.ts +53 -0
  89. package/src/microsoftResourceHealthContext.ts +71 -0
  90. package/src/models/index.ts +478 -0
  91. package/{lib → src}/models/mappers.ts +409 -175
  92. package/src/models/parameters.ts +127 -0
  93. package/src/operations/availabilityStatuses.ts +479 -0
  94. package/src/operations/childAvailabilityStatuses.ts +210 -0
  95. package/src/operations/childResources.ts +168 -0
  96. package/src/operations/emergingIssues.ts +165 -0
  97. package/src/operations/index.ts +13 -0
  98. package/src/operations/operations.ts +59 -0
  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 +4 -4
  106. package/types/arm-resourcehealth.d.ts +588 -0
  107. package/types/tsdoc-metadata.json +11 -0
  108. package/dist/arm-resourcehealth.js +0 -1037
  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 -20
  113. package/esm/microsoftResourceHealth.d.ts.map +0 -1
  114. package/esm/microsoftResourceHealth.js +0 -35
  115. package/esm/microsoftResourceHealth.js.map +0 -1
  116. package/esm/microsoftResourceHealthContext.d.ts +0 -17
  117. package/esm/microsoftResourceHealthContext.d.ts.map +0 -1
  118. package/esm/microsoftResourceHealthContext.js +0 -57
  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 -11
  123. package/esm/models/availabilityStatusesMappers.js.map +0 -1
  124. package/esm/models/index.d.ts +0 -589
  125. package/esm/models/index.d.ts.map +0 -1
  126. package/esm/models/index.js +0 -10
  127. package/esm/models/index.js.map +0 -1
  128. package/esm/models/mappers.d.ts +0 -16
  129. package/esm/models/mappers.d.ts.map +0 -1
  130. package/esm/models/mappers.js.map +0 -1
  131. package/esm/models/operationsMappers.d.ts +0 -2
  132. package/esm/models/operationsMappers.d.ts.map +0 -1
  133. package/esm/models/operationsMappers.js +0 -11
  134. package/esm/models/operationsMappers.js.map +0 -1
  135. package/esm/models/parameters.d.ts +0 -10
  136. package/esm/models/parameters.d.ts.map +0 -1
  137. package/esm/models/parameters.js.map +0 -1
  138. package/esm/operations/availabilityStatuses.d.ts +0 -166
  139. package/esm/operations/availabilityStatuses.d.ts.map +0 -1
  140. package/esm/operations/availabilityStatuses.js +0 -225
  141. package/esm/operations/availabilityStatuses.js.map +0 -1
  142. package/esm/operations/index.d.ts +0 -3
  143. package/esm/operations/index.d.ts.map +0 -1
  144. package/esm/operations/index.js +0 -12
  145. package/esm/operations/index.js.map +0 -1
  146. package/esm/operations/operations.d.ts +0 -28
  147. package/esm/operations/operations.d.ts.map +0 -1
  148. package/esm/operations/operations.js +0 -51
  149. package/esm/operations/operations.js.map +0 -1
  150. package/lib/microsoftResourceHealth.ts +0 -45
  151. package/lib/microsoftResourceHealthContext.ts +0 -63
  152. package/lib/models/availabilityStatusesMappers.ts +0 -22
  153. package/lib/models/index.ts +0 -628
  154. package/lib/models/operationsMappers.ts +0 -17
  155. package/lib/models/parameters.ts +0 -98
  156. package/lib/operations/availabilityStatuses.ts +0 -416
  157. package/lib/operations/index.ts +0 -12
  158. package/lib/operations/operations.ts +0 -74
@@ -1,98 +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 expand: msRest.OperationQueryParameter = {
34
- parameterPath: [
35
- "options",
36
- "expand"
37
- ],
38
- mapper: {
39
- serializedName: "$expand",
40
- type: {
41
- name: "String"
42
- }
43
- }
44
- };
45
- export const filter: msRest.OperationQueryParameter = {
46
- parameterPath: [
47
- "options",
48
- "filter"
49
- ],
50
- mapper: {
51
- serializedName: "$filter",
52
- type: {
53
- name: "String"
54
- }
55
- }
56
- };
57
- export const nextPageLink: msRest.OperationURLParameter = {
58
- parameterPath: "nextPageLink",
59
- mapper: {
60
- required: true,
61
- serializedName: "nextLink",
62
- type: {
63
- name: "String"
64
- }
65
- },
66
- skipEncoding: true
67
- };
68
- export const resourceGroupName: msRest.OperationURLParameter = {
69
- parameterPath: "resourceGroupName",
70
- mapper: {
71
- required: true,
72
- serializedName: "resourceGroupName",
73
- type: {
74
- name: "String"
75
- }
76
- }
77
- };
78
- export const resourceUri: msRest.OperationURLParameter = {
79
- parameterPath: "resourceUri",
80
- mapper: {
81
- required: true,
82
- serializedName: "resourceUri",
83
- type: {
84
- name: "String"
85
- }
86
- },
87
- skipEncoding: true
88
- };
89
- export const subscriptionId: msRest.OperationURLParameter = {
90
- parameterPath: "subscriptionId",
91
- mapper: {
92
- required: true,
93
- serializedName: "subscriptionId",
94
- type: {
95
- name: "String"
96
- }
97
- }
98
- };
@@ -1,416 +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/availabilityStatusesMappers";
14
- import * as Parameters from "../models/parameters";
15
- import { MicrosoftResourceHealthContext } from "../microsoftResourceHealthContext";
16
-
17
- /** Class representing a AvailabilityStatuses. */
18
- export class AvailabilityStatuses {
19
- private readonly client: MicrosoftResourceHealthContext;
20
-
21
- /**
22
- * Create a AvailabilityStatuses.
23
- * @param {MicrosoftResourceHealthContext} client Reference to the service client.
24
- */
25
- constructor(client: MicrosoftResourceHealthContext) {
26
- this.client = client;
27
- }
28
-
29
- /**
30
- * Lists the current availability status for all the resources in the subscription. Use the
31
- * nextLink property in the response to get the next page of availability statuses.
32
- * @param [options] The optional parameters
33
- * @returns Promise<Models.AvailabilityStatusesListBySubscriptionIdResponse>
34
- */
35
- listBySubscriptionId(options?: Models.AvailabilityStatusesListBySubscriptionIdOptionalParams): Promise<Models.AvailabilityStatusesListBySubscriptionIdResponse>;
36
- /**
37
- * @param callback The callback
38
- */
39
- listBySubscriptionId(callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
40
- /**
41
- * @param options The optional parameters
42
- * @param callback The callback
43
- */
44
- listBySubscriptionId(options: Models.AvailabilityStatusesListBySubscriptionIdOptionalParams, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
45
- listBySubscriptionId(options?: Models.AvailabilityStatusesListBySubscriptionIdOptionalParams | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListBySubscriptionIdResponse> {
46
- return this.client.sendOperationRequest(
47
- {
48
- options
49
- },
50
- listBySubscriptionIdOperationSpec,
51
- callback) as Promise<Models.AvailabilityStatusesListBySubscriptionIdResponse>;
52
- }
53
-
54
- /**
55
- * Lists the current availability status for all the resources in the resource group. Use the
56
- * nextLink property in the response to get the next page of availability statuses.
57
- * @param resourceGroupName The name of the resource group.
58
- * @param [options] The optional parameters
59
- * @returns Promise<Models.AvailabilityStatusesListByResourceGroupResponse>
60
- */
61
- listByResourceGroup(resourceGroupName: string, options?: Models.AvailabilityStatusesListByResourceGroupOptionalParams): Promise<Models.AvailabilityStatusesListByResourceGroupResponse>;
62
- /**
63
- * @param resourceGroupName The name of the resource group.
64
- * @param callback The callback
65
- */
66
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
67
- /**
68
- * @param resourceGroupName The name of the resource group.
69
- * @param options The optional parameters
70
- * @param callback The callback
71
- */
72
- listByResourceGroup(resourceGroupName: string, options: Models.AvailabilityStatusesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
73
- listByResourceGroup(resourceGroupName: string, options?: Models.AvailabilityStatusesListByResourceGroupOptionalParams | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListByResourceGroupResponse> {
74
- return this.client.sendOperationRequest(
75
- {
76
- resourceGroupName,
77
- options
78
- },
79
- listByResourceGroupOperationSpec,
80
- callback) as Promise<Models.AvailabilityStatusesListByResourceGroupResponse>;
81
- }
82
-
83
- /**
84
- * Gets current availability status for a single resource
85
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
86
- * resource type. Currently the API support not nested and one nesting level resource types :
87
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
88
- * and
89
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
90
- * @param [options] The optional parameters
91
- * @returns Promise<Models.AvailabilityStatusesGetByResourceResponse>
92
- */
93
- getByResource(resourceUri: string, options?: Models.AvailabilityStatusesGetByResourceOptionalParams): Promise<Models.AvailabilityStatusesGetByResourceResponse>;
94
- /**
95
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
96
- * resource type. Currently the API support not nested and one nesting level resource types :
97
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
98
- * and
99
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
100
- * @param callback The callback
101
- */
102
- getByResource(resourceUri: string, callback: msRest.ServiceCallback<Models.AvailabilityStatus>): void;
103
- /**
104
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
105
- * resource type. Currently the API support not nested and one nesting level resource types :
106
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
107
- * and
108
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
109
- * @param options The optional parameters
110
- * @param callback The callback
111
- */
112
- getByResource(resourceUri: string, options: Models.AvailabilityStatusesGetByResourceOptionalParams, callback: msRest.ServiceCallback<Models.AvailabilityStatus>): void;
113
- getByResource(resourceUri: string, options?: Models.AvailabilityStatusesGetByResourceOptionalParams | msRest.ServiceCallback<Models.AvailabilityStatus>, callback?: msRest.ServiceCallback<Models.AvailabilityStatus>): Promise<Models.AvailabilityStatusesGetByResourceResponse> {
114
- return this.client.sendOperationRequest(
115
- {
116
- resourceUri,
117
- options
118
- },
119
- getByResourceOperationSpec,
120
- callback) as Promise<Models.AvailabilityStatusesGetByResourceResponse>;
121
- }
122
-
123
- /**
124
- * Lists all historical availability transitions and impacting events for a single resource. Use
125
- * the nextLink property in the response to get the next page of availability status
126
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
127
- * resource type. Currently the API support not nested and one nesting level resource types :
128
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
129
- * and
130
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
131
- * @param [options] The optional parameters
132
- * @returns Promise<Models.AvailabilityStatusesListResponse>
133
- */
134
- list(resourceUri: string, options?: Models.AvailabilityStatusesListOptionalParams): Promise<Models.AvailabilityStatusesListResponse>;
135
- /**
136
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
137
- * resource type. Currently the API support not nested and one nesting level resource types :
138
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
139
- * and
140
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
141
- * @param callback The callback
142
- */
143
- list(resourceUri: string, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
144
- /**
145
- * @param resourceUri The fully qualified ID of the resource, including the resource name and
146
- * resource type. Currently the API support not nested and one nesting level resource types :
147
- * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
148
- * and
149
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
150
- * @param options The optional parameters
151
- * @param callback The callback
152
- */
153
- list(resourceUri: string, options: Models.AvailabilityStatusesListOptionalParams, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
154
- list(resourceUri: string, options?: Models.AvailabilityStatusesListOptionalParams | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListResponse> {
155
- return this.client.sendOperationRequest(
156
- {
157
- resourceUri,
158
- options
159
- },
160
- listOperationSpec,
161
- callback) as Promise<Models.AvailabilityStatusesListResponse>;
162
- }
163
-
164
- /**
165
- * Lists the current availability status for all the resources in the subscription. Use the
166
- * nextLink property in the response to get the next page of availability statuses.
167
- * @param nextPageLink The NextLink from the previous successful call to List operation.
168
- * @param [options] The optional parameters
169
- * @returns Promise<Models.AvailabilityStatusesListBySubscriptionIdNextResponse>
170
- */
171
- listBySubscriptionIdNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.AvailabilityStatusesListBySubscriptionIdNextResponse>;
172
- /**
173
- * @param nextPageLink The NextLink from the previous successful call to List operation.
174
- * @param callback The callback
175
- */
176
- listBySubscriptionIdNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
177
- /**
178
- * @param nextPageLink The NextLink from the previous successful call to List operation.
179
- * @param options The optional parameters
180
- * @param callback The callback
181
- */
182
- listBySubscriptionIdNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
183
- listBySubscriptionIdNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListBySubscriptionIdNextResponse> {
184
- return this.client.sendOperationRequest(
185
- {
186
- nextPageLink,
187
- options
188
- },
189
- listBySubscriptionIdNextOperationSpec,
190
- callback) as Promise<Models.AvailabilityStatusesListBySubscriptionIdNextResponse>;
191
- }
192
-
193
- /**
194
- * Lists the current availability status for all the resources in the resource group. Use the
195
- * nextLink property in the response to get the next page of availability statuses.
196
- * @param nextPageLink The NextLink from the previous successful call to List operation.
197
- * @param [options] The optional parameters
198
- * @returns Promise<Models.AvailabilityStatusesListByResourceGroupNextResponse>
199
- */
200
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.AvailabilityStatusesListByResourceGroupNextResponse>;
201
- /**
202
- * @param nextPageLink The NextLink from the previous successful call to List operation.
203
- * @param callback The callback
204
- */
205
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
206
- /**
207
- * @param nextPageLink The NextLink from the previous successful call to List operation.
208
- * @param options The optional parameters
209
- * @param callback The callback
210
- */
211
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
212
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListByResourceGroupNextResponse> {
213
- return this.client.sendOperationRequest(
214
- {
215
- nextPageLink,
216
- options
217
- },
218
- listByResourceGroupNextOperationSpec,
219
- callback) as Promise<Models.AvailabilityStatusesListByResourceGroupNextResponse>;
220
- }
221
-
222
- /**
223
- * Lists all historical availability transitions and impacting events for a single resource. Use
224
- * the nextLink property in the response to get the next page of availability status
225
- * @param nextPageLink The NextLink from the previous successful call to List operation.
226
- * @param [options] The optional parameters
227
- * @returns Promise<Models.AvailabilityStatusesListNextResponse>
228
- */
229
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.AvailabilityStatusesListNextResponse>;
230
- /**
231
- * @param nextPageLink The NextLink from the previous successful call to List operation.
232
- * @param callback The callback
233
- */
234
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
235
- /**
236
- * @param nextPageLink The NextLink from the previous successful call to List operation.
237
- * @param options The optional parameters
238
- * @param callback The callback
239
- */
240
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): void;
241
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AvailabilityStatusListResult>, callback?: msRest.ServiceCallback<Models.AvailabilityStatusListResult>): Promise<Models.AvailabilityStatusesListNextResponse> {
242
- return this.client.sendOperationRequest(
243
- {
244
- nextPageLink,
245
- options
246
- },
247
- listNextOperationSpec,
248
- callback) as Promise<Models.AvailabilityStatusesListNextResponse>;
249
- }
250
- }
251
-
252
- // Operation Specifications
253
- const serializer = new msRest.Serializer(Mappers);
254
- const listBySubscriptionIdOperationSpec: msRest.OperationSpec = {
255
- httpMethod: "GET",
256
- path: "subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",
257
- urlParameters: [
258
- Parameters.subscriptionId
259
- ],
260
- queryParameters: [
261
- Parameters.apiVersion,
262
- Parameters.filter,
263
- Parameters.expand
264
- ],
265
- headerParameters: [
266
- Parameters.acceptLanguage
267
- ],
268
- responses: {
269
- 200: {
270
- bodyMapper: Mappers.AvailabilityStatusListResult
271
- },
272
- default: {
273
- bodyMapper: Mappers.ErrorResponse
274
- }
275
- },
276
- serializer
277
- };
278
-
279
- const listByResourceGroupOperationSpec: msRest.OperationSpec = {
280
- httpMethod: "GET",
281
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",
282
- urlParameters: [
283
- Parameters.subscriptionId,
284
- Parameters.resourceGroupName
285
- ],
286
- queryParameters: [
287
- Parameters.apiVersion,
288
- Parameters.filter,
289
- Parameters.expand
290
- ],
291
- headerParameters: [
292
- Parameters.acceptLanguage
293
- ],
294
- responses: {
295
- 200: {
296
- bodyMapper: Mappers.AvailabilityStatusListResult
297
- },
298
- default: {
299
- bodyMapper: Mappers.ErrorResponse
300
- }
301
- },
302
- serializer
303
- };
304
-
305
- const getByResourceOperationSpec: msRest.OperationSpec = {
306
- httpMethod: "GET",
307
- path: "{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
308
- urlParameters: [
309
- Parameters.resourceUri
310
- ],
311
- queryParameters: [
312
- Parameters.apiVersion,
313
- Parameters.filter,
314
- Parameters.expand
315
- ],
316
- headerParameters: [
317
- Parameters.acceptLanguage
318
- ],
319
- responses: {
320
- 200: {
321
- bodyMapper: Mappers.AvailabilityStatus
322
- },
323
- default: {
324
- bodyMapper: Mappers.ErrorResponse
325
- }
326
- },
327
- serializer
328
- };
329
-
330
- const listOperationSpec: msRest.OperationSpec = {
331
- httpMethod: "GET",
332
- path: "{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",
333
- urlParameters: [
334
- Parameters.resourceUri
335
- ],
336
- queryParameters: [
337
- Parameters.apiVersion,
338
- Parameters.filter,
339
- Parameters.expand
340
- ],
341
- headerParameters: [
342
- Parameters.acceptLanguage
343
- ],
344
- responses: {
345
- 200: {
346
- bodyMapper: Mappers.AvailabilityStatusListResult
347
- },
348
- default: {
349
- bodyMapper: Mappers.ErrorResponse
350
- }
351
- },
352
- serializer
353
- };
354
-
355
- const listBySubscriptionIdNextOperationSpec: msRest.OperationSpec = {
356
- httpMethod: "GET",
357
- baseUrl: "https://management.azure.com",
358
- path: "{nextLink}",
359
- urlParameters: [
360
- Parameters.nextPageLink
361
- ],
362
- headerParameters: [
363
- Parameters.acceptLanguage
364
- ],
365
- responses: {
366
- 200: {
367
- bodyMapper: Mappers.AvailabilityStatusListResult
368
- },
369
- default: {
370
- bodyMapper: Mappers.ErrorResponse
371
- }
372
- },
373
- serializer
374
- };
375
-
376
- const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
377
- httpMethod: "GET",
378
- baseUrl: "https://management.azure.com",
379
- path: "{nextLink}",
380
- urlParameters: [
381
- Parameters.nextPageLink
382
- ],
383
- headerParameters: [
384
- Parameters.acceptLanguage
385
- ],
386
- responses: {
387
- 200: {
388
- bodyMapper: Mappers.AvailabilityStatusListResult
389
- },
390
- default: {
391
- bodyMapper: Mappers.ErrorResponse
392
- }
393
- },
394
- serializer
395
- };
396
-
397
- const listNextOperationSpec: msRest.OperationSpec = {
398
- httpMethod: "GET",
399
- baseUrl: "https://management.azure.com",
400
- path: "{nextLink}",
401
- urlParameters: [
402
- Parameters.nextPageLink
403
- ],
404
- headerParameters: [
405
- Parameters.acceptLanguage
406
- ],
407
- responses: {
408
- 200: {
409
- bodyMapper: Mappers.AvailabilityStatusListResult
410
- },
411
- default: {
412
- bodyMapper: Mappers.ErrorResponse
413
- }
414
- },
415
- serializer
416
- };
@@ -1,12 +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 * from "./availabilityStatuses";
12
- export * from "./operations";
@@ -1,74 +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/operationsMappers";
14
- import * as Parameters from "../models/parameters";
15
- import { MicrosoftResourceHealthContext } from "../microsoftResourceHealthContext";
16
-
17
- /** Class representing a Operations. */
18
- export class Operations {
19
- private readonly client: MicrosoftResourceHealthContext;
20
-
21
- /**
22
- * Create a Operations.
23
- * @param {MicrosoftResourceHealthContext} client Reference to the service client.
24
- */
25
- constructor(client: MicrosoftResourceHealthContext) {
26
- this.client = client;
27
- }
28
-
29
- /**
30
- * Lists available operations for the resourcehealth resource provider
31
- * @param [options] The optional parameters
32
- * @returns Promise<Models.OperationsListResponse>
33
- */
34
- list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
35
- /**
36
- * @param callback The callback
37
- */
38
- list(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
39
- /**
40
- * @param options The optional parameters
41
- * @param callback The callback
42
- */
43
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
44
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
45
- return this.client.sendOperationRequest(
46
- {
47
- options
48
- },
49
- listOperationSpec,
50
- callback) as Promise<Models.OperationsListResponse>;
51
- }
52
- }
53
-
54
- // Operation Specifications
55
- const serializer = new msRest.Serializer(Mappers);
56
- const listOperationSpec: msRest.OperationSpec = {
57
- httpMethod: "GET",
58
- path: "providers/Microsoft.ResourceHealth/operations",
59
- queryParameters: [
60
- Parameters.apiVersion
61
- ],
62
- headerParameters: [
63
- Parameters.acceptLanguage
64
- ],
65
- responses: {
66
- 200: {
67
- bodyMapper: Mappers.OperationListResult
68
- },
69
- default: {
70
- bodyMapper: Mappers.ErrorResponse
71
- }
72
- },
73
- serializer
74
- };