@azure/arm-hanaonazure 2.2.0 → 4.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 (145) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +1 -1
  4. package/README.md +72 -72
  5. package/dist/index.js +1333 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/hanaManagementClient.d.ts +21 -0
  10. package/dist-esm/src/hanaManagementClient.d.ts.map +1 -0
  11. package/dist-esm/src/hanaManagementClient.js +54 -0
  12. package/dist-esm/src/hanaManagementClient.js.map +1 -0
  13. package/dist-esm/src/index.d.ts +5 -0
  14. package/dist-esm/src/index.d.ts.map +1 -0
  15. package/dist-esm/src/index.js +12 -0
  16. package/dist-esm/src/index.js.map +1 -0
  17. package/dist-esm/src/lroImpl.d.ts +16 -0
  18. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  19. package/dist-esm/src/lroImpl.js +29 -0
  20. package/dist-esm/src/lroImpl.js.map +1 -0
  21. package/dist-esm/src/models/index.d.ts +260 -0
  22. package/dist-esm/src/models/index.d.ts.map +1 -0
  23. package/dist-esm/src/models/index.js +19 -0
  24. package/dist-esm/src/models/index.js.map +1 -0
  25. package/dist-esm/src/models/mappers.d.ts +15 -0
  26. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  27. package/dist-esm/src/models/mappers.js +330 -0
  28. package/dist-esm/src/models/mappers.js.map +1 -0
  29. package/dist-esm/src/models/parameters.d.ts +14 -0
  30. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  31. package/dist-esm/src/models/parameters.js +116 -0
  32. package/dist-esm/src/models/parameters.js.map +1 -0
  33. package/dist-esm/src/operations/index.d.ts +4 -0
  34. package/dist-esm/src/operations/index.d.ts.map +1 -0
  35. package/dist-esm/src/operations/index.js +11 -0
  36. package/dist-esm/src/operations/index.js.map +1 -0
  37. package/dist-esm/src/operations/operations.d.ts +26 -0
  38. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  39. package/dist-esm/src/operations/operations.js +90 -0
  40. package/dist-esm/src/operations/operations.js.map +1 -0
  41. package/dist-esm/src/operations/providerInstances.d.ts +88 -0
  42. package/dist-esm/src/operations/providerInstances.d.ts.map +1 -0
  43. package/dist-esm/src/operations/providerInstances.js +344 -0
  44. package/dist-esm/src/operations/providerInstances.js.map +1 -0
  45. package/dist-esm/src/operations/sapMonitors.d.ts +81 -0
  46. package/dist-esm/src/operations/sapMonitors.d.ts.map +1 -0
  47. package/dist-esm/src/operations/sapMonitors.js +346 -0
  48. package/dist-esm/src/operations/sapMonitors.js.map +1 -0
  49. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  50. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  51. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  52. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  53. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  54. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  55. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  56. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  57. package/dist-esm/src/operationsInterfaces/providerInstances.d.ts +62 -0
  58. package/dist-esm/src/operationsInterfaces/providerInstances.d.ts.map +1 -0
  59. package/dist-esm/src/operationsInterfaces/providerInstances.js +9 -0
  60. package/dist-esm/src/operationsInterfaces/providerInstances.js.map +1 -0
  61. package/dist-esm/src/operationsInterfaces/sapMonitors.d.ts +59 -0
  62. package/dist-esm/src/operationsInterfaces/sapMonitors.d.ts.map +1 -0
  63. package/dist-esm/src/operationsInterfaces/sapMonitors.js +9 -0
  64. package/dist-esm/src/operationsInterfaces/sapMonitors.js.map +1 -0
  65. package/dist-esm/test/sampleTest.d.ts +2 -0
  66. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  67. package/dist-esm/test/sampleTest.js +40 -0
  68. package/dist-esm/test/sampleTest.js.map +1 -0
  69. package/package.json +65 -31
  70. package/review/arm-hanaonazure.api.md +260 -0
  71. package/rollup.config.js +181 -30
  72. package/src/hanaManagementClient.ts +75 -34
  73. package/src/index.ts +12 -0
  74. package/src/lroImpl.ts +34 -0
  75. package/src/models/index.ts +227 -638
  76. package/src/models/mappers.ts +138 -367
  77. package/src/models/parameters.ts +84 -30
  78. package/src/operations/index.ts +4 -6
  79. package/src/operations/operations.ts +66 -42
  80. package/src/operations/providerInstances.ts +477 -0
  81. package/src/operations/sapMonitors.ts +332 -256
  82. package/src/operationsInterfaces/index.ts +11 -0
  83. package/src/operationsInterfaces/operations.ts +22 -0
  84. package/src/operationsInterfaces/providerInstances.ts +115 -0
  85. package/src/operationsInterfaces/sapMonitors.ts +113 -0
  86. package/tsconfig.json +4 -4
  87. package/types/arm-hanaonazure.d.ts +444 -0
  88. package/types/tsdoc-metadata.json +11 -0
  89. package/dist/arm-hanaonazure.js +0 -1702
  90. package/dist/arm-hanaonazure.js.map +0 -1
  91. package/dist/arm-hanaonazure.min.js +0 -1
  92. package/dist/arm-hanaonazure.min.js.map +0 -1
  93. package/esm/hanaManagementClient.d.ts +0 -21
  94. package/esm/hanaManagementClient.d.ts.map +0 -1
  95. package/esm/hanaManagementClient.js +0 -36
  96. package/esm/hanaManagementClient.js.map +0 -1
  97. package/esm/hanaManagementClientContext.d.ts +0 -17
  98. package/esm/hanaManagementClientContext.d.ts.map +0 -1
  99. package/esm/hanaManagementClientContext.js +0 -57
  100. package/esm/hanaManagementClientContext.js.map +0 -1
  101. package/esm/models/hanaInstancesMappers.d.ts +0 -2
  102. package/esm/models/hanaInstancesMappers.d.ts.map +0 -1
  103. package/esm/models/hanaInstancesMappers.js +0 -9
  104. package/esm/models/hanaInstancesMappers.js.map +0 -1
  105. package/esm/models/index.d.ts +0 -661
  106. package/esm/models/index.d.ts.map +0 -1
  107. package/esm/models/index.js +0 -8
  108. package/esm/models/index.js.map +0 -1
  109. package/esm/models/mappers.d.ts +0 -21
  110. package/esm/models/mappers.d.ts.map +0 -1
  111. package/esm/models/mappers.js +0 -556
  112. package/esm/models/mappers.js.map +0 -1
  113. package/esm/models/operationsMappers.d.ts +0 -2
  114. package/esm/models/operationsMappers.d.ts.map +0 -1
  115. package/esm/models/operationsMappers.js +0 -9
  116. package/esm/models/operationsMappers.js.map +0 -1
  117. package/esm/models/parameters.d.ts +0 -9
  118. package/esm/models/parameters.d.ts.map +0 -1
  119. package/esm/models/parameters.js +0 -81
  120. package/esm/models/parameters.js.map +0 -1
  121. package/esm/models/sapMonitorsMappers.d.ts +0 -2
  122. package/esm/models/sapMonitorsMappers.d.ts.map +0 -1
  123. package/esm/models/sapMonitorsMappers.js +0 -9
  124. package/esm/models/sapMonitorsMappers.js.map +0 -1
  125. package/esm/operations/hanaInstances.d.ts +0 -244
  126. package/esm/operations/hanaInstances.d.ts.map +0 -1
  127. package/esm/operations/hanaInstances.js +0 -514
  128. package/esm/operations/hanaInstances.js.map +0 -1
  129. package/esm/operations/index.d.ts +0 -4
  130. package/esm/operations/index.d.ts.map +0 -1
  131. package/esm/operations/index.js +0 -13
  132. package/esm/operations/index.js.map +0 -1
  133. package/esm/operations/operations.d.ts +0 -28
  134. package/esm/operations/operations.d.ts.map +0 -1
  135. package/esm/operations/operations.js +0 -51
  136. package/esm/operations/operations.js.map +0 -1
  137. package/esm/operations/sapMonitors.d.ts +0 -138
  138. package/esm/operations/sapMonitors.d.ts.map +0 -1
  139. package/esm/operations/sapMonitors.js +0 -260
  140. package/esm/operations/sapMonitors.js.map +0 -1
  141. package/src/hanaManagementClientContext.ts +0 -63
  142. package/src/models/hanaInstancesMappers.ts +0 -25
  143. package/src/models/operationsMappers.ts +0 -14
  144. package/src/models/sapMonitorsMappers.ts +0 -23
  145. package/src/operations/hanaInstances.ts +0 -718
@@ -1,717 +1,306 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
10
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
11
10
 
12
- export { BaseResource, CloudError };
13
-
14
- /**
15
- * The resource model definition.
16
- */
17
- export interface Resource extends BaseResource {
18
- /**
19
- * Resource ID
20
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
21
- */
22
- readonly id?: string;
23
- /**
24
- * Resource name
25
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
26
- */
27
- readonly name?: string;
28
- /**
29
- * Resource type
30
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
31
- */
32
- readonly type?: string;
33
- /**
34
- * Resource location
35
- */
36
- location?: string;
37
- /**
38
- * Resource tags
39
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
40
- */
41
- readonly tags?: { [propertyName: string]: string };
42
- }
43
-
44
- /**
45
- * Specifies the hardware settings for the HANA instance.
46
- */
47
- export interface HardwareProfile {
48
- /**
49
- * Name of the hardware type (vendor and/or their product name). Possible values include:
50
- * 'Cisco_UCS', 'HPE'
51
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
52
- */
53
- readonly hardwareType?: HanaHardwareTypeNamesEnum;
54
- /**
55
- * Specifies the HANA instance SKU. Possible values include: 'S72m', 'S144m', 'S72', 'S144',
56
- * 'S192', 'S192m', 'S192xm', 'S96', 'S384', 'S384m', 'S384xm', 'S384xxm', 'S576m', 'S576xm',
57
- * 'S768', 'S768m', 'S768xm', 'S960m', 'S224o', 'S224m', 'S224om', 'S224oxm', 'S224oxxm'
58
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
59
- */
60
- readonly hanaInstanceSize?: HanaInstanceSizeNamesEnum;
61
- }
62
-
63
- /**
64
- * Specifies the disk information fo the HANA instance
65
- */
66
- export interface Disk {
67
- /**
68
- * The disk name.
69
- */
70
- name?: string;
71
- /**
72
- * Specifies the size of an empty data disk in gigabytes.
73
- */
74
- diskSizeGB?: number;
75
- /**
76
- * Specifies the logical unit number of the data disk. This value is used to identify data disks
77
- * within the VM and therefore must be unique for each data disk attached to a VM.
78
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
79
- */
80
- readonly lun?: number;
81
- }
82
-
83
- /**
84
- * Specifies the storage settings for the HANA instance disks.
85
- */
86
- export interface StorageProfile {
87
- /**
88
- * IP Address to connect to storage.
89
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
90
- */
91
- readonly nfsIpAddress?: string;
92
- /**
93
- * Specifies information about the operating system disk used by the hana instance.
94
- */
95
- osDisks?: Disk[];
96
- }
97
-
98
- /**
99
- * Specifies the operating system settings for the HANA instance.
100
- */
101
- export interface OSProfile {
102
- /**
103
- * Specifies the host OS name of the HANA instance.
104
- */
105
- computerName?: string;
106
- /**
107
- * This property allows you to specify the type of the OS.
108
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
109
- */
110
- readonly osType?: string;
111
- /**
112
- * Specifies version of operating system.
113
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
114
- */
115
- readonly version?: string;
116
- /**
117
- * Specifies the SSH public key used to access the operating system.
118
- */
119
- sshPublicKey?: string;
120
- }
121
-
122
- /**
123
- * Specifies the IP address of the network interface.
124
- */
125
- export interface IpAddress {
126
- /**
127
- * Specifies the IP address of the network interface.
128
- */
129
- ipAddress?: string;
130
- }
131
-
132
- /**
133
- * Specifies the network settings for the HANA instance disks.
134
- */
135
- export interface NetworkProfile {
136
- /**
137
- * Specifies the network interfaces for the HANA instance.
138
- */
139
- networkInterfaces?: IpAddress[];
140
- /**
141
- * Specifies the circuit id for connecting to express route.
142
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
143
- */
144
- readonly circuitId?: string;
11
+ /** List of HANA operations */
12
+ export interface OperationList {
13
+ /** List of HANA operations */
14
+ value?: Operation[];
145
15
  }
146
16
 
147
- /**
148
- * HANA instance info on Azure (ARM properties and HANA properties)
149
- */
150
- export interface HanaInstance extends Resource {
151
- /**
152
- * Specifies the hardware settings for the HANA instance.
153
- */
154
- hardwareProfile?: HardwareProfile;
155
- /**
156
- * Specifies the storage settings for the HANA instance disks.
157
- */
158
- storageProfile?: StorageProfile;
159
- /**
160
- * Specifies the operating system settings for the HANA instance.
161
- */
162
- osProfile?: OSProfile;
163
- /**
164
- * Specifies the network settings for the HANA instance.
165
- */
166
- networkProfile?: NetworkProfile;
167
- /**
168
- * Specifies the HANA instance unique ID.
169
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
170
- */
171
- readonly hanaInstanceId?: string;
172
- /**
173
- * Resource power state. Possible values include: 'starting', 'started', 'stopping', 'stopped',
174
- * 'restarting', 'unknown'
175
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
176
- */
177
- readonly powerState?: HanaInstancePowerStateEnum;
178
- /**
179
- * Resource proximity placement group
180
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
181
- */
182
- readonly proximityPlacementGroup?: string;
183
- /**
184
- * Hardware revision of a HANA instance
185
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
186
- */
187
- readonly hwRevision?: string;
188
- /**
189
- * ARM ID of another HanaInstance that will share a network with this HanaInstance
190
- */
191
- partnerNodeId?: string;
17
+ /** HANA operation information */
18
+ export interface Operation {
192
19
  /**
193
- * State of provisioning of the HanaInstance. Possible values include: 'Accepted', 'Creating',
194
- * 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating'
195
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
20
+ * The name of the operation being performed on this particular object. This name should match the action name that appears in RBAC / the event service.
21
+ * NOTE: This property will not be serialized. It can only be populated by the server.
196
22
  */
197
- readonly provisioningState?: HanaProvisioningStatesEnum;
23
+ readonly name?: string;
24
+ /** Displayed HANA operation information */
25
+ display?: Display;
198
26
  }
199
27
 
200
- /**
201
- * Detailed HANA operation information
202
- */
28
+ /** Detailed HANA operation information */
203
29
  export interface Display {
204
30
  /**
205
- * The localized friendly form of the resource provider name. This form is also expected to
206
- * include the publisher/company responsible. Use Title Casing. Begin with "Microsoft" for 1st
207
- * party services.
208
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
31
+ * The localized friendly form of the resource provider name. This form is also expected to include the publisher/company responsible. Use Title Casing. Begin with "Microsoft" for 1st party services.
32
+ * NOTE: This property will not be serialized. It can only be populated by the server.
209
33
  */
210
34
  readonly provider?: string;
211
35
  /**
212
- * The localized friendly form of the resource type related to this action/operation. This form
213
- * should match the public documentation for the resource provider. Use Title Casing. For
214
- * examples, refer to the “name” section.
215
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
36
+ * The localized friendly form of the resource type related to this action/operation. This form should match the public documentation for the resource provider. Use Title Casing. For examples, refer to the “name” section.
37
+ * NOTE: This property will not be serialized. It can only be populated by the server.
216
38
  */
217
39
  readonly resource?: string;
218
40
  /**
219
- * The localized friendly name for the operation as shown to the user. This name should be
220
- * concise (to fit in drop downs), but clear (self-documenting). Use Title Casing and include the
221
- * entity/resource to which it applies.
222
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
41
+ * The localized friendly name for the operation as shown to the user. This name should be concise (to fit in drop downs), but clear (self-documenting). Use Title Casing and include the entity/resource to which it applies.
42
+ * NOTE: This property will not be serialized. It can only be populated by the server.
223
43
  */
224
44
  readonly operation?: string;
225
45
  /**
226
- * The localized friendly description for the operation as shown to the user. This description
227
- * should be thorough, yet concise. It will be used in tool-tips and detailed views.
228
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
46
+ * The localized friendly description for the operation as shown to the user. This description should be thorough, yet concise. It will be used in tool-tips and detailed views.
47
+ * NOTE: This property will not be serialized. It can only be populated by the server.
229
48
  */
230
49
  readonly description?: string;
231
50
  /**
232
- * The intended executor of the operation; governs the display of the operation in the RBAC UX
233
- * and the audit logs UX. Default value is 'user,system'
234
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
51
+ * The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is 'user,system'
52
+ * NOTE: This property will not be serialized. It can only be populated by the server.
235
53
  */
236
54
  readonly origin?: string;
237
55
  }
238
56
 
239
- /**
240
- * HANA operation information
241
- */
242
- export interface Operation {
243
- /**
244
- * The name of the operation being performed on this particular object. This name should match
245
- * the action name that appears in RBAC / the event service.
246
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
247
- */
248
- readonly name?: string;
249
- /**
250
- * Displayed HANA operation information
251
- */
252
- display?: Display;
57
+ /** Describes the format of Error response. */
58
+ export interface ErrorResponse {
59
+ /** Describes the error object. */
60
+ error?: ErrorResponseError;
253
61
  }
254
62
 
255
- /**
256
- * Describes the format of Error response.
257
- */
258
- export interface ErrorResponse {
63
+ /** Describes the error object. */
64
+ export interface ErrorResponseError {
259
65
  /**
260
66
  * Error code
67
+ * NOTE: This property will not be serialized. It can only be populated by the server.
261
68
  */
262
- code?: string;
69
+ readonly code?: string;
263
70
  /**
264
71
  * Error message indicating why the operation failed.
72
+ * NOTE: This property will not be serialized. It can only be populated by the server.
265
73
  */
266
- message?: string;
267
- }
268
-
269
- /**
270
- * Tags field of the HANA instance.
271
- */
272
- export interface Tags {
273
- /**
274
- * Tags field of the HANA instance.
275
- */
276
- tags?: { [propertyName: string]: string };
74
+ readonly message?: string;
277
75
  }
278
76
 
279
- /**
280
- * Details needed to monitor a Hana Instance
281
- */
282
- export interface MonitoringDetails {
283
- /**
284
- * ARM ID of an Azure Subnet with access to the HANA instance.
285
- */
286
- hanaSubnet?: string;
287
- /**
288
- * Hostname of the HANA Instance blade.
289
- */
290
- hanaHostname?: string;
291
- /**
292
- * Name of the database itself.
293
- */
294
- hanaDbName?: string;
295
- /**
296
- * The port number of the tenant DB. Used to connect to the DB.
297
- */
298
- hanaDbSqlPort?: number;
299
- /**
300
- * Username for the HANA database to login to for monitoring
301
- */
302
- hanaDbUsername?: string;
303
- /**
304
- * Password for the HANA database to login for monitoring
305
- */
306
- hanaDbPassword?: string;
77
+ /** The response from the List SAP monitors operation. */
78
+ export interface SapMonitorListResult {
79
+ /** The list of SAP monitors. */
80
+ value?: SapMonitor[];
81
+ /** The URL to get the next set of SAP monitors. */
82
+ nextLink?: string;
307
83
  }
308
84
 
309
- /**
310
- * SAP monitor info on Azure (ARM properties and SAP monitor properties)
311
- */
312
- export interface SapMonitor extends Resource {
313
- /**
314
- * Specifies the SAP monitor unique ID.
315
- */
316
- hanaSubnet?: string;
317
- /**
318
- * Hostname of the HANA instance.
319
- */
320
- hanaHostname?: string;
85
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
86
+ export interface Resource {
321
87
  /**
322
- * Database name of the HANA instance.
88
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
89
+ * NOTE: This property will not be serialized. It can only be populated by the server.
323
90
  */
324
- hanaDbName?: string;
325
- /**
326
- * Database port of the HANA instance.
327
- */
328
- hanaDbSqlPort?: number;
329
- /**
330
- * Database username of the HANA instance.
331
- */
332
- hanaDbUsername?: string;
91
+ readonly id?: string;
333
92
  /**
334
- * Database password of the HANA instance.
93
+ * The name of the resource
94
+ * NOTE: This property will not be serialized. It can only be populated by the server.
335
95
  */
336
- hanaDbPassword?: string;
96
+ readonly name?: string;
337
97
  /**
338
- * State of provisioning of the HanaInstance. Possible values include: 'Accepted', 'Creating',
339
- * 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating'
340
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
98
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
99
+ * NOTE: This property will not be serialized. It can only be populated by the server.
341
100
  */
342
- readonly provisioningState?: HanaProvisioningStatesEnum;
343
- }
344
-
345
- /**
346
- * An interface representing HanaManagementClientOptions.
347
- */
348
- export interface HanaManagementClientOptions extends AzureServiceClientOptions {
349
- baseUri?: string;
350
- }
351
-
352
- /**
353
- * @interface
354
- * List of HANA operations
355
- * @extends Array<Operation>
356
- */
357
- export interface OperationList extends Array<Operation> {
101
+ readonly type?: string;
358
102
  }
359
103
 
360
- /**
361
- * @interface
362
- * The response from the List HANA Instances operation.
363
- * @extends Array<HanaInstance>
364
- */
365
- export interface HanaInstancesListResult extends Array<HanaInstance> {
366
- /**
367
- * The URL to get the next set of HANA instances.
368
- */
369
- nextLink?: string;
104
+ /** Tags field of the resource. */
105
+ export interface Tags {
106
+ /** Tags field of the resource. */
107
+ tags?: { [propertyName: string]: string };
370
108
  }
371
109
 
372
- /**
373
- * @interface
374
- * The response from the List SAP monitors operation.
375
- * @extends Array<SapMonitor>
376
- */
377
- export interface SapMonitorListResult extends Array<SapMonitor> {
378
- /**
379
- * The URL to get the next set of SAP monitors.
380
- */
110
+ /** The response from the List provider instances operation. */
111
+ export interface ProviderInstanceListResult {
112
+ /** The list of provider instances. */
113
+ value?: ProviderInstance[];
114
+ /** The URL to get the next set of provider instances. */
381
115
  nextLink?: string;
382
116
  }
383
117
 
384
- /**
385
- * Defines values for HanaHardwareTypeNamesEnum.
386
- * Possible values include: 'Cisco_UCS', 'HPE'
387
- * @readonly
388
- * @enum {string}
389
- */
390
- export type HanaHardwareTypeNamesEnum = 'Cisco_UCS' | 'HPE';
391
-
392
- /**
393
- * Defines values for HanaInstanceSizeNamesEnum.
394
- * Possible values include: 'S72m', 'S144m', 'S72', 'S144', 'S192', 'S192m', 'S192xm', 'S96',
395
- * 'S384', 'S384m', 'S384xm', 'S384xxm', 'S576m', 'S576xm', 'S768', 'S768m', 'S768xm', 'S960m',
396
- * 'S224o', 'S224m', 'S224om', 'S224oxm', 'S224oxxm'
397
- * @readonly
398
- * @enum {string}
399
- */
400
- export type HanaInstanceSizeNamesEnum = 'S72m' | 'S144m' | 'S72' | 'S144' | 'S192' | 'S192m' | 'S192xm' | 'S96' | 'S384' | 'S384m' | 'S384xm' | 'S384xxm' | 'S576m' | 'S576xm' | 'S768' | 'S768m' | 'S768xm' | 'S960m' | 'S224o' | 'S224m' | 'S224om' | 'S224oxm' | 'S224oxxm';
401
-
402
- /**
403
- * Defines values for HanaInstancePowerStateEnum.
404
- * Possible values include: 'starting', 'started', 'stopping', 'stopped', 'restarting', 'unknown'
405
- * @readonly
406
- * @enum {string}
407
- */
408
- export type HanaInstancePowerStateEnum = 'starting' | 'started' | 'stopping' | 'stopped' | 'restarting' | 'unknown';
118
+ /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
119
+ export type TrackedResource = Resource & {
120
+ /** Resource tags. */
121
+ tags?: { [propertyName: string]: string };
122
+ /** The geo-location where the resource lives */
123
+ location: string;
124
+ };
409
125
 
410
- /**
411
- * Defines values for HanaProvisioningStatesEnum.
412
- * Possible values include: 'Accepted', 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting',
413
- * 'Migrating'
414
- * @readonly
415
- * @enum {string}
416
- */
417
- export type HanaProvisioningStatesEnum = 'Accepted' | 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating';
126
+ /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
127
+ export type ProxyResource = Resource & {};
418
128
 
419
- /**
420
- * Contains response data for the list operation.
421
- */
422
- export type OperationsListResponse = OperationList & {
129
+ /** SAP monitor info on Azure (ARM properties and SAP monitor properties) */
130
+ export type SapMonitor = TrackedResource & {
423
131
  /**
424
- * The underlying HTTP response.
132
+ * State of provisioning of the HanaInstance
133
+ * NOTE: This property will not be serialized. It can only be populated by the server.
425
134
  */
426
- _response: msRest.HttpResponse & {
427
- /**
428
- * The response body as text (string format)
429
- */
430
- bodyAsText: string;
431
-
432
- /**
433
- * The response body as parsed JSON or XML
434
- */
435
- parsedBody: OperationList;
436
- };
437
- };
438
-
439
- /**
440
- * Contains response data for the list operation.
441
- */
442
- export type HanaInstancesListResponse = HanaInstancesListResult & {
135
+ readonly provisioningState?: HanaProvisioningStatesEnum;
443
136
  /**
444
- * The underlying HTTP response.
445
- */
446
- _response: msRest.HttpResponse & {
447
- /**
448
- * The response body as text (string format)
449
- */
450
- bodyAsText: string;
451
-
452
- /**
453
- * The response body as parsed JSON or XML
454
- */
455
- parsedBody: HanaInstancesListResult;
456
- };
137
+ * The name of the resource group the SAP Monitor resources get deployed into.
138
+ * NOTE: This property will not be serialized. It can only be populated by the server.
139
+ */
140
+ readonly managedResourceGroupName?: string;
141
+ /** The ARM ID of the Log Analytics Workspace that is used for monitoring */
142
+ logAnalyticsWorkspaceArmId?: string;
143
+ /** The value indicating whether to send analytics to Microsoft */
144
+ enableCustomerAnalytics?: boolean;
145
+ /** The workspace ID of the log analytics workspace to be used for monitoring */
146
+ logAnalyticsWorkspaceId?: string;
147
+ /** The shared key of the log analytics workspace that is used for monitoring */
148
+ logAnalyticsWorkspaceSharedKey?: string;
149
+ /**
150
+ * The version of the payload running in the Collector VM
151
+ * NOTE: This property will not be serialized. It can only be populated by the server.
152
+ */
153
+ readonly sapMonitorCollectorVersion?: string;
154
+ /** The subnet which the SAP monitor will be deployed in */
155
+ monitorSubnet?: string;
457
156
  };
458
157
 
459
- /**
460
- * Contains response data for the listByResourceGroup operation.
461
- */
462
- export type HanaInstancesListByResourceGroupResponse = HanaInstancesListResult & {
158
+ /** A provider instance associated with a SAP monitor. */
159
+ export type ProviderInstance = ProxyResource & {
160
+ /** The type of provider instance. */
161
+ typePropertiesType?: string;
162
+ /** A JSON string containing the properties of the provider instance. */
163
+ properties?: string;
164
+ /** A JSON string containing metadata of the provider instance. */
165
+ metadata?: string;
463
166
  /**
464
- * The underlying HTTP response.
167
+ * State of provisioning of the provider instance
168
+ * NOTE: This property will not be serialized. It can only be populated by the server.
465
169
  */
466
- _response: msRest.HttpResponse & {
467
- /**
468
- * The response body as text (string format)
469
- */
470
- bodyAsText: string;
471
-
472
- /**
473
- * The response body as parsed JSON or XML
474
- */
475
- parsedBody: HanaInstancesListResult;
476
- };
170
+ readonly provisioningState?: HanaProvisioningStatesEnum;
477
171
  };
478
172
 
479
- /**
480
- * Contains response data for the get operation.
481
- */
482
- export type HanaInstancesGetResponse = HanaInstance & {
483
- /**
484
- * The underlying HTTP response.
485
- */
486
- _response: msRest.HttpResponse & {
487
- /**
488
- * The response body as text (string format)
489
- */
490
- bodyAsText: string;
491
-
492
- /**
493
- * The response body as parsed JSON or XML
494
- */
495
- parsedBody: HanaInstance;
496
- };
497
- };
173
+ /** Known values of {@link HanaProvisioningStatesEnum} that the service accepts. */
174
+ export enum KnownHanaProvisioningStatesEnum {
175
+ Accepted = "Accepted",
176
+ Creating = "Creating",
177
+ Updating = "Updating",
178
+ Failed = "Failed",
179
+ Succeeded = "Succeeded",
180
+ Deleting = "Deleting",
181
+ Migrating = "Migrating"
182
+ }
498
183
 
499
184
  /**
500
- * Contains response data for the create operation.
501
- */
502
- export type HanaInstancesCreateResponse = HanaInstance & {
503
- /**
504
- * The underlying HTTP response.
505
- */
506
- _response: msRest.HttpResponse & {
507
- /**
508
- * The response body as text (string format)
509
- */
510
- bodyAsText: string;
511
-
512
- /**
513
- * The response body as parsed JSON or XML
514
- */
515
- parsedBody: HanaInstance;
516
- };
517
- };
185
+ * Defines values for HanaProvisioningStatesEnum. \
186
+ * {@link KnownHanaProvisioningStatesEnum} can be used interchangeably with HanaProvisioningStatesEnum,
187
+ * this enum contains the known values that the service supports.
188
+ * ### Known values supported by the service
189
+ * **Accepted** \
190
+ * **Creating** \
191
+ * **Updating** \
192
+ * **Failed** \
193
+ * **Succeeded** \
194
+ * **Deleting** \
195
+ * **Migrating**
196
+ */
197
+ export type HanaProvisioningStatesEnum = string;
198
+
199
+ /** Optional parameters. */
200
+ export interface OperationsListOptionalParams
201
+ extends coreClient.OperationOptions {}
202
+
203
+ /** Contains response data for the list operation. */
204
+ export type OperationsListResponse = OperationList;
205
+
206
+ /** Optional parameters. */
207
+ export interface SapMonitorsListOptionalParams
208
+ extends coreClient.OperationOptions {}
209
+
210
+ /** Contains response data for the list operation. */
211
+ export type SapMonitorsListResponse = SapMonitorListResult;
212
+
213
+ /** Optional parameters. */
214
+ export interface SapMonitorsGetOptionalParams
215
+ extends coreClient.OperationOptions {}
216
+
217
+ /** Contains response data for the get operation. */
218
+ export type SapMonitorsGetResponse = SapMonitor;
219
+
220
+ /** Optional parameters. */
221
+ export interface SapMonitorsCreateOptionalParams
222
+ extends coreClient.OperationOptions {
223
+ /** Delay to wait until next poll, in milliseconds. */
224
+ updateIntervalInMs?: number;
225
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
226
+ resumeFrom?: string;
227
+ }
518
228
 
519
- /**
520
- * Contains response data for the update operation.
521
- */
522
- export type HanaInstancesUpdateResponse = HanaInstance & {
523
- /**
524
- * The underlying HTTP response.
525
- */
526
- _response: msRest.HttpResponse & {
527
- /**
528
- * The response body as text (string format)
529
- */
530
- bodyAsText: string;
531
-
532
- /**
533
- * The response body as parsed JSON or XML
534
- */
535
- parsedBody: HanaInstance;
536
- };
537
- };
229
+ /** Contains response data for the create operation. */
230
+ export type SapMonitorsCreateResponse = SapMonitor;
538
231
 
539
- /**
540
- * Contains response data for the beginCreate operation.
541
- */
542
- export type HanaInstancesBeginCreateResponse = HanaInstance & {
543
- /**
544
- * The underlying HTTP response.
545
- */
546
- _response: msRest.HttpResponse & {
547
- /**
548
- * The response body as text (string format)
549
- */
550
- bodyAsText: string;
551
-
552
- /**
553
- * The response body as parsed JSON or XML
554
- */
555
- parsedBody: HanaInstance;
556
- };
557
- };
232
+ /** Optional parameters. */
233
+ export interface SapMonitorsDeleteOptionalParams
234
+ extends coreClient.OperationOptions {
235
+ /** Delay to wait until next poll, in milliseconds. */
236
+ updateIntervalInMs?: number;
237
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
238
+ resumeFrom?: string;
239
+ }
558
240
 
559
- /**
560
- * Contains response data for the listNext operation.
561
- */
562
- export type HanaInstancesListNextResponse = HanaInstancesListResult & {
563
- /**
564
- * The underlying HTTP response.
565
- */
566
- _response: msRest.HttpResponse & {
567
- /**
568
- * The response body as text (string format)
569
- */
570
- bodyAsText: string;
571
-
572
- /**
573
- * The response body as parsed JSON or XML
574
- */
575
- parsedBody: HanaInstancesListResult;
576
- };
577
- };
241
+ /** Optional parameters. */
242
+ export interface SapMonitorsUpdateOptionalParams
243
+ extends coreClient.OperationOptions {}
578
244
 
579
- /**
580
- * Contains response data for the listByResourceGroupNext operation.
581
- */
582
- export type HanaInstancesListByResourceGroupNextResponse = HanaInstancesListResult & {
583
- /**
584
- * The underlying HTTP response.
585
- */
586
- _response: msRest.HttpResponse & {
587
- /**
588
- * The response body as text (string format)
589
- */
590
- bodyAsText: string;
591
-
592
- /**
593
- * The response body as parsed JSON or XML
594
- */
595
- parsedBody: HanaInstancesListResult;
596
- };
597
- };
245
+ /** Contains response data for the update operation. */
246
+ export type SapMonitorsUpdateResponse = SapMonitor;
598
247
 
599
- /**
600
- * Contains response data for the list operation.
601
- */
602
- export type SapMonitorsListResponse = SapMonitorListResult & {
603
- /**
604
- * The underlying HTTP response.
605
- */
606
- _response: msRest.HttpResponse & {
607
- /**
608
- * The response body as text (string format)
609
- */
610
- bodyAsText: string;
611
-
612
- /**
613
- * The response body as parsed JSON or XML
614
- */
615
- parsedBody: SapMonitorListResult;
616
- };
617
- };
248
+ /** Optional parameters. */
249
+ export interface SapMonitorsListNextOptionalParams
250
+ extends coreClient.OperationOptions {}
618
251
 
619
- /**
620
- * Contains response data for the get operation.
621
- */
622
- export type SapMonitorsGetResponse = SapMonitor & {
623
- /**
624
- * The underlying HTTP response.
625
- */
626
- _response: msRest.HttpResponse & {
627
- /**
628
- * The response body as text (string format)
629
- */
630
- bodyAsText: string;
631
-
632
- /**
633
- * The response body as parsed JSON or XML
634
- */
635
- parsedBody: SapMonitor;
636
- };
637
- };
252
+ /** Contains response data for the listNext operation. */
253
+ export type SapMonitorsListNextResponse = SapMonitorListResult;
638
254
 
639
- /**
640
- * Contains response data for the create operation.
641
- */
642
- export type SapMonitorsCreateResponse = SapMonitor & {
643
- /**
644
- * The underlying HTTP response.
645
- */
646
- _response: msRest.HttpResponse & {
647
- /**
648
- * The response body as text (string format)
649
- */
650
- bodyAsText: string;
651
-
652
- /**
653
- * The response body as parsed JSON or XML
654
- */
655
- parsedBody: SapMonitor;
656
- };
657
- };
255
+ /** Optional parameters. */
256
+ export interface ProviderInstancesListOptionalParams
257
+ extends coreClient.OperationOptions {}
658
258
 
659
- /**
660
- * Contains response data for the update operation.
661
- */
662
- export type SapMonitorsUpdateResponse = SapMonitor & {
663
- /**
664
- * The underlying HTTP response.
665
- */
666
- _response: msRest.HttpResponse & {
667
- /**
668
- * The response body as text (string format)
669
- */
670
- bodyAsText: string;
671
-
672
- /**
673
- * The response body as parsed JSON or XML
674
- */
675
- parsedBody: SapMonitor;
676
- };
677
- };
259
+ /** Contains response data for the list operation. */
260
+ export type ProviderInstancesListResponse = ProviderInstanceListResult;
678
261
 
679
- /**
680
- * Contains response data for the beginCreate operation.
681
- */
682
- export type SapMonitorsBeginCreateResponse = SapMonitor & {
683
- /**
684
- * The underlying HTTP response.
685
- */
686
- _response: msRest.HttpResponse & {
687
- /**
688
- * The response body as text (string format)
689
- */
690
- bodyAsText: string;
691
-
692
- /**
693
- * The response body as parsed JSON or XML
694
- */
695
- parsedBody: SapMonitor;
696
- };
697
- };
262
+ /** Optional parameters. */
263
+ export interface ProviderInstancesGetOptionalParams
264
+ extends coreClient.OperationOptions {}
698
265
 
699
- /**
700
- * Contains response data for the listNext operation.
701
- */
702
- export type SapMonitorsListNextResponse = SapMonitorListResult & {
703
- /**
704
- * The underlying HTTP response.
705
- */
706
- _response: msRest.HttpResponse & {
707
- /**
708
- * The response body as text (string format)
709
- */
710
- bodyAsText: string;
711
-
712
- /**
713
- * The response body as parsed JSON or XML
714
- */
715
- parsedBody: SapMonitorListResult;
716
- };
717
- };
266
+ /** Contains response data for the get operation. */
267
+ export type ProviderInstancesGetResponse = ProviderInstance;
268
+
269
+ /** Optional parameters. */
270
+ export interface ProviderInstancesCreateOptionalParams
271
+ extends coreClient.OperationOptions {
272
+ /** Delay to wait until next poll, in milliseconds. */
273
+ updateIntervalInMs?: number;
274
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
275
+ resumeFrom?: string;
276
+ }
277
+
278
+ /** Contains response data for the create operation. */
279
+ export type ProviderInstancesCreateResponse = ProviderInstance;
280
+
281
+ /** Optional parameters. */
282
+ export interface ProviderInstancesDeleteOptionalParams
283
+ extends coreClient.OperationOptions {
284
+ /** Delay to wait until next poll, in milliseconds. */
285
+ updateIntervalInMs?: number;
286
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
287
+ resumeFrom?: string;
288
+ }
289
+
290
+ /** Optional parameters. */
291
+ export interface ProviderInstancesListNextOptionalParams
292
+ extends coreClient.OperationOptions {}
293
+
294
+ /** Contains response data for the listNext operation. */
295
+ export type ProviderInstancesListNextResponse = ProviderInstanceListResult;
296
+
297
+ /** Optional parameters. */
298
+ export interface HanaManagementClientOptionalParams
299
+ extends coreClient.ServiceClientOptions {
300
+ /** server parameter */
301
+ $host?: string;
302
+ /** Api Version */
303
+ apiVersion?: string;
304
+ /** Overrides client endpoint. */
305
+ endpoint?: string;
306
+ }