@azure/arm-dynatrace 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +3622 -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/samples-dev/monitorsCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js +77 -0
  11. package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/monitorsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/monitorsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/monitorsDeleteSample.js +49 -0
  15. package/dist-esm/samples-dev/monitorsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.js +49 -0
  19. package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.js.map +1 -0
  20. package/dist-esm/samples-dev/monitorsGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/monitorsGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/monitorsGetSample.js +49 -0
  23. package/dist-esm/samples-dev/monitorsGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js +53 -0
  27. package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js.map +1 -0
  28. package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.js +49 -0
  31. package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.js.map +1 -0
  32. package/dist-esm/samples-dev/monitorsListAppServicesSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/monitorsListAppServicesSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/monitorsListAppServicesSample.js +77 -0
  35. package/dist-esm/samples-dev/monitorsListAppServicesSample.js.map +1 -0
  36. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +75 -0
  39. package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js.map +1 -0
  40. package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.js +73 -0
  43. package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.js.map +1 -0
  44. package/dist-esm/samples-dev/monitorsListHostsSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/monitorsListHostsSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/monitorsListHostsSample.js +77 -0
  47. package/dist-esm/samples-dev/monitorsListHostsSample.js.map +1 -0
  48. package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js +83 -0
  51. package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js.map +1 -0
  52. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +77 -0
  55. package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js.map +1 -0
  56. package/dist-esm/samples-dev/monitorsUpdateSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/monitorsUpdateSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/monitorsUpdateSample.js +73 -0
  59. package/dist-esm/samples-dev/monitorsUpdateSample.js.map +1 -0
  60. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/operationsListSample.js +73 -0
  63. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  64. package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.js +62 -0
  67. package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.js.map +1 -0
  68. package/dist-esm/samples-dev/singleSignOnGetSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/singleSignOnGetSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/singleSignOnGetSample.js +51 -0
  71. package/dist-esm/samples-dev/singleSignOnGetSample.js.map +1 -0
  72. package/dist-esm/samples-dev/singleSignOnListSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/singleSignOnListSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/singleSignOnListSample.js +77 -0
  75. package/dist-esm/samples-dev/singleSignOnListSample.js.map +1 -0
  76. package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +67 -0
  79. package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +1 -0
  80. package/dist-esm/samples-dev/tagRulesDeleteSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/tagRulesDeleteSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/tagRulesDeleteSample.js +51 -0
  83. package/dist-esm/samples-dev/tagRulesDeleteSample.js.map +1 -0
  84. package/dist-esm/samples-dev/tagRulesGetSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/tagRulesGetSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/tagRulesGetSample.js +51 -0
  87. package/dist-esm/samples-dev/tagRulesGetSample.js.map +1 -0
  88. package/dist-esm/samples-dev/tagRulesListSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/tagRulesListSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/tagRulesListSample.js +77 -0
  91. package/dist-esm/samples-dev/tagRulesListSample.js.map +1 -0
  92. package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/tagRulesUpdateSample.js +66 -0
  95. package/dist-esm/samples-dev/tagRulesUpdateSample.js.map +1 -0
  96. package/dist-esm/src/dynatraceObservability.d.ts +21 -0
  97. package/dist-esm/src/dynatraceObservability.d.ts.map +1 -0
  98. package/dist-esm/src/dynatraceObservability.js +72 -0
  99. package/dist-esm/src/dynatraceObservability.js.map +1 -0
  100. package/dist-esm/src/index.d.ts +5 -0
  101. package/dist-esm/src/index.d.ts.map +1 -0
  102. package/dist-esm/src/index.js +12 -0
  103. package/dist-esm/src/index.js.map +1 -0
  104. package/dist-esm/src/lroImpl.d.ts +16 -0
  105. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  106. package/dist-esm/src/lroImpl.js +29 -0
  107. package/dist-esm/src/lroImpl.js.map +1 -0
  108. package/dist-esm/src/models/index.d.ts +1065 -0
  109. package/dist-esm/src/models/index.d.ts.map +1 -0
  110. package/dist-esm/src/models/index.js +159 -0
  111. package/dist-esm/src/models/index.js.map +1 -0
  112. package/dist-esm/src/models/mappers.d.ts +44 -0
  113. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  114. package/dist-esm/src/models/mappers.js +1403 -0
  115. package/dist-esm/src/models/mappers.js.map +1 -0
  116. package/dist-esm/src/models/parameters.d.ts +19 -0
  117. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  118. package/dist-esm/src/models/parameters.js +149 -0
  119. package/dist-esm/src/models/parameters.js.map +1 -0
  120. package/dist-esm/src/operations/index.d.ts +5 -0
  121. package/dist-esm/src/operations/index.d.ts.map +1 -0
  122. package/dist-esm/src/operations/index.js +12 -0
  123. package/dist-esm/src/operations/index.js.map +1 -0
  124. package/dist-esm/src/operations/monitors.d.ts +221 -0
  125. package/dist-esm/src/operations/monitors.d.ts.map +1 -0
  126. package/dist-esm/src/operations/monitors.js +1007 -0
  127. package/dist-esm/src/operations/monitors.js.map +1 -0
  128. package/dist-esm/src/operations/operations.d.ts +32 -0
  129. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  130. package/dist-esm/src/operations/operations.js +120 -0
  131. package/dist-esm/src/operations/operations.js.map +1 -0
  132. package/dist-esm/src/operations/singleSignOn.d.ts +65 -0
  133. package/dist-esm/src/operations/singleSignOn.d.ts.map +1 -0
  134. package/dist-esm/src/operations/singleSignOn.js +260 -0
  135. package/dist-esm/src/operations/singleSignOn.js.map +1 -0
  136. package/dist-esm/src/operations/tagRules.d.ts +90 -0
  137. package/dist-esm/src/operations/tagRules.d.ts.map +1 -0
  138. package/dist-esm/src/operations/tagRules.js +372 -0
  139. package/dist-esm/src/operations/tagRules.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  141. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  143. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/monitors.d.ts +114 -0
  145. package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/monitors.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/monitors.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  149. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts +40 -0
  153. package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/singleSignOn.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/singleSignOn.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/tagRules.d.ts +65 -0
  157. package/dist-esm/src/operationsInterfaces/tagRules.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/tagRules.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/tagRules.js.map +1 -0
  160. package/dist-esm/test/sampleTest.d.ts +2 -0
  161. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  162. package/dist-esm/test/sampleTest.js +40 -0
  163. package/dist-esm/test/sampleTest.js.map +1 -0
  164. package/package.json +118 -0
  165. package/review/arm-dynatrace.api.md +910 -0
  166. package/rollup.config.js +122 -0
  167. package/src/dynatraceObservability.ts +116 -0
  168. package/src/index.ts +12 -0
  169. package/src/lroImpl.ts +34 -0
  170. package/src/models/index.ts +1218 -0
  171. package/src/models/mappers.ts +1480 -0
  172. package/src/models/parameters.ts +179 -0
  173. package/src/operations/index.ts +12 -0
  174. package/src/operations/monitors.ts +1367 -0
  175. package/src/operations/operations.ts +137 -0
  176. package/src/operations/singleSignOn.ts +357 -0
  177. package/src/operations/tagRules.ts +519 -0
  178. package/src/operationsInterfaces/index.ts +12 -0
  179. package/src/operationsInterfaces/monitors.ts +216 -0
  180. package/src/operationsInterfaces/operations.ts +22 -0
  181. package/src/operationsInterfaces/singleSignOn.ts +82 -0
  182. package/src/operationsInterfaces/tagRules.ts +127 -0
  183. package/tsconfig.json +33 -0
  184. package/types/arm-dynatrace.d.ts +1451 -0
  185. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,1007 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing Monitors operations. */
16
+ export class MonitorsImpl {
17
+ /**
18
+ * Initialize a new instance of the class Monitors class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * List the resources currently being monitored by the Dynatrace monitor resource.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param monitorName Monitor resource name
28
+ * @param options The options parameters.
29
+ */
30
+ listMonitoredResources(resourceGroupName, monitorName, options) {
31
+ const iter = this.listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options);
41
+ }
42
+ };
43
+ }
44
+ listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options) {
45
+ return __asyncGenerator(this, arguments, function* listMonitoredResourcesPagingPage_1() {
46
+ let result = yield __await(this._listMonitoredResources(resourceGroupName, monitorName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listMonitoredResourcesNext(resourceGroupName, monitorName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options) {
57
+ return __asyncGenerator(this, arguments, function* listMonitoredResourcesPagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * List all MonitorResource by subscriptionId
76
+ * @param options The options parameters.
77
+ */
78
+ listBySubscriptionId(options) {
79
+ const iter = this.listBySubscriptionIdPagingAll(options);
80
+ return {
81
+ next() {
82
+ return iter.next();
83
+ },
84
+ [Symbol.asyncIterator]() {
85
+ return this;
86
+ },
87
+ byPage: () => {
88
+ return this.listBySubscriptionIdPagingPage(options);
89
+ }
90
+ };
91
+ }
92
+ listBySubscriptionIdPagingPage(options) {
93
+ return __asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
94
+ let result = yield __await(this._listBySubscriptionId(options));
95
+ yield yield __await(result.value || []);
96
+ let continuationToken = result.nextLink;
97
+ while (continuationToken) {
98
+ result = yield __await(this._listBySubscriptionIdNext(continuationToken, options));
99
+ continuationToken = result.nextLink;
100
+ yield yield __await(result.value || []);
101
+ }
102
+ });
103
+ }
104
+ listBySubscriptionIdPagingAll(options) {
105
+ return __asyncGenerator(this, arguments, function* listBySubscriptionIdPagingAll_1() {
106
+ var e_2, _a;
107
+ try {
108
+ for (var _b = __asyncValues(this.listBySubscriptionIdPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
109
+ const page = _c.value;
110
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
111
+ }
112
+ }
113
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
114
+ finally {
115
+ try {
116
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
117
+ }
118
+ finally { if (e_2) throw e_2.error; }
119
+ }
120
+ });
121
+ }
122
+ /**
123
+ * List MonitorResource resources by resource group
124
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
125
+ * @param options The options parameters.
126
+ */
127
+ listByResourceGroup(resourceGroupName, options) {
128
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
129
+ return {
130
+ next() {
131
+ return iter.next();
132
+ },
133
+ [Symbol.asyncIterator]() {
134
+ return this;
135
+ },
136
+ byPage: () => {
137
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
138
+ }
139
+ };
140
+ }
141
+ listByResourceGroupPagingPage(resourceGroupName, options) {
142
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
143
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
144
+ yield yield __await(result.value || []);
145
+ let continuationToken = result.nextLink;
146
+ while (continuationToken) {
147
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
148
+ continuationToken = result.nextLink;
149
+ yield yield __await(result.value || []);
150
+ }
151
+ });
152
+ }
153
+ listByResourceGroupPagingAll(resourceGroupName, options) {
154
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
155
+ var e_3, _a;
156
+ try {
157
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
158
+ const page = _c.value;
159
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
160
+ }
161
+ }
162
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
163
+ finally {
164
+ try {
165
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
166
+ }
167
+ finally { if (e_3) throw e_3.error; }
168
+ }
169
+ });
170
+ }
171
+ /**
172
+ * List the compute resources currently being monitored by the Dynatrace resource.
173
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
174
+ * @param monitorName Monitor resource name
175
+ * @param options The options parameters.
176
+ */
177
+ listHosts(resourceGroupName, monitorName, options) {
178
+ const iter = this.listHostsPagingAll(resourceGroupName, monitorName, options);
179
+ return {
180
+ next() {
181
+ return iter.next();
182
+ },
183
+ [Symbol.asyncIterator]() {
184
+ return this;
185
+ },
186
+ byPage: () => {
187
+ return this.listHostsPagingPage(resourceGroupName, monitorName, options);
188
+ }
189
+ };
190
+ }
191
+ listHostsPagingPage(resourceGroupName, monitorName, options) {
192
+ return __asyncGenerator(this, arguments, function* listHostsPagingPage_1() {
193
+ let result = yield __await(this._listHosts(resourceGroupName, monitorName, options));
194
+ yield yield __await(result.value || []);
195
+ let continuationToken = result.nextLink;
196
+ while (continuationToken) {
197
+ result = yield __await(this._listHostsNext(resourceGroupName, monitorName, continuationToken, options));
198
+ continuationToken = result.nextLink;
199
+ yield yield __await(result.value || []);
200
+ }
201
+ });
202
+ }
203
+ listHostsPagingAll(resourceGroupName, monitorName, options) {
204
+ return __asyncGenerator(this, arguments, function* listHostsPagingAll_1() {
205
+ var e_4, _a;
206
+ try {
207
+ for (var _b = __asyncValues(this.listHostsPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
208
+ const page = _c.value;
209
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
210
+ }
211
+ }
212
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
213
+ finally {
214
+ try {
215
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
216
+ }
217
+ finally { if (e_4) throw e_4.error; }
218
+ }
219
+ });
220
+ }
221
+ /**
222
+ * Gets list of App Services with Dynatrace PaaS OneAgent enabled
223
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
224
+ * @param monitorName Monitor resource name
225
+ * @param options The options parameters.
226
+ */
227
+ listAppServices(resourceGroupName, monitorName, options) {
228
+ const iter = this.listAppServicesPagingAll(resourceGroupName, monitorName, options);
229
+ return {
230
+ next() {
231
+ return iter.next();
232
+ },
233
+ [Symbol.asyncIterator]() {
234
+ return this;
235
+ },
236
+ byPage: () => {
237
+ return this.listAppServicesPagingPage(resourceGroupName, monitorName, options);
238
+ }
239
+ };
240
+ }
241
+ listAppServicesPagingPage(resourceGroupName, monitorName, options) {
242
+ return __asyncGenerator(this, arguments, function* listAppServicesPagingPage_1() {
243
+ let result = yield __await(this._listAppServices(resourceGroupName, monitorName, options));
244
+ yield yield __await(result.value || []);
245
+ let continuationToken = result.nextLink;
246
+ while (continuationToken) {
247
+ result = yield __await(this._listAppServicesNext(resourceGroupName, monitorName, continuationToken, options));
248
+ continuationToken = result.nextLink;
249
+ yield yield __await(result.value || []);
250
+ }
251
+ });
252
+ }
253
+ listAppServicesPagingAll(resourceGroupName, monitorName, options) {
254
+ return __asyncGenerator(this, arguments, function* listAppServicesPagingAll_1() {
255
+ var e_5, _a;
256
+ try {
257
+ for (var _b = __asyncValues(this.listAppServicesPagingPage(resourceGroupName, monitorName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
258
+ const page = _c.value;
259
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
260
+ }
261
+ }
262
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
263
+ finally {
264
+ try {
265
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
266
+ }
267
+ finally { if (e_5) throw e_5.error; }
268
+ }
269
+ });
270
+ }
271
+ /**
272
+ * Gets all the Dynatrace environments that a user can link a azure resource to
273
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
274
+ * @param monitorName Monitor resource name
275
+ * @param request The details of the linkable environment request.
276
+ * @param options The options parameters.
277
+ */
278
+ listLinkableEnvironments(resourceGroupName, monitorName, request, options) {
279
+ const iter = this.listLinkableEnvironmentsPagingAll(resourceGroupName, monitorName, request, options);
280
+ return {
281
+ next() {
282
+ return iter.next();
283
+ },
284
+ [Symbol.asyncIterator]() {
285
+ return this;
286
+ },
287
+ byPage: () => {
288
+ return this.listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options);
289
+ }
290
+ };
291
+ }
292
+ listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options) {
293
+ return __asyncGenerator(this, arguments, function* listLinkableEnvironmentsPagingPage_1() {
294
+ let result = yield __await(this._listLinkableEnvironments(resourceGroupName, monitorName, request, options));
295
+ yield yield __await(result.value || []);
296
+ let continuationToken = result.nextLink;
297
+ while (continuationToken) {
298
+ result = yield __await(this._listLinkableEnvironmentsNext(resourceGroupName, monitorName, request, continuationToken, options));
299
+ continuationToken = result.nextLink;
300
+ yield yield __await(result.value || []);
301
+ }
302
+ });
303
+ }
304
+ listLinkableEnvironmentsPagingAll(resourceGroupName, monitorName, request, options) {
305
+ return __asyncGenerator(this, arguments, function* listLinkableEnvironmentsPagingAll_1() {
306
+ var e_6, _a;
307
+ try {
308
+ for (var _b = __asyncValues(this.listLinkableEnvironmentsPagingPage(resourceGroupName, monitorName, request, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
309
+ const page = _c.value;
310
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
311
+ }
312
+ }
313
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
314
+ finally {
315
+ try {
316
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
317
+ }
318
+ finally { if (e_6) throw e_6.error; }
319
+ }
320
+ });
321
+ }
322
+ /**
323
+ * Gets the user account credentials for a Monitor
324
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
325
+ * @param monitorName Monitor resource name
326
+ * @param options The options parameters.
327
+ */
328
+ getAccountCredentials(resourceGroupName, monitorName, options) {
329
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getAccountCredentialsOperationSpec);
330
+ }
331
+ /**
332
+ * List the resources currently being monitored by the Dynatrace monitor resource.
333
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
334
+ * @param monitorName Monitor resource name
335
+ * @param options The options parameters.
336
+ */
337
+ _listMonitoredResources(resourceGroupName, monitorName, options) {
338
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listMonitoredResourcesOperationSpec);
339
+ }
340
+ /**
341
+ * Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a
342
+ * VM.
343
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
344
+ * @param monitorName Monitor resource name
345
+ * @param options The options parameters.
346
+ */
347
+ getVMHostPayload(resourceGroupName, monitorName, options) {
348
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getVMHostPayloadOperationSpec);
349
+ }
350
+ /**
351
+ * Get a MonitorResource
352
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
353
+ * @param monitorName Monitor resource name
354
+ * @param options The options parameters.
355
+ */
356
+ get(resourceGroupName, monitorName, options) {
357
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getOperationSpec);
358
+ }
359
+ /**
360
+ * Create a MonitorResource
361
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
362
+ * @param monitorName Monitor resource name
363
+ * @param resource Resource create parameters.
364
+ * @param options The options parameters.
365
+ */
366
+ beginCreateOrUpdate(resourceGroupName, monitorName, resource, options) {
367
+ return __awaiter(this, void 0, void 0, function* () {
368
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
369
+ return this.client.sendOperationRequest(args, spec);
370
+ });
371
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
372
+ var _a;
373
+ let currentRawResponse = undefined;
374
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
375
+ const callback = (rawResponse, flatResponse) => {
376
+ currentRawResponse = rawResponse;
377
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
378
+ };
379
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
380
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
381
+ return {
382
+ flatResponse,
383
+ rawResponse: {
384
+ statusCode: currentRawResponse.status,
385
+ body: currentRawResponse.parsedBody,
386
+ headers: currentRawResponse.headers.toJSON()
387
+ }
388
+ };
389
+ });
390
+ const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, resource, options }, createOrUpdateOperationSpec);
391
+ const poller = new LroEngine(lro, {
392
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
393
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
394
+ lroResourceLocationConfig: "azure-async-operation"
395
+ });
396
+ yield poller.poll();
397
+ return poller;
398
+ });
399
+ }
400
+ /**
401
+ * Create a MonitorResource
402
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
403
+ * @param monitorName Monitor resource name
404
+ * @param resource Resource create parameters.
405
+ * @param options The options parameters.
406
+ */
407
+ beginCreateOrUpdateAndWait(resourceGroupName, monitorName, resource, options) {
408
+ return __awaiter(this, void 0, void 0, function* () {
409
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, monitorName, resource, options);
410
+ return poller.pollUntilDone();
411
+ });
412
+ }
413
+ /**
414
+ * Update a MonitorResource
415
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
416
+ * @param monitorName Monitor resource name
417
+ * @param resource The resource properties to be updated.
418
+ * @param options The options parameters.
419
+ */
420
+ update(resourceGroupName, monitorName, resource, options) {
421
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, resource, options }, updateOperationSpec);
422
+ }
423
+ /**
424
+ * Delete a MonitorResource
425
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
426
+ * @param monitorName Monitor resource name
427
+ * @param options The options parameters.
428
+ */
429
+ beginDelete(resourceGroupName, monitorName, options) {
430
+ return __awaiter(this, void 0, void 0, function* () {
431
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
432
+ return this.client.sendOperationRequest(args, spec);
433
+ });
434
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
435
+ var _a;
436
+ let currentRawResponse = undefined;
437
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
438
+ const callback = (rawResponse, flatResponse) => {
439
+ currentRawResponse = rawResponse;
440
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
441
+ };
442
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
443
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
444
+ return {
445
+ flatResponse,
446
+ rawResponse: {
447
+ statusCode: currentRawResponse.status,
448
+ body: currentRawResponse.parsedBody,
449
+ headers: currentRawResponse.headers.toJSON()
450
+ }
451
+ };
452
+ });
453
+ const lro = new LroImpl(sendOperation, { resourceGroupName, monitorName, options }, deleteOperationSpec);
454
+ const poller = new LroEngine(lro, {
455
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
456
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
457
+ lroResourceLocationConfig: "azure-async-operation"
458
+ });
459
+ yield poller.poll();
460
+ return poller;
461
+ });
462
+ }
463
+ /**
464
+ * Delete a MonitorResource
465
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
466
+ * @param monitorName Monitor resource name
467
+ * @param options The options parameters.
468
+ */
469
+ beginDeleteAndWait(resourceGroupName, monitorName, options) {
470
+ return __awaiter(this, void 0, void 0, function* () {
471
+ const poller = yield this.beginDelete(resourceGroupName, monitorName, options);
472
+ return poller.pollUntilDone();
473
+ });
474
+ }
475
+ /**
476
+ * List all MonitorResource by subscriptionId
477
+ * @param options The options parameters.
478
+ */
479
+ _listBySubscriptionId(options) {
480
+ return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec);
481
+ }
482
+ /**
483
+ * List MonitorResource resources by resource group
484
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
485
+ * @param options The options parameters.
486
+ */
487
+ _listByResourceGroup(resourceGroupName, options) {
488
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
489
+ }
490
+ /**
491
+ * List the compute resources currently being monitored by the Dynatrace resource.
492
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
493
+ * @param monitorName Monitor resource name
494
+ * @param options The options parameters.
495
+ */
496
+ _listHosts(resourceGroupName, monitorName, options) {
497
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listHostsOperationSpec);
498
+ }
499
+ /**
500
+ * Gets list of App Services with Dynatrace PaaS OneAgent enabled
501
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
502
+ * @param monitorName Monitor resource name
503
+ * @param options The options parameters.
504
+ */
505
+ _listAppServices(resourceGroupName, monitorName, options) {
506
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listAppServicesOperationSpec);
507
+ }
508
+ /**
509
+ * Gets the SSO configuration details from the partner.
510
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
511
+ * @param monitorName Monitor resource name
512
+ * @param options The options parameters.
513
+ */
514
+ getSSODetails(resourceGroupName, monitorName, options) {
515
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getSSODetailsOperationSpec);
516
+ }
517
+ /**
518
+ * Gets all the Dynatrace environments that a user can link a azure resource to
519
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
520
+ * @param monitorName Monitor resource name
521
+ * @param request The details of the linkable environment request.
522
+ * @param options The options parameters.
523
+ */
524
+ _listLinkableEnvironments(resourceGroupName, monitorName, request, options) {
525
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, options }, listLinkableEnvironmentsOperationSpec);
526
+ }
527
+ /**
528
+ * ListMonitoredResourcesNext
529
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
530
+ * @param monitorName Monitor resource name
531
+ * @param nextLink The nextLink from the previous successful call to the ListMonitoredResources method.
532
+ * @param options The options parameters.
533
+ */
534
+ _listMonitoredResourcesNext(resourceGroupName, monitorName, nextLink, options) {
535
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listMonitoredResourcesNextOperationSpec);
536
+ }
537
+ /**
538
+ * ListBySubscriptionIdNext
539
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
540
+ * @param options The options parameters.
541
+ */
542
+ _listBySubscriptionIdNext(nextLink, options) {
543
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionIdNextOperationSpec);
544
+ }
545
+ /**
546
+ * ListByResourceGroupNext
547
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
548
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
549
+ * @param options The options parameters.
550
+ */
551
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
552
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
553
+ }
554
+ /**
555
+ * ListHostsNext
556
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
557
+ * @param monitorName Monitor resource name
558
+ * @param nextLink The nextLink from the previous successful call to the ListHosts method.
559
+ * @param options The options parameters.
560
+ */
561
+ _listHostsNext(resourceGroupName, monitorName, nextLink, options) {
562
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listHostsNextOperationSpec);
563
+ }
564
+ /**
565
+ * ListAppServicesNext
566
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
567
+ * @param monitorName Monitor resource name
568
+ * @param nextLink The nextLink from the previous successful call to the ListAppServices method.
569
+ * @param options The options parameters.
570
+ */
571
+ _listAppServicesNext(resourceGroupName, monitorName, nextLink, options) {
572
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listAppServicesNextOperationSpec);
573
+ }
574
+ /**
575
+ * ListLinkableEnvironmentsNext
576
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
577
+ * @param monitorName Monitor resource name
578
+ * @param request The details of the linkable environment request.
579
+ * @param nextLink The nextLink from the previous successful call to the ListLinkableEnvironments
580
+ * method.
581
+ * @param options The options parameters.
582
+ */
583
+ _listLinkableEnvironmentsNext(resourceGroupName, monitorName, request, nextLink, options) {
584
+ return this.client.sendOperationRequest({ resourceGroupName, monitorName, request, nextLink, options }, listLinkableEnvironmentsNextOperationSpec);
585
+ }
586
+ }
587
+ // Operation Specifications
588
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
589
+ const getAccountCredentialsOperationSpec = {
590
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getAccountCredentials",
591
+ httpMethod: "POST",
592
+ responses: {
593
+ 200: {
594
+ bodyMapper: Mappers.AccountInfoSecure
595
+ },
596
+ default: {
597
+ bodyMapper: Mappers.ErrorResponse
598
+ }
599
+ },
600
+ queryParameters: [Parameters.apiVersion],
601
+ urlParameters: [
602
+ Parameters.$host,
603
+ Parameters.subscriptionId,
604
+ Parameters.resourceGroupName,
605
+ Parameters.monitorName
606
+ ],
607
+ headerParameters: [Parameters.accept],
608
+ serializer
609
+ };
610
+ const listMonitoredResourcesOperationSpec = {
611
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listMonitoredResources",
612
+ httpMethod: "POST",
613
+ responses: {
614
+ 200: {
615
+ bodyMapper: Mappers.MonitoredResourceListResponse
616
+ },
617
+ default: {
618
+ bodyMapper: Mappers.ErrorResponse
619
+ }
620
+ },
621
+ queryParameters: [Parameters.apiVersion],
622
+ urlParameters: [
623
+ Parameters.$host,
624
+ Parameters.subscriptionId,
625
+ Parameters.resourceGroupName,
626
+ Parameters.monitorName
627
+ ],
628
+ headerParameters: [Parameters.accept],
629
+ serializer
630
+ };
631
+ const getVMHostPayloadOperationSpec = {
632
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getVMHostPayload",
633
+ httpMethod: "POST",
634
+ responses: {
635
+ 200: {
636
+ bodyMapper: Mappers.VMExtensionPayload
637
+ },
638
+ default: {
639
+ bodyMapper: Mappers.ErrorResponse
640
+ }
641
+ },
642
+ queryParameters: [Parameters.apiVersion],
643
+ urlParameters: [
644
+ Parameters.$host,
645
+ Parameters.subscriptionId,
646
+ Parameters.resourceGroupName,
647
+ Parameters.monitorName
648
+ ],
649
+ headerParameters: [Parameters.accept],
650
+ serializer
651
+ };
652
+ const getOperationSpec = {
653
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
654
+ httpMethod: "GET",
655
+ responses: {
656
+ 200: {
657
+ bodyMapper: Mappers.MonitorResource
658
+ },
659
+ default: {
660
+ bodyMapper: Mappers.ErrorResponse
661
+ }
662
+ },
663
+ queryParameters: [Parameters.apiVersion],
664
+ urlParameters: [
665
+ Parameters.$host,
666
+ Parameters.subscriptionId,
667
+ Parameters.resourceGroupName,
668
+ Parameters.monitorName
669
+ ],
670
+ headerParameters: [Parameters.accept],
671
+ serializer
672
+ };
673
+ const createOrUpdateOperationSpec = {
674
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
675
+ httpMethod: "PUT",
676
+ responses: {
677
+ 200: {
678
+ bodyMapper: Mappers.MonitorResource
679
+ },
680
+ 201: {
681
+ bodyMapper: Mappers.MonitorResource
682
+ },
683
+ 202: {
684
+ bodyMapper: Mappers.MonitorResource
685
+ },
686
+ 204: {
687
+ bodyMapper: Mappers.MonitorResource
688
+ },
689
+ default: {
690
+ bodyMapper: Mappers.ErrorResponse
691
+ }
692
+ },
693
+ requestBody: Parameters.resource,
694
+ queryParameters: [Parameters.apiVersion],
695
+ urlParameters: [
696
+ Parameters.$host,
697
+ Parameters.subscriptionId,
698
+ Parameters.resourceGroupName,
699
+ Parameters.monitorName
700
+ ],
701
+ headerParameters: [Parameters.accept, Parameters.contentType],
702
+ mediaType: "json",
703
+ serializer
704
+ };
705
+ const updateOperationSpec = {
706
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
707
+ httpMethod: "PATCH",
708
+ responses: {
709
+ 200: {
710
+ bodyMapper: Mappers.MonitorResource
711
+ },
712
+ default: {
713
+ bodyMapper: Mappers.ErrorResponse
714
+ }
715
+ },
716
+ requestBody: Parameters.resource1,
717
+ queryParameters: [Parameters.apiVersion],
718
+ urlParameters: [
719
+ Parameters.$host,
720
+ Parameters.subscriptionId,
721
+ Parameters.resourceGroupName,
722
+ Parameters.monitorName
723
+ ],
724
+ headerParameters: [Parameters.accept, Parameters.contentType],
725
+ mediaType: "json",
726
+ serializer
727
+ };
728
+ const deleteOperationSpec = {
729
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}",
730
+ httpMethod: "DELETE",
731
+ responses: {
732
+ 200: {},
733
+ 201: {},
734
+ 202: {},
735
+ 204: {},
736
+ default: {
737
+ bodyMapper: Mappers.ErrorResponse
738
+ }
739
+ },
740
+ queryParameters: [Parameters.apiVersion],
741
+ urlParameters: [
742
+ Parameters.$host,
743
+ Parameters.subscriptionId,
744
+ Parameters.resourceGroupName,
745
+ Parameters.monitorName
746
+ ],
747
+ headerParameters: [Parameters.accept],
748
+ serializer
749
+ };
750
+ const listBySubscriptionIdOperationSpec = {
751
+ path: "/subscriptions/{subscriptionId}/providers/Dynatrace.Observability/monitors",
752
+ httpMethod: "GET",
753
+ responses: {
754
+ 200: {
755
+ bodyMapper: Mappers.MonitorResourceListResult
756
+ },
757
+ default: {
758
+ bodyMapper: Mappers.ErrorResponse
759
+ }
760
+ },
761
+ queryParameters: [Parameters.apiVersion],
762
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
763
+ headerParameters: [Parameters.accept],
764
+ serializer
765
+ };
766
+ const listByResourceGroupOperationSpec = {
767
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors",
768
+ httpMethod: "GET",
769
+ responses: {
770
+ 200: {
771
+ bodyMapper: Mappers.MonitorResourceListResult
772
+ },
773
+ default: {
774
+ bodyMapper: Mappers.ErrorResponse
775
+ }
776
+ },
777
+ queryParameters: [Parameters.apiVersion],
778
+ urlParameters: [
779
+ Parameters.$host,
780
+ Parameters.subscriptionId,
781
+ Parameters.resourceGroupName
782
+ ],
783
+ headerParameters: [Parameters.accept],
784
+ serializer
785
+ };
786
+ const listHostsOperationSpec = {
787
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listHosts",
788
+ httpMethod: "POST",
789
+ responses: {
790
+ 200: {
791
+ bodyMapper: Mappers.VMHostsListResponse
792
+ },
793
+ default: {
794
+ bodyMapper: Mappers.ErrorResponse
795
+ }
796
+ },
797
+ queryParameters: [Parameters.apiVersion],
798
+ urlParameters: [
799
+ Parameters.$host,
800
+ Parameters.subscriptionId,
801
+ Parameters.resourceGroupName,
802
+ Parameters.monitorName
803
+ ],
804
+ headerParameters: [Parameters.accept],
805
+ serializer
806
+ };
807
+ const listAppServicesOperationSpec = {
808
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listAppServices",
809
+ httpMethod: "POST",
810
+ responses: {
811
+ 200: {
812
+ bodyMapper: Mappers.AppServiceListResponse
813
+ },
814
+ default: {
815
+ bodyMapper: Mappers.ErrorResponse
816
+ }
817
+ },
818
+ queryParameters: [Parameters.apiVersion],
819
+ urlParameters: [
820
+ Parameters.$host,
821
+ Parameters.subscriptionId,
822
+ Parameters.resourceGroupName,
823
+ Parameters.monitorName
824
+ ],
825
+ headerParameters: [Parameters.accept],
826
+ serializer
827
+ };
828
+ const getSSODetailsOperationSpec = {
829
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getSSODetails",
830
+ httpMethod: "POST",
831
+ responses: {
832
+ 200: {
833
+ bodyMapper: Mappers.SSODetailsResponse
834
+ },
835
+ 401: {
836
+ isError: true
837
+ },
838
+ default: {
839
+ bodyMapper: Mappers.ErrorResponse
840
+ }
841
+ },
842
+ requestBody: Parameters.request,
843
+ queryParameters: [Parameters.apiVersion],
844
+ urlParameters: [
845
+ Parameters.$host,
846
+ Parameters.subscriptionId,
847
+ Parameters.resourceGroupName,
848
+ Parameters.monitorName
849
+ ],
850
+ headerParameters: [Parameters.accept, Parameters.contentType],
851
+ mediaType: "json",
852
+ serializer
853
+ };
854
+ const listLinkableEnvironmentsOperationSpec = {
855
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/listLinkableEnvironments",
856
+ httpMethod: "POST",
857
+ responses: {
858
+ 200: {
859
+ bodyMapper: Mappers.LinkableEnvironmentListResponse
860
+ },
861
+ default: {
862
+ bodyMapper: Mappers.ErrorResponse
863
+ }
864
+ },
865
+ requestBody: Parameters.request1,
866
+ queryParameters: [Parameters.apiVersion],
867
+ urlParameters: [
868
+ Parameters.$host,
869
+ Parameters.subscriptionId,
870
+ Parameters.resourceGroupName,
871
+ Parameters.monitorName
872
+ ],
873
+ headerParameters: [Parameters.accept, Parameters.contentType],
874
+ mediaType: "json",
875
+ serializer
876
+ };
877
+ const listMonitoredResourcesNextOperationSpec = {
878
+ path: "{nextLink}",
879
+ httpMethod: "GET",
880
+ responses: {
881
+ 200: {
882
+ bodyMapper: Mappers.MonitoredResourceListResponse
883
+ },
884
+ default: {
885
+ bodyMapper: Mappers.ErrorResponse
886
+ }
887
+ },
888
+ queryParameters: [Parameters.apiVersion],
889
+ urlParameters: [
890
+ Parameters.$host,
891
+ Parameters.subscriptionId,
892
+ Parameters.resourceGroupName,
893
+ Parameters.monitorName,
894
+ Parameters.nextLink
895
+ ],
896
+ headerParameters: [Parameters.accept],
897
+ serializer
898
+ };
899
+ const listBySubscriptionIdNextOperationSpec = {
900
+ path: "{nextLink}",
901
+ httpMethod: "GET",
902
+ responses: {
903
+ 200: {
904
+ bodyMapper: Mappers.MonitorResourceListResult
905
+ },
906
+ default: {
907
+ bodyMapper: Mappers.ErrorResponse
908
+ }
909
+ },
910
+ queryParameters: [Parameters.apiVersion],
911
+ urlParameters: [
912
+ Parameters.$host,
913
+ Parameters.subscriptionId,
914
+ Parameters.nextLink
915
+ ],
916
+ headerParameters: [Parameters.accept],
917
+ serializer
918
+ };
919
+ const listByResourceGroupNextOperationSpec = {
920
+ path: "{nextLink}",
921
+ httpMethod: "GET",
922
+ responses: {
923
+ 200: {
924
+ bodyMapper: Mappers.MonitorResourceListResult
925
+ },
926
+ default: {
927
+ bodyMapper: Mappers.ErrorResponse
928
+ }
929
+ },
930
+ queryParameters: [Parameters.apiVersion],
931
+ urlParameters: [
932
+ Parameters.$host,
933
+ Parameters.subscriptionId,
934
+ Parameters.resourceGroupName,
935
+ Parameters.nextLink
936
+ ],
937
+ headerParameters: [Parameters.accept],
938
+ serializer
939
+ };
940
+ const listHostsNextOperationSpec = {
941
+ path: "{nextLink}",
942
+ httpMethod: "GET",
943
+ responses: {
944
+ 200: {
945
+ bodyMapper: Mappers.VMHostsListResponse
946
+ },
947
+ default: {
948
+ bodyMapper: Mappers.ErrorResponse
949
+ }
950
+ },
951
+ queryParameters: [Parameters.apiVersion],
952
+ urlParameters: [
953
+ Parameters.$host,
954
+ Parameters.subscriptionId,
955
+ Parameters.resourceGroupName,
956
+ Parameters.monitorName,
957
+ Parameters.nextLink
958
+ ],
959
+ headerParameters: [Parameters.accept],
960
+ serializer
961
+ };
962
+ const listAppServicesNextOperationSpec = {
963
+ path: "{nextLink}",
964
+ httpMethod: "GET",
965
+ responses: {
966
+ 200: {
967
+ bodyMapper: Mappers.AppServiceListResponse
968
+ },
969
+ default: {
970
+ bodyMapper: Mappers.ErrorResponse
971
+ }
972
+ },
973
+ queryParameters: [Parameters.apiVersion],
974
+ urlParameters: [
975
+ Parameters.$host,
976
+ Parameters.subscriptionId,
977
+ Parameters.resourceGroupName,
978
+ Parameters.monitorName,
979
+ Parameters.nextLink
980
+ ],
981
+ headerParameters: [Parameters.accept],
982
+ serializer
983
+ };
984
+ const listLinkableEnvironmentsNextOperationSpec = {
985
+ path: "{nextLink}",
986
+ httpMethod: "GET",
987
+ responses: {
988
+ 200: {
989
+ bodyMapper: Mappers.LinkableEnvironmentListResponse
990
+ },
991
+ default: {
992
+ bodyMapper: Mappers.ErrorResponse
993
+ }
994
+ },
995
+ queryParameters: [Parameters.apiVersion],
996
+ urlParameters: [
997
+ Parameters.$host,
998
+ Parameters.subscriptionId,
999
+ Parameters.resourceGroupName,
1000
+ Parameters.monitorName,
1001
+ Parameters.nextLink
1002
+ ],
1003
+ headerParameters: [Parameters.accept, Parameters.contentType],
1004
+ mediaType: "json",
1005
+ serializer
1006
+ };
1007
+ //# sourceMappingURL=monitors.js.map