@azure/arm-resourcehealth 4.0.1-alpha.20231009.1 → 4.1.0-alpha.20231020.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/CHANGELOG.md +19 -11
  2. package/README.md +1 -1
  3. package/dist/index.js +66 -12
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js +2 -4
  8. package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js.map +1 -1
  9. package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js +1 -1
  10. package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +1 -1
  11. package/dist-esm/samples-dev/availabilityStatusesListSample.js +2 -4
  12. package/dist-esm/samples-dev/availabilityStatusesListSample.js.map +1 -1
  13. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js +2 -4
  14. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js.map +1 -1
  15. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js +2 -4
  16. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +1 -1
  17. package/dist-esm/samples-dev/childResourcesListSample.js +2 -4
  18. package/dist-esm/samples-dev/childResourcesListSample.js.map +1 -1
  19. package/dist-esm/samples-dev/emergingIssuesGetSample.js +2 -4
  20. package/dist-esm/samples-dev/emergingIssuesGetSample.js.map +1 -1
  21. package/dist-esm/samples-dev/emergingIssuesListSample.js +2 -4
  22. package/dist-esm/samples-dev/emergingIssuesListSample.js.map +1 -1
  23. package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js +1 -1
  24. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js +2 -4
  25. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js.map +1 -1
  26. package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js +1 -1
  27. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js +2 -4
  28. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js.map +1 -1
  29. package/dist-esm/samples-dev/eventsListBySingleResourceSample.js +2 -4
  30. package/dist-esm/samples-dev/eventsListBySingleResourceSample.js.map +1 -1
  31. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js +1 -1
  32. package/dist-esm/samples-dev/eventsListByTenantIdSample.js +2 -4
  33. package/dist-esm/samples-dev/eventsListByTenantIdSample.js.map +1 -1
  34. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js +2 -4
  35. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js.map +1 -1
  36. package/dist-esm/samples-dev/impactedResourcesGetSample.js +1 -1
  37. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js +1 -1
  38. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js +2 -4
  39. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js.map +1 -1
  40. package/dist-esm/samples-dev/metadataGetEntitySample.js +2 -4
  41. package/dist-esm/samples-dev/metadataGetEntitySample.js.map +1 -1
  42. package/dist-esm/samples-dev/metadataListSample.js +2 -4
  43. package/dist-esm/samples-dev/metadataListSample.js.map +1 -1
  44. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  45. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js +1 -1
  46. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js +2 -4
  47. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js.map +1 -1
  48. package/dist-esm/src/microsoftResourceHealth.d.ts +2 -1
  49. package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
  50. package/dist-esm/src/microsoftResourceHealth.js +9 -11
  51. package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
  52. package/dist-esm/src/models/index.d.ts +46 -0
  53. package/dist-esm/src/models/index.d.ts.map +1 -1
  54. package/dist-esm/src/models/index.js +6 -0
  55. package/dist-esm/src/models/index.js.map +1 -1
  56. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  57. package/dist-esm/src/models/mappers.js +50 -0
  58. package/dist-esm/src/models/mappers.js.map +1 -1
  59. package/dist-esm/src/models/parameters.js +1 -1
  60. package/dist-esm/src/models/parameters.js.map +1 -1
  61. package/package.json +6 -6
  62. package/review/arm-resourcehealth.api.md +19 -1
  63. package/src/microsoftResourceHealth.ts +19 -5
  64. package/src/models/index.ts +48 -0
  65. package/src/models/mappers.ts +59 -0
  66. package/src/models/parameters.ts +1 -1
  67. package/types/arm-resourcehealth.d.ts +50 -1
package/CHANGELOG.md CHANGED
@@ -1,15 +1,23 @@
1
1
  # Release History
2
+
3
+ ## 4.1.0-beta.1 (2023-10-17)
4
+
5
+ **Features**
2
6
 
3
- ## 4.0.1 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
7
+ - Added Type Alias EventSubTypeValues
8
+ - Interface Event_2 has a new optional parameter argQuery
9
+ - Interface Event_2 has a new optional parameter eventSubType
10
+ - Interface Event_2 has a new optional parameter maintenanceId
11
+ - Interface Event_2 has a new optional parameter maintenanceType
12
+ - Interface EventImpactedResource has a new optional parameter maintenanceEndTime
13
+ - Interface EventImpactedResource has a new optional parameter maintenanceStartTime
14
+ - Interface EventImpactedResource has a new optional parameter resourceGroup
15
+ - Interface EventImpactedResource has a new optional parameter resourceName
16
+ - Interface EventImpactedResource has a new optional parameter status
17
+ - Added Enum KnownEventSubTypeValues
18
+ - Class MicrosoftResourceHealth has a new signature
19
+
20
+
13
21
  ## 4.0.0 (2023-05-12)
14
22
 
15
23
  **Features**
@@ -159,4 +167,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.
159
167
 
160
168
  To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
161
169
 
162
- To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
170
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -6,7 +6,7 @@ The Resource Health Client.
6
6
 
7
7
  [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth) |
8
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-resourcehealth) |
9
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourcehealth) |
9
+ [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourcehealth?view=azure-node-preview) |
10
10
  [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
11
11
 
12
12
  ## Getting started
package/dist/index.js CHANGED
@@ -120,6 +120,12 @@ exports.KnownEventTypeValues = void 0;
120
120
  /** SecurityAdvisory */
121
121
  KnownEventTypeValues["SecurityAdvisory"] = "SecurityAdvisory";
122
122
  })(exports.KnownEventTypeValues || (exports.KnownEventTypeValues = {}));
123
+ /** Known values of {@link EventSubTypeValues} that the service accepts. */
124
+ exports.KnownEventSubTypeValues = void 0;
125
+ (function (KnownEventSubTypeValues) {
126
+ /** Retirement */
127
+ KnownEventSubTypeValues["Retirement"] = "Retirement";
128
+ })(exports.KnownEventSubTypeValues || (exports.KnownEventSubTypeValues = {}));
123
129
  /** Known values of {@link EventSourceValues} that the service accepts. */
124
130
  exports.KnownEventSourceValues = void 0;
125
131
  (function (KnownEventSourceValues) {
@@ -1416,6 +1422,36 @@ const EventImpactedResource = {
1416
1422
  type: {
1417
1423
  name: "String"
1418
1424
  }
1425
+ }, resourceName: {
1426
+ serializedName: "properties.resourceName",
1427
+ readOnly: true,
1428
+ type: {
1429
+ name: "String"
1430
+ }
1431
+ }, resourceGroup: {
1432
+ serializedName: "properties.resourceGroup",
1433
+ readOnly: true,
1434
+ type: {
1435
+ name: "String"
1436
+ }
1437
+ }, status: {
1438
+ serializedName: "properties.status",
1439
+ readOnly: true,
1440
+ type: {
1441
+ name: "String"
1442
+ }
1443
+ }, maintenanceStartTime: {
1444
+ serializedName: "properties.maintenanceStartTime",
1445
+ readOnly: true,
1446
+ type: {
1447
+ name: "String"
1448
+ }
1449
+ }, maintenanceEndTime: {
1450
+ serializedName: "properties.maintenanceEndTime",
1451
+ readOnly: true,
1452
+ type: {
1453
+ name: "String"
1454
+ }
1419
1455
  }, info: {
1420
1456
  serializedName: "properties.info",
1421
1457
  type: {
@@ -1439,6 +1475,11 @@ const Event = {
1439
1475
  type: {
1440
1476
  name: "String"
1441
1477
  }
1478
+ }, eventSubType: {
1479
+ serializedName: "properties.eventSubType",
1480
+ type: {
1481
+ name: "String"
1482
+ }
1442
1483
  }, eventSource: {
1443
1484
  serializedName: "properties.eventSource",
1444
1485
  type: {
@@ -1595,6 +1636,21 @@ const Event = {
1595
1636
  type: {
1596
1637
  name: "String"
1597
1638
  }
1639
+ }, maintenanceId: {
1640
+ serializedName: "properties.maintenanceId",
1641
+ type: {
1642
+ name: "String"
1643
+ }
1644
+ }, maintenanceType: {
1645
+ serializedName: "properties.maintenanceType",
1646
+ type: {
1647
+ name: "String"
1648
+ }
1649
+ }, argQuery: {
1650
+ serializedName: "properties.argQuery",
1651
+ type: {
1652
+ name: "String"
1653
+ }
1598
1654
  } })
1599
1655
  }
1600
1656
  };
@@ -1741,7 +1797,7 @@ const $host = {
1741
1797
  const apiVersion = {
1742
1798
  parameterPath: "apiVersion",
1743
1799
  mapper: {
1744
- defaultValue: "2022-10-01",
1800
+ defaultValue: "2023-10-01-preview",
1745
1801
  isConstant: true,
1746
1802
  serializedName: "api-version",
1747
1803
  type: {
@@ -4117,19 +4173,17 @@ const listNextOperationSpec = {
4117
4173
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4118
4174
  */
4119
4175
  class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
4120
- /**
4121
- * Initializes a new instance of the MicrosoftResourceHealth class.
4122
- * @param credentials Subscription credentials which uniquely identify client subscription.
4123
- * @param subscriptionId The ID of the target subscription.
4124
- * @param options The parameter options
4125
- */
4126
- constructor(credentials, subscriptionId, options) {
4176
+ constructor(credentials, subscriptionIdOrOptions, options) {
4127
4177
  var _a, _b, _c;
4128
4178
  if (credentials === undefined) {
4129
4179
  throw new Error("'credentials' cannot be null");
4130
4180
  }
4131
- if (subscriptionId === undefined) {
4132
- throw new Error("'subscriptionId' cannot be null");
4181
+ let subscriptionId;
4182
+ if (typeof subscriptionIdOrOptions === "string") {
4183
+ subscriptionId = subscriptionIdOrOptions;
4184
+ }
4185
+ else if (typeof subscriptionIdOrOptions === "object") {
4186
+ options = subscriptionIdOrOptions;
4133
4187
  }
4134
4188
  // Initializing default values for options
4135
4189
  if (!options) {
@@ -4139,7 +4193,7 @@ class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
4139
4193
  requestContentType: "application/json; charset=utf-8",
4140
4194
  credential: credentials
4141
4195
  };
4142
- const packageDetails = `azsdk-js-arm-resourcehealth/4.0.1`;
4196
+ const packageDetails = `azsdk-js-arm-resourcehealth/4.1.0-beta.1`;
4143
4197
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4144
4198
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4145
4199
  : `${packageDetails}`;
@@ -4172,7 +4226,7 @@ class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
4172
4226
  this.subscriptionId = subscriptionId;
4173
4227
  // Assigning values to Constant parameters
4174
4228
  this.$host = options.$host || "https://management.azure.com";
4175
- this.apiVersion = options.apiVersion || "2022-10-01";
4229
+ this.apiVersion = options.apiVersion || "2023-10-01-preview";
4176
4230
  this.availabilityStatuses = new AvailabilityStatusesImpl(this);
4177
4231
  this.operations = new OperationsImpl(this);
4178
4232
  this.metadata = new MetadataImpl(this);