diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 54f1a1847991..9e5d84d2dc3b 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -4132,7 +4132,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20230811 + typescript: 5.3.0-dev.20230816 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8717,8 +8717,8 @@ packages: hasBin: true dev: false - /typescript/5.3.0-dev.20230811: - resolution: {integrity: sha512-C4bwx7ZpBwX7bKxrrNl+M1j8yNGmwQ5M58X0mT4VYI1+FHqRvb/uJ4F1uJsVJ+X7iy22iXSICR/Vxnpc1gNk7w==} + /typescript/5.3.0-dev.20230816: + resolution: {integrity: sha512-iEOudrx61DsbJn+z2bVX+/FldF7ILAuGwQYO2EvF4F33Q8DUV0KSkiikxUB83VVH8ExkwQHVNdtkr16wd2V71w==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -14532,7 +14532,7 @@ packages: dev: false file:projects/arm-resourcehealth.tgz: - resolution: {integrity: sha512-4cOfrbCPt3mcbBhMXKc46otMpTadYKZkV9XpP+X3s95j/oJuW7glLTmhtq5OqqQRVpz7wHCl3Yc5bTUEbP9k3A==, tarball: file:projects/arm-resourcehealth.tgz} + resolution: {integrity: sha512-V7JnUy7tEfHi7fQe/m6sczV6KOFBLZghJNqtQiauNtWU+Z6FVGdeN4XgsE6fAJQOce7J601D3ruasVw4qevQ/w==, tarball: file:projects/arm-resourcehealth.tgz} name: '@rush-temp/arm-resourcehealth' version: 0.0.0 dependencies: @@ -14552,10 +14552,13 @@ packages: rimraf: 3.0.2 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_dmbj5memikchm63lpeyt6ukdau + ts-node: 10.9.1_n7tz6hmpirns3flqdptizaxofa tslib: 2.6.1 typescript: 5.0.4 uglify-js: 3.17.4 transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' - supports-color dev: false diff --git a/sdk/resourcehealth/arm-resourcehealth/CHANGELOG.md b/sdk/resourcehealth/arm-resourcehealth/CHANGELOG.md index b080f1870b5f..b5aef9d98da0 100644 --- a/sdk/resourcehealth/arm-resourcehealth/CHANGELOG.md +++ b/sdk/resourcehealth/arm-resourcehealth/CHANGELOG.md @@ -1,15 +1,27 @@ # Release History + +## 5.0.0-beta.1 (2023-08-16) + +**Features** -## 4.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Interface Event_2 has a new optional parameter argQuery + - Interface Event_2 has a new optional parameter maintenanceId + - Interface Event_2 has a new optional parameter maintenanceType -### Other Changes +**Breaking Changes** + - Removed operation group ChildAvailabilityStatuses + - Removed operation group ChildResources + - Class MicrosoftResourceHealth has a new signature + - Interface AvailabilityStatusProperties no longer has parameter articleId + - Interface Event_2 no longer has parameter reason + - Interface EventPropertiesArticle no longer has parameter articleId + - Interface EventPropertiesArticle no longer has parameter parameters + - Interface RecommendedAction no longer has parameter actionUrlComment + - Class MicrosoftResourceHealth no longer has parameter childAvailabilityStatuses + - Class MicrosoftResourceHealth no longer has parameter childResources + + ## 4.0.0 (2023-05-12) **Features** diff --git a/sdk/resourcehealth/arm-resourcehealth/README.md b/sdk/resourcehealth/arm-resourcehealth/README.md index 00c23d812391..2b7431c61050 100644 --- a/sdk/resourcehealth/arm-resourcehealth/README.md +++ b/sdk/resourcehealth/arm-resourcehealth/README.md @@ -6,7 +6,7 @@ The Resource Health Client. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-resourcehealth) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourcehealth) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourcehealth?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/resourcehealth/arm-resourcehealth/_meta.json b/sdk/resourcehealth/arm-resourcehealth/_meta.json index 0fcb29de6f68..25cb730aaa7f 100644 --- a/sdk/resourcehealth/arm-resourcehealth/_meta.json +++ b/sdk/resourcehealth/arm-resourcehealth/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1c3433247689aa55d7ecdd213505dc28c035f2b9", + "commit": "5c1ea682d190ad8769009466e62bb94ea8e4e17e", "readme": "specification/resourcehealth/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\resourcehealth\\resource-manager\\readme.md --use=@autorest/typescript@6.0.1 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resourcehealth/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.1", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/resourcehealth/arm-resourcehealth/package.json b/sdk/resourcehealth/arm-resourcehealth/package.json index dc58997558f4..0eddd748c405 100644 --- a/sdk/resourcehealth/arm-resourcehealth/package.json +++ b/sdk/resourcehealth/arm-resourcehealth/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for MicrosoftResourceHealth.", - "version": "4.0.1", + "version": "5.0.0-beta.1", "engines": { "node": ">=14.0.0" }, @@ -11,7 +11,7 @@ "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -46,6 +46,7 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", + "ts-node": "^10.0.0", "@azure/dev-tool": "^1.0.0" }, "repository": { @@ -109,13 +110,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resourcehealth?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth" +} \ No newline at end of file diff --git a/sdk/resourcehealth/arm-resourcehealth/review/arm-resourcehealth.api.md b/sdk/resourcehealth/arm-resourcehealth/review/arm-resourcehealth.api.md index 2fe1bc4e41d9..8df3f1373c39 100644 --- a/sdk/resourcehealth/arm-resourcehealth/review/arm-resourcehealth.api.md +++ b/sdk/resourcehealth/arm-resourcehealth/review/arm-resourcehealth.api.md @@ -93,7 +93,6 @@ export interface AvailabilityStatusListResult { // @public export interface AvailabilityStatusProperties { - articleId?: string; availabilityState?: AvailabilityStateValues; category?: string; context?: string; @@ -122,58 +121,6 @@ export interface AvailabilityStatusPropertiesRecentlyResolved { unavailableSummary?: string; } -// @public -export interface ChildAvailabilityStatuses { - getByResource(resourceUri: string, options?: ChildAvailabilityStatusesGetByResourceOptionalParams): Promise; - list(resourceUri: string, options?: ChildAvailabilityStatusesListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ChildAvailabilityStatusesGetByResourceOptionalParams extends coreClient.OperationOptions { - expand?: string; - filter?: string; -} - -// @public -export type ChildAvailabilityStatusesGetByResourceResponse = AvailabilityStatus; - -// @public -export interface ChildAvailabilityStatusesListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ChildAvailabilityStatusesListNextResponse = AvailabilityStatusListResult; - -// @public -export interface ChildAvailabilityStatusesListOptionalParams extends coreClient.OperationOptions { - expand?: string; - filter?: string; -} - -// @public -export type ChildAvailabilityStatusesListResponse = AvailabilityStatusListResult; - -// @public -export interface ChildResources { - list(resourceUri: string, options?: ChildResourcesListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ChildResourcesListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ChildResourcesListNextResponse = AvailabilityStatusListResult; - -// @public -export interface ChildResourcesListOptionalParams extends coreClient.OperationOptions { - expand?: string; - filter?: string; -} - -// @public -export type ChildResourcesListResponse = AvailabilityStatusListResult; - // @public export type CreatedByType = string; @@ -204,7 +151,7 @@ export interface EmergingIssuesGetOptionalParams extends coreClient.OperationOpt export type EmergingIssuesGetResponse = EmergingIssuesGetResult; // @public -export interface EmergingIssuesGetResult extends ProxyResource { +export interface EmergingIssuesGetResult extends Resource { refreshTimestamp?: Date; statusActiveEvents?: StatusActiveEvent[]; statusBanners?: StatusBanner[]; @@ -234,6 +181,7 @@ export interface ErrorResponse { // @public interface Event_2 extends ProxyResource { additionalInformation?: EventPropertiesAdditionalInformation; + argQuery?: string; article?: EventPropertiesArticle; description?: string; duration?: number; @@ -254,9 +202,10 @@ interface Event_2 extends ProxyResource { lastUpdateTime?: Date; level?: LevelValues; links?: Link[]; + maintenanceId?: string; + maintenanceType?: string; platformInitiated?: boolean; priority?: number; - reason?: string; recommendedActions?: EventPropertiesRecommendedActions; status?: EventStatusValues; summary?: string; @@ -329,8 +278,6 @@ export interface EventPropertiesAdditionalInformation { // @public export interface EventPropertiesArticle { articleContent?: string; - articleId?: string; - parameters?: Record; } // @public @@ -686,15 +633,12 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftResourceHealthOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: MicrosoftResourceHealthOptionalParams); // (undocumented) apiVersion: string; // (undocumented) availabilityStatuses: AvailabilityStatuses; // (undocumented) - childAvailabilityStatuses: ChildAvailabilityStatuses; - // (undocumented) - childResources: ChildResources; - // (undocumented) emergingIssues: EmergingIssues; // (undocumented) eventOperations: EventOperations; @@ -709,7 +653,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { // (undocumented) securityAdvisoryImpactedResources: SecurityAdvisoryImpactedResources; // (undocumented) - subscriptionId: string; + subscriptionId?: string; } // @public @@ -764,7 +708,6 @@ export type ReasonTypeValues = string; export interface RecommendedAction { action?: string; actionUrl?: string; - actionUrlComment?: string; actionUrlText?: string; } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts index 8b0b0805029f..fdf1dcad82d3 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts @@ -22,8 +22,6 @@ import { SecurityAdvisoryImpactedResourcesImpl, EventsOperationsImpl, EventOperationsImpl, - ChildAvailabilityStatusesImpl, - ChildResourcesImpl, EmergingIssuesImpl } from "./operations"; import { @@ -34,8 +32,6 @@ import { SecurityAdvisoryImpactedResources, EventsOperations, EventOperations, - ChildAvailabilityStatuses, - ChildResources, EmergingIssues } from "./operationsInterfaces"; import { MicrosoftResourceHealthOptionalParams } from "./models"; @@ -43,7 +39,7 @@ import { MicrosoftResourceHealthOptionalParams } from "./models"; export class MicrosoftResourceHealth extends coreClient.ServiceClient { $host: string; apiVersion: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the MicrosoftResourceHealth class. @@ -55,12 +51,26 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftResourceHealthOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: MicrosoftResourceHealthOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: MicrosoftResourceHealthOptionalParams | string, + options?: MicrosoftResourceHealthOptionalParams ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -72,7 +82,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-resourcehealth/4.0.1`; + const packageDetails = `azsdk-js-arm-resourcehealth/5.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -125,7 +135,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-10-01"; + this.apiVersion = options.apiVersion || "2023-07-01-preview"; this.availabilityStatuses = new AvailabilityStatusesImpl(this); this.operations = new OperationsImpl(this); this.metadata = new MetadataImpl(this); @@ -135,8 +145,6 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { ); this.eventsOperations = new EventsOperationsImpl(this); this.eventOperations = new EventOperationsImpl(this); - this.childAvailabilityStatuses = new ChildAvailabilityStatusesImpl(this); - this.childResources = new ChildResourcesImpl(this); this.emergingIssues = new EmergingIssuesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -176,7 +184,5 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { securityAdvisoryImpactedResources: SecurityAdvisoryImpactedResources; eventsOperations: EventsOperations; eventOperations: EventOperations; - childAvailabilityStatuses: ChildAvailabilityStatuses; - childResources: ChildResources; emergingIssues: EmergingIssues; } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts index 92b42f4b0a75..7d39b3964f30 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts @@ -46,8 +46,6 @@ export interface AvailabilityStatusProperties { context?: string; /** When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored. */ category?: string; - /** The Article Id */ - articleId?: string; /** When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received. */ rootCauseAttributionTime?: Date; /** In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc. */ @@ -90,9 +88,7 @@ export interface RecommendedAction { action?: string; /** Link to the action */ actionUrl?: string; - /** the comment for the Action */ - actionUrlComment?: string; - /** Substring of action, it describes which text should host the action URL. */ + /** Substring of action, it describes which text should host the action url. */ actionUrlText?: string; } @@ -149,11 +145,11 @@ export interface ErrorResponse { /** Lists the operations response. */ export interface OperationListResult { - /** List of operations available in the Microsoft.ResourceHealth resource provider. */ + /** List of operations available in the resourcehealth resource provider. */ value: Operation[]; } -/** Operation available in the Microsoft.ResourceHealth resource provider. */ +/** Operation available in the resourcehealth resource provider. */ export interface Operation { /** Name of the operation. */ name?: string; @@ -265,10 +261,6 @@ export interface Events { export interface EventPropertiesArticle { /** Article content of event. */ articleContent?: string; - /** Article Id */ - articleId?: string; - /** It provides a map of parameter name and value */ - parameters?: Record; } /** Useful links for service health event. */ @@ -424,6 +416,16 @@ export interface ImpactedRegion { /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} +/** The Get EmergingIssues operation response. */ +export interface EmergingIssuesGetResult extends Resource { + /** Timestamp for when last time refreshed for ongoing emerging issue. */ + refreshTimestamp?: Date; + /** The list of emerging issues of banner type. */ + statusBanners?: StatusBanner[]; + /** The list of emerging issues of active event type. */ + statusActiveEvents?: StatusActiveEvent[]; +} + /** The metadata entity contract. */ export interface MetadataEntity extends ProxyResource { /** The display name. */ @@ -477,8 +479,6 @@ export interface Event extends ProxyResource { eventLevel?: EventLevelValues; /** The id of the Incident */ externalIncidentId?: string; - /** The reason for the Incident */ - reason?: string; /** Article of event. */ article?: EventPropertiesArticle; /** Useful links of event. */ @@ -515,16 +515,12 @@ export interface Event extends ProxyResource { duration?: number; /** The type of the impact */ impactType?: string; -} - -/** The Get EmergingIssues operation response. */ -export interface EmergingIssuesGetResult extends ProxyResource { - /** Timestamp for when last time refreshed for ongoing emerging issue. */ - refreshTimestamp?: Date; - /** The list of emerging issues of banner type. */ - statusBanners?: StatusBanner[]; - /** The list of emerging issues of active event type. */ - statusActiveEvents?: StatusActiveEvent[]; + /** Unique Id for Planned maintenance event */ + maintenanceId?: string; + /** The type of Planned maintenance event */ + maintenanceType?: string; + /** ARG Query to fetch the affected resources from their existing ARG locations */ + argQuery?: string; } /** impactedResource with health status */ @@ -1098,56 +1094,6 @@ export interface EventFetchDetailsByTenantIdAndTrackingIdOptionalParams /** Contains response data for the fetchDetailsByTenantIdAndTrackingId operation. */ export type EventFetchDetailsByTenantIdAndTrackingIdResponse = Event; -/** Optional parameters. */ -export interface ChildAvailabilityStatusesGetByResourceOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */ - filter?: string; - /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */ - expand?: string; -} - -/** Contains response data for the getByResource operation. */ -export type ChildAvailabilityStatusesGetByResourceResponse = AvailabilityStatus; - -/** Optional parameters. */ -export interface ChildAvailabilityStatusesListOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */ - filter?: string; - /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */ - expand?: string; -} - -/** Contains response data for the list operation. */ -export type ChildAvailabilityStatusesListResponse = AvailabilityStatusListResult; - -/** Optional parameters. */ -export interface ChildAvailabilityStatusesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ChildAvailabilityStatusesListNextResponse = AvailabilityStatusListResult; - -/** Optional parameters. */ -export interface ChildResourcesListOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */ - filter?: string; - /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */ - expand?: string; -} - -/** Contains response data for the list operation. */ -export type ChildResourcesListResponse = AvailabilityStatusListResult; - -/** Optional parameters. */ -export interface ChildResourcesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ChildResourcesListNextResponse = AvailabilityStatusListResult; - /** Optional parameters. */ export interface EmergingIssuesListOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts index 6ee8e9eb11d0..c5bc6a77f8f8 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts @@ -123,12 +123,6 @@ export const AvailabilityStatusProperties: coreClient.CompositeMapper = { name: "String" } }, - articleId: { - serializedName: "articleId", - type: { - name: "String" - } - }, rootCauseAttributionTime: { serializedName: "rootCauseAttributionTime", type: { @@ -262,12 +256,6 @@ export const RecommendedAction: coreClient.CompositeMapper = { name: "String" } }, - actionUrlComment: { - serializedName: "_ActionUrl\\.Comment", - type: { - name: "String" - } - }, actionUrlText: { serializedName: "actionUrlText", type: { @@ -704,19 +692,6 @@ export const EventPropertiesArticle: coreClient.CompositeMapper = { type: { name: "String" } - }, - articleId: { - serializedName: "articleId", - type: { - name: "String" - } - }, - parameters: { - serializedName: "parameters", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } } } } @@ -1188,6 +1163,46 @@ export const ProxyResource: coreClient.CompositeMapper = { } }; +export const EmergingIssuesGetResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EmergingIssuesGetResult", + modelProperties: { + ...Resource.type.modelProperties, + refreshTimestamp: { + serializedName: "properties.refreshTimestamp", + type: { + name: "DateTime" + } + }, + statusBanners: { + serializedName: "properties.statusBanners", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusBanner" + } + } + } + }, + statusActiveEvents: { + serializedName: "properties.statusActiveEvents", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusActiveEvent" + } + } + } + } + } + } +}; + export const MetadataEntity: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1341,12 +1356,6 @@ export const Event: coreClient.CompositeMapper = { name: "String" } }, - reason: { - serializedName: "properties.reason", - type: { - name: "String" - } - }, article: { serializedName: "properties.article", type: { @@ -1475,45 +1484,23 @@ export const Event: coreClient.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const EmergingIssuesGetResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EmergingIssuesGetResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - refreshTimestamp: { - serializedName: "properties.refreshTimestamp", + }, + maintenanceId: { + serializedName: "properties.maintenanceId", type: { - name: "DateTime" + name: "String" } }, - statusBanners: { - serializedName: "properties.statusBanners", + maintenanceType: { + serializedName: "properties.maintenanceType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StatusBanner" - } - } + name: "String" } }, - statusActiveEvents: { - serializedName: "properties.statusActiveEvents", + argQuery: { + serializedName: "properties.argQuery", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StatusActiveEvent" - } - } + name: "String" } } } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts index d9cf79fdfa88..a56e894ff917 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts @@ -39,7 +39,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-10-01", + defaultValue: "2023-07-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -85,10 +85,6 @@ export const expand: OperationQueryParameter = { export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { - constraints: { - MaxLength: 90, - MinLength: 1 - }, serializedName: "resourceGroupName", required: true, type: { diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts index 07ef720b0a72..597961edbf67 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts @@ -100,7 +100,7 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { /** * Lists the current availability status for all the resources in the resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group. * @param options The options parameters. */ public listByResourceGroup( @@ -244,7 +244,7 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { /** * Lists the current availability status for all the resources in the resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group. * @param options The options parameters. */ private _listByResourceGroup( @@ -312,7 +312,7 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { /** * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/childAvailabilityStatuses.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/childAvailabilityStatuses.ts deleted file mode 100644 index 55b0bb82e556..000000000000 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/childAvailabilityStatuses.ts +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ChildAvailabilityStatuses } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftResourceHealth } from "../microsoftResourceHealth"; -import { - AvailabilityStatus, - ChildAvailabilityStatusesListNextOptionalParams, - ChildAvailabilityStatusesListOptionalParams, - ChildAvailabilityStatusesListResponse, - ChildAvailabilityStatusesGetByResourceOptionalParams, - ChildAvailabilityStatusesGetByResourceResponse, - ChildAvailabilityStatusesListNextResponse -} from "../models"; - -/// -/** Class containing ChildAvailabilityStatuses operations. */ -export class ChildAvailabilityStatusesImpl - implements ChildAvailabilityStatuses { - private readonly client: MicrosoftResourceHealth; - - /** - * Initialize a new instance of the class ChildAvailabilityStatuses class. - * @param client Reference to the service client - */ - constructor(client: MicrosoftResourceHealth) { - this.client = client; - } - - /** - * Lists the historical availability statuses for a single child resource. Use the nextLink property in - * the response to get the next page of availability status - * @param resourceUri The fully qualified ID of the resource, including the resource name and resource - * type. Currently the API only support one nesting level resource types : - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName} - * @param options The options parameters. - */ - public list( - resourceUri: string, - options?: ChildAvailabilityStatusesListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceUri, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(resourceUri, options, settings); - } - }; - } - - private async *listPagingPage( - resourceUri: string, - options?: ChildAvailabilityStatusesListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: ChildAvailabilityStatusesListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceUri, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(resourceUri, continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceUri: string, - options?: ChildAvailabilityStatusesListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(resourceUri, options)) { - yield* page; - } - } - - /** - * Gets current availability status for a single resource - * @param resourceUri The fully qualified ID of the resource, including the resource name and resource - * type. Currently the API only support one nesting level resource types : - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName} - * @param options The options parameters. - */ - getByResource( - resourceUri: string, - options?: ChildAvailabilityStatusesGetByResourceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceUri, options }, - getByResourceOperationSpec - ); - } - - /** - * Lists the historical availability statuses for a single child resource. Use the nextLink property in - * the response to get the next page of availability status - * @param resourceUri The fully qualified ID of the resource, including the resource name and resource - * type. Currently the API only support one nesting level resource types : - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName} - * @param options The options parameters. - */ - private _list( - resourceUri: string, - options?: ChildAvailabilityStatusesListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceUri, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param resourceUri The fully qualified ID of the resource, including the resource name and resource - * type. Currently the API only support one nesting level resource types : - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName} - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceUri: string, - nextLink: string, - options?: ChildAvailabilityStatusesListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceUri, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getByResourceOperationSpec: coreClient.OperationSpec = { - path: - "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AvailabilityStatus - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.expand - ], - urlParameters: [Parameters.$host, Parameters.resourceUri], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AvailabilityStatusListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.expand - ], - urlParameters: [Parameters.$host, Parameters.resourceUri], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AvailabilityStatusListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.resourceUri, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/childResources.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/childResources.ts deleted file mode 100644 index c3795d78dc3c..000000000000 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/childResources.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ChildResources } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftResourceHealth } from "../microsoftResourceHealth"; -import { - AvailabilityStatus, - ChildResourcesListNextOptionalParams, - ChildResourcesListOptionalParams, - ChildResourcesListResponse, - ChildResourcesListNextResponse -} from "../models"; - -/// -/** Class containing ChildResources operations. */ -export class ChildResourcesImpl implements ChildResources { - private readonly client: MicrosoftResourceHealth; - - /** - * Initialize a new instance of the class ChildResources class. - * @param client Reference to the service client - */ - constructor(client: MicrosoftResourceHealth) { - this.client = client; - } - - /** - * Lists the all the children and its current health status for a parent resource. Use the nextLink - * property in the response to get the next page of children current health - * @param resourceUri The fully qualified ID of the resource, including the resource name and resource - * type. Currently the API only support not nested parent resource type: - * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} - * @param options The options parameters. - */ - public list( - resourceUri: string, - options?: ChildResourcesListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceUri, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(resourceUri, options, settings); - } - }; - } - - private async *listPagingPage( - resourceUri: string, - options?: ChildResourcesListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: ChildResourcesListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceUri, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(resourceUri, continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceUri: string, - options?: ChildResourcesListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(resourceUri, options)) { - yield* page; - } - } - - /** - * Lists the all the children and its current health status for a parent resource. Use the nextLink - * property in the response to get the next page of children current health - * @param resourceUri The fully qualified ID of the resource, including the resource name and resource - * type. Currently the API only support not nested parent resource type: - * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} - * @param options The options parameters. - */ - private _list( - resourceUri: string, - options?: ChildResourcesListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceUri, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param resourceUri The fully qualified ID of the resource, including the resource name and resource - * type. Currently the API only support not nested parent resource type: - * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceUri: string, - nextLink: string, - options?: ChildResourcesListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceUri, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/{resourceUri}/providers/Microsoft.ResourceHealth/childResources", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AvailabilityStatusListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.expand - ], - urlParameters: [Parameters.$host, Parameters.resourceUri], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AvailabilityStatusListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.resourceUri, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/index.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/index.ts index 74d27a90b066..831765a74bdc 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/index.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/index.ts @@ -13,6 +13,4 @@ export * from "./impactedResources"; export * from "./securityAdvisoryImpactedResources"; export * from "./eventsOperations"; export * from "./eventOperations"; -export * from "./childAvailabilityStatuses"; -export * from "./childResources"; export * from "./emergingIssues"; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/availabilityStatuses.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/availabilityStatuses.ts index 9943021e4c70..525fd86aa5ad 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/availabilityStatuses.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/availabilityStatuses.ts @@ -28,7 +28,7 @@ export interface AvailabilityStatuses { ): PagedAsyncIterableIterator; /** * Lists the current availability status for all the resources in the resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group. * @param options The options parameters. */ listByResourceGroup( diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childAvailabilityStatuses.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childAvailabilityStatuses.ts deleted file mode 100644 index d296779a9ed1..000000000000 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childAvailabilityStatuses.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - AvailabilityStatus, - ChildAvailabilityStatusesListOptionalParams, - ChildAvailabilityStatusesGetByResourceOptionalParams, - ChildAvailabilityStatusesGetByResourceResponse -} from "../models"; - -/// -/** Interface representing a ChildAvailabilityStatuses. */ -export interface ChildAvailabilityStatuses { - /** - * Lists the historical availability statuses for a single child resource. Use the nextLink property in - * the response to get the next page of availability status - * @param resourceUri The fully qualified ID of the resource, including the resource name and resource - * type. Currently the API only support one nesting level resource types : - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName} - * @param options The options parameters. - */ - list( - resourceUri: string, - options?: ChildAvailabilityStatusesListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets current availability status for a single resource - * @param resourceUri The fully qualified ID of the resource, including the resource name and resource - * type. Currently the API only support one nesting level resource types : - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName} - * @param options The options parameters. - */ - getByResource( - resourceUri: string, - options?: ChildAvailabilityStatusesGetByResourceOptionalParams - ): Promise; -} diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childResources.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childResources.ts deleted file mode 100644 index 330611cfd82a..000000000000 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childResources.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - AvailabilityStatus, - ChildResourcesListOptionalParams -} from "../models"; - -/// -/** Interface representing a ChildResources. */ -export interface ChildResources { - /** - * Lists the all the children and its current health status for a parent resource. Use the nextLink - * property in the response to get the next page of children current health - * @param resourceUri The fully qualified ID of the resource, including the resource name and resource - * type. Currently the API only support not nested parent resource type: - * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} - * @param options The options parameters. - */ - list( - resourceUri: string, - options?: ChildResourcesListOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/index.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/index.ts index 74d27a90b066..831765a74bdc 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/index.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/index.ts @@ -13,6 +13,4 @@ export * from "./impactedResources"; export * from "./securityAdvisoryImpactedResources"; export * from "./eventsOperations"; export * from "./eventOperations"; -export * from "./childAvailabilityStatuses"; -export * from "./childResources"; export * from "./emergingIssues"; diff --git a/sdk/resourcehealth/arm-resourcehealth/test/sampleTest.ts b/sdk/resourcehealth/arm-resourcehealth/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/resourcehealth/arm-resourcehealth/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/resourcehealth/arm-resourcehealth/tsconfig.json b/sdk/resourcehealth/arm-resourcehealth/tsconfig.json index 8db259768606..3e6ae96443f3 100644 --- a/sdk/resourcehealth/arm-resourcehealth/tsconfig.json +++ b/sdk/resourcehealth/arm-resourcehealth/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-resourcehealth": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"