@azure/arm-resourcehealth 4.0.1-alpha.20231016.1 → 4.1.0-alpha.20231023.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/CHANGELOG.md +20 -2
  2. package/README.md +1 -1
  3. package/dist/index.js +144 -157
  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 +4 -9
  10. package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js.map +1 -1
  11. package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +4 -9
  12. package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js.map +1 -1
  13. package/dist-esm/samples-dev/availabilityStatusesListSample.js +5 -12
  14. package/dist-esm/samples-dev/availabilityStatusesListSample.js.map +1 -1
  15. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js +2 -4
  16. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js.map +1 -1
  17. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js +5 -12
  18. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +1 -1
  19. package/dist-esm/samples-dev/childResourcesListSample.js +5 -12
  20. package/dist-esm/samples-dev/childResourcesListSample.js.map +1 -1
  21. package/dist-esm/samples-dev/emergingIssuesGetSample.js +2 -4
  22. package/dist-esm/samples-dev/emergingIssuesGetSample.js.map +1 -1
  23. package/dist-esm/samples-dev/emergingIssuesListSample.js +5 -12
  24. package/dist-esm/samples-dev/emergingIssuesListSample.js.map +1 -1
  25. package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js +1 -1
  26. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js +2 -4
  27. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js.map +1 -1
  28. package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js +1 -1
  29. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js +2 -4
  30. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js.map +1 -1
  31. package/dist-esm/samples-dev/eventsListBySingleResourceSample.js +5 -12
  32. package/dist-esm/samples-dev/eventsListBySingleResourceSample.js.map +1 -1
  33. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js +4 -9
  34. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js.map +1 -1
  35. package/dist-esm/samples-dev/eventsListByTenantIdSample.js +5 -12
  36. package/dist-esm/samples-dev/eventsListByTenantIdSample.js.map +1 -1
  37. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js +2 -4
  38. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js.map +1 -1
  39. package/dist-esm/samples-dev/impactedResourcesGetSample.js +1 -1
  40. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js +4 -9
  41. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -1
  42. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js +5 -12
  43. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js.map +1 -1
  44. package/dist-esm/samples-dev/metadataGetEntitySample.js +2 -4
  45. package/dist-esm/samples-dev/metadataGetEntitySample.js.map +1 -1
  46. package/dist-esm/samples-dev/metadataListSample.js +5 -12
  47. package/dist-esm/samples-dev/metadataListSample.js.map +1 -1
  48. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  49. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js +4 -9
  50. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -1
  51. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js +5 -12
  52. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js.map +1 -1
  53. package/dist-esm/src/microsoftResourceHealth.d.ts +2 -1
  54. package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
  55. package/dist-esm/src/microsoftResourceHealth.js +9 -11
  56. package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
  57. package/dist-esm/src/models/index.d.ts +46 -0
  58. package/dist-esm/src/models/index.d.ts.map +1 -1
  59. package/dist-esm/src/models/index.js +6 -0
  60. package/dist-esm/src/models/index.js.map +1 -1
  61. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  62. package/dist-esm/src/models/mappers.js +50 -0
  63. package/dist-esm/src/models/mappers.js.map +1 -1
  64. package/dist-esm/src/models/parameters.js +1 -1
  65. package/dist-esm/src/models/parameters.js.map +1 -1
  66. package/dist-esm/src/operations/availabilityStatuses.js +9 -24
  67. package/dist-esm/src/operations/availabilityStatuses.js.map +1 -1
  68. package/dist-esm/src/operations/childAvailabilityStatuses.js +3 -8
  69. package/dist-esm/src/operations/childAvailabilityStatuses.js.map +1 -1
  70. package/dist-esm/src/operations/childResources.js +3 -8
  71. package/dist-esm/src/operations/childResources.js.map +1 -1
  72. package/dist-esm/src/operations/emergingIssues.js +3 -8
  73. package/dist-esm/src/operations/emergingIssues.js.map +1 -1
  74. package/dist-esm/src/operations/eventsOperations.js +9 -24
  75. package/dist-esm/src/operations/eventsOperations.js.map +1 -1
  76. package/dist-esm/src/operations/impactedResources.js +6 -16
  77. package/dist-esm/src/operations/impactedResources.js.map +1 -1
  78. package/dist-esm/src/operations/metadata.js +3 -8
  79. package/dist-esm/src/operations/metadata.js.map +1 -1
  80. package/dist-esm/src/operations/securityAdvisoryImpactedResources.js +6 -16
  81. package/dist-esm/src/operations/securityAdvisoryImpactedResources.js.map +1 -1
  82. package/package.json +15 -8
  83. package/review/arm-resourcehealth.api.md +19 -1
  84. package/rollup.config.js +122 -0
  85. package/src/microsoftResourceHealth.ts +19 -5
  86. package/src/models/index.ts +48 -0
  87. package/src/models/mappers.ts +59 -0
  88. package/src/models/parameters.ts +1 -1
  89. package/types/arm-resourcehealth.d.ts +50 -1
@@ -0,0 +1,122 @@
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
+
9
+ import nodeResolve from "@rollup/plugin-node-resolve";
10
+ import cjs from "@rollup/plugin-commonjs";
11
+ import sourcemaps from "rollup-plugin-sourcemaps";
12
+ import multiEntry from "@rollup/plugin-multi-entry";
13
+ import json from "@rollup/plugin-json";
14
+
15
+ import nodeBuiltins from "builtin-modules";
16
+
17
+ // #region Warning Handler
18
+
19
+ /**
20
+ * A function that can determine whether a rollup warning should be ignored. If
21
+ * the function returns `true`, then the warning will not be displayed.
22
+ */
23
+
24
+ function ignoreNiseSinonEval(warning) {
25
+ return (
26
+ warning.code === "EVAL" &&
27
+ warning.id &&
28
+ (warning.id.includes("node_modules/nise") ||
29
+ warning.id.includes("node_modules/sinon")) === true
30
+ );
31
+ }
32
+
33
+ function ignoreChaiCircularDependency(warning) {
34
+ return (
35
+ warning.code === "CIRCULAR_DEPENDENCY" &&
36
+ warning.importer && warning.importer.includes("node_modules/chai") === true
37
+ );
38
+ }
39
+
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
41
+
42
+ /**
43
+ * Construct a warning handler for the shared rollup configuration
44
+ * that ignores certain warnings that are not relevant to testing.
45
+ */
46
+ function makeOnWarnForTesting() {
47
+ return (warning, warn) => {
48
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
49
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
50
+ warn(warning);
51
+ }
52
+ };
53
+ }
54
+
55
+ // #endregion
56
+
57
+ function makeBrowserTestConfig() {
58
+ const config = {
59
+ input: {
60
+ include: ["dist-esm/test/**/*.spec.js"],
61
+ exclude: ["dist-esm/test/**/node/**"]
62
+ },
63
+ output: {
64
+ file: `dist-test/index.browser.js`,
65
+ format: "umd",
66
+ sourcemap: true
67
+ },
68
+ preserveSymlinks: false,
69
+ plugins: [
70
+ multiEntry({ exports: false }),
71
+ nodeResolve({
72
+ mainFields: ["module", "browser"]
73
+ }),
74
+ cjs(),
75
+ json(),
76
+ sourcemaps()
77
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
78
+ ],
79
+ onwarn: makeOnWarnForTesting(),
80
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
81
+ // rollup started respecting the "sideEffects" field in package.json. Since
82
+ // our package.json sets "sideEffects=false", this also applies to test
83
+ // code, which causes all tests to be removed by tree-shaking.
84
+ treeshake: false
85
+ };
86
+
87
+ return config;
88
+ }
89
+
90
+ const defaultConfigurationOptions = {
91
+ disableBrowserBundle: false
92
+ };
93
+
94
+ export function makeConfig(pkg, options) {
95
+ options = {
96
+ ...defaultConfigurationOptions,
97
+ ...(options || {})
98
+ };
99
+
100
+ const baseConfig = {
101
+ // Use the package's module field if it has one
102
+ input: pkg["module"] || "dist-esm/src/index.js",
103
+ external: [
104
+ ...nodeBuiltins,
105
+ ...Object.keys(pkg.dependencies),
106
+ ...Object.keys(pkg.devDependencies)
107
+ ],
108
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
109
+ preserveSymlinks: false,
110
+ plugins: [sourcemaps(), nodeResolve()]
111
+ };
112
+
113
+ const config = [baseConfig];
114
+
115
+ if (!options.disableBrowserBundle) {
116
+ config.push(makeBrowserTestConfig());
117
+ }
118
+
119
+ return config;
120
+ }
121
+
122
+ export default makeConfig(require("./package.json"));
@@ -43,7 +43,7 @@ import { MicrosoftResourceHealthOptionalParams } from "./models";
43
43
  export class MicrosoftResourceHealth extends coreClient.ServiceClient {
44
44
  $host: string;
45
45
  apiVersion: string;
46
- subscriptionId: string;
46
+ subscriptionId?: string;
47
47
 
48
48
  /**
49
49
  * Initializes a new instance of the MicrosoftResourceHealth class.
@@ -55,12 +55,26 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
55
55
  credentials: coreAuth.TokenCredential,
56
56
  subscriptionId: string,
57
57
  options?: MicrosoftResourceHealthOptionalParams
58
+ );
59
+ constructor(
60
+ credentials: coreAuth.TokenCredential,
61
+ options?: MicrosoftResourceHealthOptionalParams
62
+ );
63
+ constructor(
64
+ credentials: coreAuth.TokenCredential,
65
+ subscriptionIdOrOptions?: MicrosoftResourceHealthOptionalParams | string,
66
+ options?: MicrosoftResourceHealthOptionalParams
58
67
  ) {
59
68
  if (credentials === undefined) {
60
69
  throw new Error("'credentials' cannot be null");
61
70
  }
62
- if (subscriptionId === undefined) {
63
- throw new Error("'subscriptionId' cannot be null");
71
+
72
+ let subscriptionId: string | undefined;
73
+
74
+ if (typeof subscriptionIdOrOptions === "string") {
75
+ subscriptionId = subscriptionIdOrOptions;
76
+ } else if (typeof subscriptionIdOrOptions === "object") {
77
+ options = subscriptionIdOrOptions;
64
78
  }
65
79
 
66
80
  // Initializing default values for options
@@ -72,7 +86,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
72
86
  credential: credentials
73
87
  };
74
88
 
75
- const packageDetails = `azsdk-js-arm-resourcehealth/4.0.1`;
89
+ const packageDetails = `azsdk-js-arm-resourcehealth/4.1.0-beta.2`;
76
90
  const userAgentPrefix =
77
91
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
78
92
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -125,7 +139,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
125
139
 
126
140
  // Assigning values to Constant parameters
127
141
  this.$host = options.$host || "https://management.azure.com";
128
- this.apiVersion = options.apiVersion || "2022-10-01";
142
+ this.apiVersion = options.apiVersion || "2023-10-01-preview";
129
143
  this.availabilityStatuses = new AvailabilityStatusesImpl(this);
130
144
  this.operations = new OperationsImpl(this);
131
145
  this.metadata = new MetadataImpl(this);
@@ -453,6 +453,31 @@ export interface EventImpactedResource extends ProxyResource {
453
453
  * NOTE: This property will not be serialized. It can only be populated by the server.
454
454
  */
455
455
  readonly targetRegion?: string;
456
+ /**
457
+ * Resource name of the impacted resource.
458
+ * NOTE: This property will not be serialized. It can only be populated by the server.
459
+ */
460
+ readonly resourceName?: string;
461
+ /**
462
+ * Resource group name of the impacted resource.
463
+ * NOTE: This property will not be serialized. It can only be populated by the server.
464
+ */
465
+ readonly resourceGroup?: string;
466
+ /**
467
+ * Status of the impacted resource.
468
+ * NOTE: This property will not be serialized. It can only be populated by the server.
469
+ */
470
+ readonly status?: string;
471
+ /**
472
+ * Start time of maintenance for the impacted resource.
473
+ * NOTE: This property will not be serialized. It can only be populated by the server.
474
+ */
475
+ readonly maintenanceStartTime?: string;
476
+ /**
477
+ * End time of maintenance for the impacted resource.
478
+ * NOTE: This property will not be serialized. It can only be populated by the server.
479
+ */
480
+ readonly maintenanceEndTime?: string;
456
481
  /** Additional information. */
457
482
  info?: KeyValueItem[];
458
483
  }
@@ -461,6 +486,8 @@ export interface EventImpactedResource extends ProxyResource {
461
486
  export interface Event extends ProxyResource {
462
487
  /** Type of event. */
463
488
  eventType?: EventTypeValues;
489
+ /** Sub type of the event. Currently used to determine retirement communications for health advisory events */
490
+ eventSubType?: EventSubTypeValues;
464
491
  /** Source of event. */
465
492
  eventSource?: EventSourceValues;
466
493
  /** Current status of event. */
@@ -515,6 +542,12 @@ export interface Event extends ProxyResource {
515
542
  duration?: number;
516
543
  /** The type of the impact */
517
544
  impactType?: string;
545
+ /** Unique identifier for planned maintenance event. */
546
+ maintenanceId?: string;
547
+ /** The type of planned maintenance event. */
548
+ maintenanceType?: string;
549
+ /** Azure Resource Graph query to fetch the affected resources from their existing Azure Resource Graph locations. */
550
+ argQuery?: string;
518
551
  }
519
552
 
520
553
  /** The Get EmergingIssues operation response. */
@@ -652,6 +685,21 @@ export enum KnownEventTypeValues {
652
685
  */
653
686
  export type EventTypeValues = string;
654
687
 
688
+ /** Known values of {@link EventSubTypeValues} that the service accepts. */
689
+ export enum KnownEventSubTypeValues {
690
+ /** Retirement */
691
+ Retirement = "Retirement"
692
+ }
693
+
694
+ /**
695
+ * Defines values for EventSubTypeValues. \
696
+ * {@link KnownEventSubTypeValues} can be used interchangeably with EventSubTypeValues,
697
+ * this enum contains the known values that the service supports.
698
+ * ### Known values supported by the service
699
+ * **Retirement**
700
+ */
701
+ export type EventSubTypeValues = string;
702
+
655
703
  /** Known values of {@link EventSourceValues} that the service accepts. */
656
704
  export enum KnownEventSourceValues {
657
705
  /** ResourceHealth */
@@ -1265,6 +1265,41 @@ export const EventImpactedResource: coreClient.CompositeMapper = {
1265
1265
  name: "String"
1266
1266
  }
1267
1267
  },
1268
+ resourceName: {
1269
+ serializedName: "properties.resourceName",
1270
+ readOnly: true,
1271
+ type: {
1272
+ name: "String"
1273
+ }
1274
+ },
1275
+ resourceGroup: {
1276
+ serializedName: "properties.resourceGroup",
1277
+ readOnly: true,
1278
+ type: {
1279
+ name: "String"
1280
+ }
1281
+ },
1282
+ status: {
1283
+ serializedName: "properties.status",
1284
+ readOnly: true,
1285
+ type: {
1286
+ name: "String"
1287
+ }
1288
+ },
1289
+ maintenanceStartTime: {
1290
+ serializedName: "properties.maintenanceStartTime",
1291
+ readOnly: true,
1292
+ type: {
1293
+ name: "String"
1294
+ }
1295
+ },
1296
+ maintenanceEndTime: {
1297
+ serializedName: "properties.maintenanceEndTime",
1298
+ readOnly: true,
1299
+ type: {
1300
+ name: "String"
1301
+ }
1302
+ },
1268
1303
  info: {
1269
1304
  serializedName: "properties.info",
1270
1305
  type: {
@@ -1293,6 +1328,12 @@ export const Event: coreClient.CompositeMapper = {
1293
1328
  name: "String"
1294
1329
  }
1295
1330
  },
1331
+ eventSubType: {
1332
+ serializedName: "properties.eventSubType",
1333
+ type: {
1334
+ name: "String"
1335
+ }
1336
+ },
1296
1337
  eventSource: {
1297
1338
  serializedName: "properties.eventSource",
1298
1339
  type: {
@@ -1475,6 +1516,24 @@ export const Event: coreClient.CompositeMapper = {
1475
1516
  type: {
1476
1517
  name: "String"
1477
1518
  }
1519
+ },
1520
+ maintenanceId: {
1521
+ serializedName: "properties.maintenanceId",
1522
+ type: {
1523
+ name: "String"
1524
+ }
1525
+ },
1526
+ maintenanceType: {
1527
+ serializedName: "properties.maintenanceType",
1528
+ type: {
1529
+ name: "String"
1530
+ }
1531
+ },
1532
+ argQuery: {
1533
+ serializedName: "properties.argQuery",
1534
+ type: {
1535
+ name: "String"
1536
+ }
1478
1537
  }
1479
1538
  }
1480
1539
  }
@@ -39,7 +39,7 @@ export const $host: OperationURLParameter = {
39
39
  export const apiVersion: OperationQueryParameter = {
40
40
  parameterPath: "apiVersion",
41
41
  mapper: {
42
- defaultValue: "2022-10-01",
42
+ defaultValue: "2023-10-01-preview",
43
43
  isConstant: true,
44
44
  serializedName: "api-version",
45
45
  type: {
@@ -370,6 +370,8 @@ export declare interface ErrorResponse {
370
370
  declare interface Event_2 extends ProxyResource {
371
371
  /** Type of event. */
372
372
  eventType?: EventTypeValues;
373
+ /** Sub type of the event. Currently used to determine retirement communications for health advisory events */
374
+ eventSubType?: EventSubTypeValues;
373
375
  /** Source of event. */
374
376
  eventSource?: EventSourceValues;
375
377
  /** Current status of event. */
@@ -424,6 +426,12 @@ declare interface Event_2 extends ProxyResource {
424
426
  duration?: number;
425
427
  /** The type of the impact */
426
428
  impactType?: string;
429
+ /** Unique identifier for planned maintenance event. */
430
+ maintenanceId?: string;
431
+ /** The type of planned maintenance event. */
432
+ maintenanceType?: string;
433
+ /** Azure Resource Graph query to fetch the affected resources from their existing Azure Resource Graph locations. */
434
+ argQuery?: string;
427
435
  }
428
436
  export { Event_2 as Event }
429
437
 
@@ -480,6 +488,31 @@ export declare interface EventImpactedResource extends ProxyResource {
480
488
  * NOTE: This property will not be serialized. It can only be populated by the server.
481
489
  */
482
490
  readonly targetRegion?: string;
491
+ /**
492
+ * Resource name of the impacted resource.
493
+ * NOTE: This property will not be serialized. It can only be populated by the server.
494
+ */
495
+ readonly resourceName?: string;
496
+ /**
497
+ * Resource group name of the impacted resource.
498
+ * NOTE: This property will not be serialized. It can only be populated by the server.
499
+ */
500
+ readonly resourceGroup?: string;
501
+ /**
502
+ * Status of the impacted resource.
503
+ * NOTE: This property will not be serialized. It can only be populated by the server.
504
+ */
505
+ readonly status?: string;
506
+ /**
507
+ * Start time of maintenance for the impacted resource.
508
+ * NOTE: This property will not be serialized. It can only be populated by the server.
509
+ */
510
+ readonly maintenanceStartTime?: string;
511
+ /**
512
+ * End time of maintenance for the impacted resource.
513
+ * NOTE: This property will not be serialized. It can only be populated by the server.
514
+ */
515
+ readonly maintenanceEndTime?: string;
483
516
  /** Additional information. */
484
517
  info?: KeyValueItem[];
485
518
  }
@@ -672,6 +705,15 @@ export declare type EventSourceValues = string;
672
705
  */
673
706
  export declare type EventStatusValues = string;
674
707
 
708
+ /**
709
+ * Defines values for EventSubTypeValues. \
710
+ * {@link KnownEventSubTypeValues} can be used interchangeably with EventSubTypeValues,
711
+ * this enum contains the known values that the service supports.
712
+ * ### Known values supported by the service
713
+ * **Retirement**
714
+ */
715
+ export declare type EventSubTypeValues = string;
716
+
675
717
  /**
676
718
  * Defines values for EventTypeValues. \
677
719
  * {@link KnownEventTypeValues} can be used interchangeably with EventTypeValues,
@@ -902,6 +944,12 @@ export declare enum KnownEventStatusValues {
902
944
  Resolved = "Resolved"
903
945
  }
904
946
 
947
+ /** Known values of {@link EventSubTypeValues} that the service accepts. */
948
+ export declare enum KnownEventSubTypeValues {
949
+ /** Retirement */
950
+ Retirement = "Retirement"
951
+ }
952
+
905
953
  /** Known values of {@link EventTypeValues} that the service accepts. */
906
954
  export declare enum KnownEventTypeValues {
907
955
  /** ServiceIssue */
@@ -1095,7 +1143,7 @@ export declare interface MetadataSupportedValueDetail {
1095
1143
  export declare class MicrosoftResourceHealth extends coreClient.ServiceClient {
1096
1144
  $host: string;
1097
1145
  apiVersion: string;
1098
- subscriptionId: string;
1146
+ subscriptionId?: string;
1099
1147
  /**
1100
1148
  * Initializes a new instance of the MicrosoftResourceHealth class.
1101
1149
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -1103,6 +1151,7 @@ export declare class MicrosoftResourceHealth extends coreClient.ServiceClient {
1103
1151
  * @param options The parameter options
1104
1152
  */
1105
1153
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftResourceHealthOptionalParams);
1154
+ constructor(credentials: coreAuth.TokenCredential, options?: MicrosoftResourceHealthOptionalParams);
1106
1155
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1107
1156
  private addCustomApiVersionPolicy;
1108
1157
  availabilityStatuses: AvailabilityStatuses;