diff --git a/sdk/resourcehealth/arm-resourcehealth/CHANGELOG.md b/sdk/resourcehealth/arm-resourcehealth/CHANGELOG.md index f26696c18b59..e2791d257033 100644 --- a/sdk/resourcehealth/arm-resourcehealth/CHANGELOG.md +++ b/sdk/resourcehealth/arm-resourcehealth/CHANGELOG.md @@ -1,15 +1,21 @@ # Release History - -## 4.1.0-beta.2 (Unreleased) - + +## 5.0.0 (2025-05-13) + ### Features Added -### Breaking Changes - -### Bugs Fixed + - Interface Event_2 has a new optional parameter eventTags + - Interface Event_2 has a new optional parameter isEventSensitive + - Interface Impact has a new optional parameter impactedServiceGuid + - Interface MetadataSupportedValueDetail has a new optional parameter previousId + - Interface MetadataSupportedValueDetail has a new optional parameter serviceGuid + - Interface Update has a new optional parameter eventTags -### Other Changes +### Breaking Changes + - Class MicrosoftResourceHealth has a new signature + + ## 4.1.0-beta.1 (2023-10-17) ### Features Added diff --git a/sdk/resourcehealth/arm-resourcehealth/LICENSE b/sdk/resourcehealth/arm-resourcehealth/LICENSE index b2f52a2bad4e..63447fd8bbbf 100644 --- a/sdk/resourcehealth/arm-resourcehealth/LICENSE +++ b/sdk/resourcehealth/arm-resourcehealth/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/resourcehealth/arm-resourcehealth/README.md b/sdk/resourcehealth/arm-resourcehealth/README.md index cf745ce2c731..a901d34802d8 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://learn.microsoft.com/javascript/api/@azure/arm-resourcehealth?view=azure-node-preview) | +[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-resourcehealth) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure MicrosoftResourceHealth** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). @@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur import { InteractiveBrowserCredential } from "@azure/identity"; import { MicrosoftResourceHealth } from "@azure/arm-resourcehealth"; -const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new InteractiveBrowserCredential({ tenantId: "", - clientId: "", -}); + clientId: "" + }); const client = new MicrosoftResourceHealth(credential, subscriptionId); ``` ### JavaScript Bundle - To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). ## Key concepts @@ -109,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) - [azure_cli]: https://learn.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/resourcehealth/arm-resourcehealth/_meta.json b/sdk/resourcehealth/arm-resourcehealth/_meta.json index 404ef6b24da7..3a5c82feff05 100644 --- a/sdk/resourcehealth/arm-resourcehealth/_meta.json +++ b/sdk/resourcehealth/arm-resourcehealth/_meta.json @@ -1,8 +1,8 @@ { - "commit": "0a25ea9680cf080b7d34e8c5f35f564425c6b1f7", + "commit": "37c875349517d082096817ef137ca9ef9d07f1c2", "readme": "specification/resourcehealth/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --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.9 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.9" -} \ No newline at end of file + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.27", + "use": "@autorest/typescript@^6.0.12" +} diff --git a/sdk/resourcehealth/arm-resourcehealth/api-extractor.json b/sdk/resourcehealth/arm-resourcehealth/api-extractor.json index 545230df64cb..26692face1f6 100644 --- a/sdk/resourcehealth/arm-resourcehealth/api-extractor.json +++ b/sdk/resourcehealth/arm-resourcehealth/api-extractor.json @@ -28,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/resourcehealth/arm-resourcehealth/package.json b/sdk/resourcehealth/arm-resourcehealth/package.json index 2d77367fa5b0..4b12635396b4 100644 --- a/sdk/resourcehealth/arm-resourcehealth/package.json +++ b/sdk/resourcehealth/arm-resourcehealth/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for MicrosoftResourceHealth.", - "version": "4.1.0-beta.2", + "version": "5.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/core-auth": "^1.9.0", - "@azure/core-client": "^1.9.2", + "@azure/core-client": "^1.9.4", "@azure/core-paging": "^1.6.2", - "@azure/core-rest-pipeline": "^1.19.0", + "@azure/core-rest-pipeline": "^1.20.0", "tslib": "^2.8.1" }, "keywords": [ @@ -19,31 +19,30 @@ "azure", "typescript", "browser", - "isomorphic" + "isomorphic", + "cloud" ], "license": "MIT", "main": "./dist/commonjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/commonjs/index.d.ts", + "type": "module", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.6.0", - "@azure/logger": "^1.1.4", + "@azure/identity": "^4.9.1", + "@azure/logger": "^1.2.0", "@types/node": "^18.0.0", "@vitest/browser": "^3.0.9", "@vitest/coverage-istanbul": "^3.0.9", "dotenv": "^16.0.0", - "playwright": "^1.50.1", + "playwright": "^1.52.0", "typescript": "~5.8.2", "vitest": "^3.0.9" }, - "repository": { - "type": "git", - "url": "https://github.com/Azure/azure-sdk-for-js.git" - }, + "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, @@ -56,20 +55,30 @@ ], "scripts": { "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "echo skipped", + "build:node": "echo skipped", "build:samples": "echo skipped.", - "check-format": "echo skipped", + "build:test": "echo skipped", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "dev-tool run extract-api", - "format": "echo skipped", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", "prepack": "npm run build", - "test": "npm run test:node && npm run test:browser", + "test": "npm run integration-test", "test:browser": "echo skipped", "test:node": "dev-tool run test:vitest", - "test:node:esm": "dev-tool run test:vitest --esm", - "update-snippets": "dev-tool run update-snippets" + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:browser": "echo skipped", + "unit-test:node": "dev-tool run test:vitest", + "update-snippets": "dev-tool run update-snippets", + "test:node:esm": "dev-tool run test:vitest --esm" }, "sideEffects": false, "//metadata": { @@ -81,16 +90,9 @@ ] }, "autoPublish": true, + "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-resourcehealth?view=azure-node-preview" - }, - "type": "module", "tshy": { "project": "./tsconfig.src.json", "exports": { @@ -107,8 +109,6 @@ ], "selfLink": false }, - "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/index.js", "exports": { "./package.json": "./package.json", ".": { @@ -130,4 +130,4 @@ } } } -} +} \ 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 e09c298d90ca..36be803e61aa 100644 --- a/sdk/resourcehealth/arm-resourcehealth/review/arm-resourcehealth.api.md +++ b/sdk/resourcehealth/arm-resourcehealth/review/arm-resourcehealth.api.md @@ -234,7 +234,6 @@ export interface ErrorResponse { // @public interface Event_2 extends ProxyResource { additionalInformation?: EventPropertiesAdditionalInformation; - argQuery?: string; article?: EventPropertiesArticle; description?: string; duration?: number; @@ -242,7 +241,7 @@ interface Event_2 extends ProxyResource { enableMicrosoftSupport?: boolean; eventLevel?: EventLevelValues; eventSource?: EventSourceValues; - eventSubType?: EventSubTypeValues; + eventTags?: string[]; eventType?: EventTypeValues; externalIncidentId?: string; faqs?: Faq[]; @@ -252,12 +251,11 @@ interface Event_2 extends ProxyResource { impactMitigationTime?: Date; impactStartTime?: Date; impactType?: string; + isEventSensitive?: boolean; isHIR?: boolean; lastUpdateTime?: Date; level?: LevelValues; links?: Link[]; - maintenanceId?: string; - maintenanceType?: string; platformInitiated?: boolean; priority?: number; reason?: string; @@ -303,11 +301,6 @@ export type EventGetByTenantIdAndTrackingIdResponse = Event_2; // @public export interface EventImpactedResource extends ProxyResource { info?: KeyValueItem[]; - readonly maintenanceEndTime?: string; - readonly maintenanceStartTime?: string; - readonly resourceGroup?: string; - readonly resourceName?: string; - readonly status?: string; readonly targetRegion?: string; readonly targetResourceId?: string; readonly targetResourceType?: string; @@ -421,9 +414,6 @@ export type EventSourceValues = string; // @public export type EventStatusValues = string; -// @public -export type EventSubTypeValues = string; - // @public export type EventTypeValues = string; @@ -441,6 +431,7 @@ export function getContinuationToken(page: unknown): string | undefined; export interface Impact { impactedRegions?: ImpactedServiceRegion[]; impactedService?: string; + impactedServiceGuid?: string; } // @public @@ -565,11 +556,6 @@ export enum KnownEventStatusValues { Resolved = "Resolved" } -// @public -export enum KnownEventSubTypeValues { - Retirement = "Retirement" -} - // @public export enum KnownEventTypeValues { EmergingIssues = "EmergingIssues", @@ -695,7 +681,9 @@ export type MetadataListResponse = MetadataEntityListResult; export interface MetadataSupportedValueDetail { displayName?: string; id?: string; + previousId?: string; resourceTypes?: string[]; + serviceGuid?: string; } // @public (undocumented) @@ -895,6 +883,7 @@ export interface SystemData { // @public export interface Update { + eventTags?: string[]; summary?: string; updateDateTime?: Date; } diff --git a/sdk/resourcehealth/arm-resourcehealth/sample.env b/sdk/resourcehealth/arm-resourcehealth/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/resourcehealth/arm-resourcehealth/sample.env +++ b/sdk/resourcehealth/arm-resourcehealth/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts index 409b5428db79..9907404abded 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts @@ -8,11 +8,7 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import { - PipelineRequest, - PipelineResponse, - SendRequest -} from "@azure/core-rest-pipeline"; +import { PipelineRequest, PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { AvailabilityStatusesImpl, @@ -24,7 +20,7 @@ import { EventOperationsImpl, ChildAvailabilityStatusesImpl, ChildResourcesImpl, - EmergingIssuesImpl + EmergingIssuesImpl, } from "./operations/index.js"; import { AvailabilityStatuses, @@ -36,7 +32,7 @@ import { EventOperations, ChildAvailabilityStatuses, ChildResources, - EmergingIssues + EmergingIssues, } from "./operationsInterfaces/index.js"; import { MicrosoftResourceHealthOptionalParams } from "./models/index.js"; @@ -54,16 +50,16 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: MicrosoftResourceHealthOptionalParams + options?: MicrosoftResourceHealthOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: MicrosoftResourceHealthOptionalParams + options?: MicrosoftResourceHealthOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: MicrosoftResourceHealthOptionalParams | string, - options?: MicrosoftResourceHealthOptionalParams + options?: MicrosoftResourceHealthOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -83,10 +79,10 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { } const defaults: MicrosoftResourceHealthOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-resourcehealth/4.1.0-beta.2`; + const packageDetails = `azsdk-js-arm-resourcehealth/5.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -96,20 +92,19 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, - endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => - pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -119,19 +114,17 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ credential: credentials, scopes: - optionsWithDefaults.credentialScopes ?? - `${optionsWithDefaults.endpoint}/.default`, + optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -139,14 +132,12 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-10-01-preview"; + this.apiVersion = options.apiVersion || "2025-05-01"; this.availabilityStatuses = new AvailabilityStatusesImpl(this); this.operations = new OperationsImpl(this); this.metadata = new MetadataImpl(this); this.impactedResources = new ImpactedResourcesImpl(this); - this.securityAdvisoryImpactedResources = new SecurityAdvisoryImpactedResourcesImpl( - this - ); + this.securityAdvisoryImpactedResources = new SecurityAdvisoryImpactedResourcesImpl(this); this.eventsOperations = new EventsOperationsImpl(this); this.eventOperations = new EventOperationsImpl(this); this.childAvailabilityStatuses = new ChildAvailabilityStatusesImpl(this); @@ -162,10 +153,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { } const apiVersionPolicy = { name: "CustomApiVersionPolicy", - async sendRequest( - request: PipelineRequest, - next: SendRequest - ): Promise { + async sendRequest(request: PipelineRequest, next: SendRequest): Promise { const param = request.url.split("?"); if (param.length > 1) { const newParams = param[1].split("&").map((item) => { @@ -178,7 +166,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts index 2c805f42c403..e99c0407e101 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts @@ -183,8 +183,12 @@ export interface MetadataEntityListResult { /** The metadata supported value detail. */ export interface MetadataSupportedValueDetail { - /** The id. */ + /** The id of the metadata value */ id?: string; + /** The previous value of the id field incase the data has changed. */ + previousId?: string; + /** The permanent guid for the service. Used when the id is a service name. */ + serviceGuid?: string; /** The display name. */ displayName?: string; /** The list of associated resource types. */ @@ -297,6 +301,8 @@ export interface LinkDisplayText { export interface Impact { /** Impacted service name. */ impactedService?: string; + /** Impacted service guid. This is the permanent identifier for the impacted service. */ + impactedServiceGuid?: string; /** List regions impacted by the service health event. */ impactedRegions?: ImpactedServiceRegion[]; } @@ -313,7 +319,7 @@ export interface ImpactedServiceRegion { impactedTenants?: string[]; /** It provides the Timestamp for when the last update for the service health event. */ lastUpdateTime?: Date; - /** List of updates for given service health event. */ + /** List of updates for given service health event. Use fetchEventDetails endpoint to get updates of sensitive events. */ updates?: Update[]; } @@ -323,6 +329,14 @@ export interface Update { summary?: string; /** It provides the Timestamp for the given update for the service health event. */ updateDateTime?: Date; + /** + * A list of metadata tags associated with the event. Possible values include: + * -Action Recommended: Action may be required by you to avoid possible disruptions or mitigate risks for your services. It is recommended to evaluate these actions and the potential impact on your services. + * - False Positive: After investigation, we've determined your service is healthy and service issues did not impact your services as originally communicated. + * - Preliminary PIR: For our largest, most impactful service issues a Preliminary Post Incident Review (PIR) is published generally within 72 hours of mitigation, to summarize what we have learned so far from the still-in-progress investigation. + * - Final PIR: For service issues, a Final Post Incident Review (PIR) may be published to provide additional details or learnings. Sometimes this requires us to complete an internal retrospective, generally within 14 days of mitigation. + */ + eventTags?: string[]; } /** Recommended actions of event. */ @@ -453,31 +467,6 @@ export interface EventImpactedResource extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly targetRegion?: string; - /** - * Resource name of the impacted resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceName?: string; - /** - * Resource group name of the impacted resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGroup?: string; - /** - * Status of the impacted resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; - /** - * Start time of maintenance for the impacted resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maintenanceStartTime?: string; - /** - * End time of maintenance for the impacted resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maintenanceEndTime?: string; /** Additional information. */ info?: KeyValueItem[]; } @@ -486,15 +475,13 @@ export interface EventImpactedResource extends ProxyResource { export interface Event extends ProxyResource { /** Type of event. */ eventType?: EventTypeValues; - /** Sub type of the event. Currently used to determine retirement communications for health advisory events */ - eventSubType?: EventSubTypeValues; /** Source of event. */ eventSource?: EventSourceValues; /** Current status of event. */ status?: EventStatusValues; /** Title text of event. */ title?: string; - /** Summary text of event. */ + /** Summary text of event. Use fetchEventDetails endpoint to get summary of sensitive events. */ summary?: string; /** Header text of event. */ header?: string; @@ -502,6 +489,8 @@ export interface Event extends ProxyResource { level?: LevelValues; /** Level of event. */ eventLevel?: EventLevelValues; + /** If true the event may contains sensitive data. Use the post events/{trackingId}/fetchEventDetails endpoint to fetch sensitive data see https://learn.microsoft.com/en-us/azure/service-health/security-advisories-elevated-access */ + isEventSensitive?: boolean; /** The id of the Incident */ externalIncidentId?: string; /** The reason for the Incident */ @@ -524,7 +513,7 @@ export interface Event extends ProxyResource { isHIR?: boolean; /** Tells if we want to enable or disable Microsoft Support for this event. */ enableMicrosoftSupport?: boolean; - /** Contains the communication message for the event, that could include summary, root cause and other details. */ + /** Contains the communication message for the event, that could include summary, root cause and other details. Use fetchEventDetails endpoint to get description of sensitive events. */ description?: string; /** Is true if the event is platform initiated. */ platformInitiated?: boolean; @@ -542,12 +531,14 @@ export interface Event extends ProxyResource { duration?: number; /** The type of the impact */ impactType?: string; - /** Unique identifier for planned maintenance event. */ - maintenanceId?: string; - /** The type of planned maintenance event. */ - maintenanceType?: string; - /** Azure Resource Graph query to fetch the affected resources from their existing Azure Resource Graph locations. */ - argQuery?: string; + /** + * A list of metadata tags associated with the event. Possible values include: + * -Action Recommended: Action may be required by you to avoid possible disruptions or mitigate risks for your services. It is recommended to evaluate these actions and the potential impact on your services. + * - False Positive: After investigation, we've determined your service is healthy and service issues did not impact your services as originally communicated. + * - Preliminary PIR: For our largest, most impactful service issues a Preliminary Post Incident Review (PIR) is published generally within 72 hours of mitigation, to summarize what we have learned so far from the still-in-progress investigation. + * - Final PIR: For service issues, a Final Post Incident Review (PIR) may be published to provide additional details or learnings. Sometimes this requires us to complete an internal retrospective, generally within 14 days of mitigation. + */ + eventTags?: string[]; } /** The Get EmergingIssues operation response. */ @@ -583,7 +574,7 @@ export enum KnownAvailabilityStateValues { /** Degraded */ Degraded = "Degraded", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -603,7 +594,7 @@ export enum KnownReasonChronicityTypes { /** Transient */ Transient = "Transient", /** Persistent */ - Persistent = "Persistent" + Persistent = "Persistent", } /** @@ -619,7 +610,7 @@ export type ReasonChronicityTypes = string; /** Known values of {@link Scenario} that the service accepts. */ export enum KnownScenario { /** Alerts */ - Alerts = "Alerts" + Alerts = "Alerts", } /** @@ -640,7 +631,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -668,7 +659,7 @@ export enum KnownEventTypeValues { /** EmergingIssues */ EmergingIssues = "EmergingIssues", /** SecurityAdvisory */ - SecurityAdvisory = "SecurityAdvisory" + SecurityAdvisory = "SecurityAdvisory", } /** @@ -685,27 +676,12 @@ export enum KnownEventTypeValues { */ export type EventTypeValues = string; -/** Known values of {@link EventSubTypeValues} that the service accepts. */ -export enum KnownEventSubTypeValues { - /** Retirement */ - Retirement = "Retirement" -} - -/** - * Defines values for EventSubTypeValues. \ - * {@link KnownEventSubTypeValues} can be used interchangeably with EventSubTypeValues, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Retirement** - */ -export type EventSubTypeValues = string; - /** Known values of {@link EventSourceValues} that the service accepts. */ export enum KnownEventSourceValues { /** ResourceHealth */ ResourceHealth = "ResourceHealth", /** ServiceHealth */ - ServiceHealth = "ServiceHealth" + ServiceHealth = "ServiceHealth", } /** @@ -723,7 +699,7 @@ export enum KnownEventStatusValues { /** Active */ Active = "Active", /** Resolved */ - Resolved = "Resolved" + Resolved = "Resolved", } /** @@ -741,7 +717,7 @@ export enum KnownLevelValues { /** Critical */ Critical = "Critical", /** Warning */ - Warning = "Warning" + Warning = "Warning", } /** @@ -763,7 +739,7 @@ export enum KnownEventLevelValues { /** Warning */ Warning = "Warning", /** Informational */ - Informational = "Informational" + Informational = "Informational", } /** @@ -783,7 +759,7 @@ export enum KnownLinkTypeValues { /** Button */ Button = "Button", /** Hyperlink */ - Hyperlink = "Hyperlink" + Hyperlink = "Hyperlink", } /** @@ -803,7 +779,7 @@ export enum KnownSeverityValues { /** Warning */ Warning = "Warning", /** Error */ - Error = "Error" + Error = "Error", } /** @@ -824,7 +800,7 @@ export enum KnownStageValues { /** Resolve */ Resolve = "Resolve", /** Archived */ - Archived = "Archived" + Archived = "Archived", } /** @@ -841,7 +817,7 @@ export type StageValues = string; /** Known values of {@link IssueNameParameter} that the service accepts. */ export enum KnownIssueNameParameter { /** Default */ - Default = "default" + Default = "default", } /** @@ -860,7 +836,7 @@ export enum KnownReasonTypeValues { /** Planned */ Planned = "Planned", /** UserInitiated */ - UserInitiated = "UserInitiated" + UserInitiated = "UserInitiated", } /** @@ -911,8 +887,7 @@ export interface AvailabilityStatusesGetByResourceOptionalParams export type AvailabilityStatusesGetByResourceResponse = AvailabilityStatus; /** Optional parameters. */ -export interface AvailabilityStatusesListOptionalParams - extends coreClient.OperationOptions { +export interface AvailabilityStatusesListOptionalParams 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. */ @@ -937,36 +912,31 @@ export interface AvailabilityStatusesListByResourceGroupNextOptionalParams export type AvailabilityStatusesListByResourceGroupNextResponse = AvailabilityStatusListResult; /** Optional parameters. */ -export interface AvailabilityStatusesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AvailabilityStatusesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type AvailabilityStatusesListNextResponse = AvailabilityStatusListResult; /** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface MetadataListOptionalParams - extends coreClient.OperationOptions {} +export interface MetadataListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type MetadataListResponse = MetadataEntityListResult; /** Optional parameters. */ -export interface MetadataGetEntityOptionalParams - extends coreClient.OperationOptions {} +export interface MetadataGetEntityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntity operation. */ export type MetadataGetEntityResponse = MetadataEntity; /** Optional parameters. */ -export interface MetadataListNextOptionalParams - extends coreClient.OperationOptions {} +export interface MetadataListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type MetadataListNextResponse = MetadataEntityListResult; @@ -979,11 +949,11 @@ export interface ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams } /** Contains response data for the listBySubscriptionIdAndEventId operation. */ -export type ImpactedResourcesListBySubscriptionIdAndEventIdResponse = EventImpactedResourceListResult; +export type ImpactedResourcesListBySubscriptionIdAndEventIdResponse = + EventImpactedResourceListResult; /** Optional parameters. */ -export interface ImpactedResourcesGetOptionalParams - extends coreClient.OperationOptions {} +export interface ImpactedResourcesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type ImpactedResourcesGetResponse = EventImpactedResource; @@ -999,8 +969,7 @@ export interface ImpactedResourcesListByTenantIdAndEventIdOptionalParams export type ImpactedResourcesListByTenantIdAndEventIdResponse = EventImpactedResourceListResult; /** Optional parameters. */ -export interface ImpactedResourcesGetByTenantIdOptionalParams - extends coreClient.OperationOptions {} +export interface ImpactedResourcesGetByTenantIdOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getByTenantId operation. */ export type ImpactedResourcesGetByTenantIdResponse = EventImpactedResource; @@ -1010,7 +979,8 @@ export interface ImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalPara extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionIdAndEventIdNext operation. */ -export type ImpactedResourcesListBySubscriptionIdAndEventIdNextResponse = EventImpactedResourceListResult; +export type ImpactedResourcesListBySubscriptionIdAndEventIdNextResponse = + EventImpactedResourceListResult; /** Optional parameters. */ export interface ImpactedResourcesListByTenantIdAndEventIdNextOptionalParams @@ -1027,7 +997,8 @@ export interface SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventId } /** Contains response data for the listBySubscriptionIdAndEventId operation. */ -export type SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse = EventImpactedResourceListResult; +export type SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse = + EventImpactedResourceListResult; /** Optional parameters. */ export interface SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams @@ -1037,28 +1008,30 @@ export interface SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOption } /** Contains response data for the listByTenantIdAndEventId operation. */ -export type SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse = EventImpactedResourceListResult; +export type SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse = + EventImpactedResourceListResult; /** Optional parameters. */ export interface SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionIdAndEventIdNext operation. */ -export type SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextResponse = EventImpactedResourceListResult; +export type SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextResponse = + EventImpactedResourceListResult; /** Optional parameters. */ export interface SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByTenantIdAndEventIdNext operation. */ -export type SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse = EventImpactedResourceListResult; +export type SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse = + EventImpactedResourceListResult; /** Optional parameters. */ -export interface EventsListBySubscriptionIdOptionalParams - extends coreClient.OperationOptions { +export interface EventsListBySubscriptionIdOptionalParams 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; - /** Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020 */ + /** Specifies from when to return events (default is 3 days), based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020 */ queryStartTime?: string; } @@ -1066,11 +1039,10 @@ export interface EventsListBySubscriptionIdOptionalParams export type EventsListBySubscriptionIdResponse = Events; /** Optional parameters. */ -export interface EventsListByTenantIdOptionalParams - extends coreClient.OperationOptions { +export interface EventsListByTenantIdOptionalParams 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; - /** Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020 */ + /** Specifies from when to return events (default is 3 days), based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020 */ queryStartTime?: string; } @@ -1078,8 +1050,7 @@ export interface EventsListByTenantIdOptionalParams export type EventsListByTenantIdResponse = Events; /** Optional parameters. */ -export interface EventsListBySingleResourceOptionalParams - extends coreClient.OperationOptions { +export interface EventsListBySingleResourceOptionalParams 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; } @@ -1088,22 +1059,19 @@ export interface EventsListBySingleResourceOptionalParams export type EventsListBySingleResourceResponse = Events; /** Optional parameters. */ -export interface EventsListBySubscriptionIdNextOptionalParams - extends coreClient.OperationOptions {} +export interface EventsListBySubscriptionIdNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionIdNext operation. */ export type EventsListBySubscriptionIdNextResponse = Events; /** Optional parameters. */ -export interface EventsListByTenantIdNextOptionalParams - extends coreClient.OperationOptions {} +export interface EventsListByTenantIdNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByTenantIdNext operation. */ export type EventsListByTenantIdNextResponse = Events; /** Optional parameters. */ -export interface EventsListBySingleResourceNextOptionalParams - extends coreClient.OperationOptions {} +export interface EventsListBySingleResourceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySingleResourceNext operation. */ export type EventsListBySingleResourceNextResponse = Events; @@ -1113,7 +1081,7 @@ export interface EventGetBySubscriptionIdAndTrackingIdOptionalParams 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; - /** Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020 */ + /** Specifies from when to return events (default is 3 days), based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020 */ queryStartTime?: string; } @@ -1128,11 +1096,10 @@ export interface EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams export type EventFetchDetailsBySubscriptionIdAndTrackingIdResponse = Event; /** Optional parameters. */ -export interface EventGetByTenantIdAndTrackingIdOptionalParams - extends coreClient.OperationOptions { +export interface EventGetByTenantIdAndTrackingIdOptionalParams 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; - /** Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020 */ + /** Specifies from when to return events (default is 3 days), based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020 */ queryStartTime?: string; } @@ -1159,8 +1126,7 @@ export interface ChildAvailabilityStatusesGetByResourceOptionalParams export type ChildAvailabilityStatusesGetByResourceResponse = AvailabilityStatus; /** Optional parameters. */ -export interface ChildAvailabilityStatusesListOptionalParams - extends coreClient.OperationOptions { +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. */ @@ -1178,8 +1144,7 @@ export interface ChildAvailabilityStatusesListNextOptionalParams export type ChildAvailabilityStatusesListNextResponse = AvailabilityStatusListResult; /** Optional parameters. */ -export interface ChildResourcesListOptionalParams - extends coreClient.OperationOptions { +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. */ @@ -1190,36 +1155,31 @@ export interface ChildResourcesListOptionalParams export type ChildResourcesListResponse = AvailabilityStatusListResult; /** Optional parameters. */ -export interface ChildResourcesListNextOptionalParams - extends coreClient.OperationOptions {} +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 {} +export interface EmergingIssuesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type EmergingIssuesListResponse = EmergingIssueListResult; /** Optional parameters. */ -export interface EmergingIssuesGetOptionalParams - extends coreClient.OperationOptions {} +export interface EmergingIssuesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type EmergingIssuesGetResponse = EmergingIssuesGetResult; /** Optional parameters. */ -export interface EmergingIssuesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface EmergingIssuesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type EmergingIssuesListNextResponse = EmergingIssueListResult; /** Optional parameters. */ -export interface MicrosoftResourceHealthOptionalParams - extends coreClient.ServiceClientOptions { +export interface MicrosoftResourceHealthOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; /** Api Version */ diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts index 1adb39226f8a..bcdaf809a99d 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts @@ -21,19 +21,19 @@ export const AvailabilityStatusListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AvailabilityStatus" - } - } - } + className: "AvailabilityStatus", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AvailabilityStatus: coreClient.CompositeMapper = { @@ -44,36 +44,36 @@ export const AvailabilityStatus: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "AvailabilityStatusProperties" - } - } - } - } + className: "AvailabilityStatusProperties", + }, + }, + }, + }, }; export const AvailabilityStatusProperties: coreClient.CompositeMapper = { @@ -84,111 +84,111 @@ export const AvailabilityStatusProperties: coreClient.CompositeMapper = { availabilityState: { serializedName: "availabilityState", type: { - name: "String" - } + name: "String", + }, }, title: { serializedName: "title", type: { - name: "String" - } + name: "String", + }, }, summary: { serializedName: "summary", type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "detailedStatus", type: { - name: "String" - } + name: "String", + }, }, reasonType: { serializedName: "reasonType", type: { - name: "String" - } + name: "String", + }, }, context: { serializedName: "context", type: { - name: "String" - } + name: "String", + }, }, category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, articleId: { serializedName: "articleId", type: { - name: "String" - } + name: "String", + }, }, rootCauseAttributionTime: { serializedName: "rootCauseAttributionTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, healthEventType: { serializedName: "healthEventType", type: { - name: "String" - } + name: "String", + }, }, healthEventCause: { serializedName: "healthEventCause", type: { - name: "String" - } + name: "String", + }, }, healthEventCategory: { serializedName: "healthEventCategory", type: { - name: "String" - } + name: "String", + }, }, healthEventId: { serializedName: "healthEventId", type: { - name: "String" - } + name: "String", + }, }, resolutionETA: { serializedName: "resolutionETA", type: { - name: "DateTime" - } + name: "DateTime", + }, }, occuredTime: { serializedName: "occuredTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, reasonChronicity: { serializedName: "reasonChronicity", type: { - name: "String" - } + name: "String", + }, }, reportedTime: { serializedName: "reportedTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, recentlyResolved: { serializedName: "recentlyResolved", type: { name: "Composite", - className: "AvailabilityStatusPropertiesRecentlyResolved" - } + className: "AvailabilityStatusPropertiesRecentlyResolved", + }, }, recommendedActions: { serializedName: "recommendedActions", @@ -197,10 +197,10 @@ export const AvailabilityStatusProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RecommendedAction" - } - } - } + className: "RecommendedAction", + }, + }, + }, }, serviceImpactingEvents: { serializedName: "serviceImpactingEvents", @@ -209,13 +209,13 @@ export const AvailabilityStatusProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServiceImpactingEvent" - } - } - } - } - } - } + className: "ServiceImpactingEvent", + }, + }, + }, + }, + }, + }, }; export const AvailabilityStatusPropertiesRecentlyResolved: coreClient.CompositeMapper = { @@ -226,23 +226,23 @@ export const AvailabilityStatusPropertiesRecentlyResolved: coreClient.CompositeM unavailableOccuredTime: { serializedName: "unavailableOccuredTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, resolvedTime: { serializedName: "resolvedTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, unavailableSummary: { serializedName: "unavailableSummary", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RecommendedAction: coreClient.CompositeMapper = { @@ -253,29 +253,29 @@ export const RecommendedAction: coreClient.CompositeMapper = { action: { serializedName: "action", type: { - name: "String" - } + name: "String", + }, }, actionUrl: { serializedName: "actionUrl", type: { - name: "String" - } + name: "String", + }, }, actionUrlComment: { serializedName: "_ActionUrl\\.Comment", type: { - name: "String" - } + name: "String", + }, }, actionUrlText: { serializedName: "actionUrlText", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServiceImpactingEvent: coreClient.CompositeMapper = { @@ -286,37 +286,37 @@ export const ServiceImpactingEvent: coreClient.CompositeMapper = { eventStartTime: { serializedName: "eventStartTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, eventStatusLastModifiedTime: { serializedName: "eventStatusLastModifiedTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, correlationId: { serializedName: "correlationId", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { name: "Composite", - className: "ServiceImpactingEventStatus" - } + className: "ServiceImpactingEventStatus", + }, }, incidentProperties: { serializedName: "incidentProperties", type: { name: "Composite", - className: "ServiceImpactingEventIncidentProperties" - } - } - } - } + className: "ServiceImpactingEventIncidentProperties", + }, + }, + }, + }, }; export const ServiceImpactingEventStatus: coreClient.CompositeMapper = { @@ -327,11 +327,11 @@ export const ServiceImpactingEventStatus: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServiceImpactingEventIncidentProperties: coreClient.CompositeMapper = { @@ -342,29 +342,29 @@ export const ServiceImpactingEventIncidentProperties: coreClient.CompositeMapper title: { serializedName: "title", type: { - name: "String" - } + name: "String", + }, }, service: { serializedName: "service", type: { - name: "String" - } + name: "String", + }, }, region: { serializedName: "region", type: { - name: "String" - } + name: "String", + }, }, incidentType: { serializedName: "incidentType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -376,25 +376,25 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -410,13 +410,13 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } - } - } - } + className: "Operation", + }, + }, + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -427,18 +427,18 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } - } - } - } + className: "OperationDisplay", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -449,29 +449,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MetadataEntityListResult: coreClient.CompositeMapper = { @@ -486,19 +486,19 @@ export const MetadataEntityListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetadataEntity" - } - } - } + className: "MetadataEntity", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MetadataSupportedValueDetail: coreClient.CompositeMapper = { @@ -509,14 +509,26 @@ export const MetadataSupportedValueDetail: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, + }, + previousId: { + serializedName: "previousId", + type: { + name: "String", + }, + }, + serviceGuid: { + serializedName: "serviceGuid", + type: { + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, resourceTypes: { serializedName: "resourceTypes", @@ -524,13 +536,13 @@ export const MetadataSupportedValueDetail: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -542,32 +554,32 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -578,41 +590,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const EventImpactedResourceListResult: coreClient.CompositeMapper = { @@ -628,19 +640,19 @@ export const EventImpactedResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EventImpactedResource" - } - } - } + className: "EventImpactedResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KeyValueItem: coreClient.CompositeMapper = { @@ -652,18 +664,18 @@ export const KeyValueItem: coreClient.CompositeMapper = { serializedName: "key", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Events: coreClient.CompositeMapper = { @@ -679,19 +691,19 @@ export const Events: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Event" - } - } - } + className: "Event", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EventPropertiesArticle: coreClient.CompositeMapper = { @@ -702,24 +714,24 @@ export const EventPropertiesArticle: coreClient.CompositeMapper = { articleContent: { serializedName: "articleContent", type: { - name: "String" - } + name: "String", + }, }, articleId: { serializedName: "articleId", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const Link: coreClient.CompositeMapper = { @@ -730,37 +742,37 @@ export const Link: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, displayText: { serializedName: "displayText", type: { name: "Composite", - className: "LinkDisplayText" - } + className: "LinkDisplayText", + }, }, extensionName: { serializedName: "extensionName", type: { - name: "String" - } + name: "String", + }, }, bladeName: { serializedName: "bladeName", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const LinkDisplayText: coreClient.CompositeMapper = { @@ -771,17 +783,17 @@ export const LinkDisplayText: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, localizedValue: { serializedName: "localizedValue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Impact: coreClient.CompositeMapper = { @@ -792,8 +804,14 @@ export const Impact: coreClient.CompositeMapper = { impactedService: { serializedName: "impactedService", type: { - name: "String" - } + name: "String", + }, + }, + impactedServiceGuid: { + serializedName: "impactedServiceGuid", + type: { + name: "String", + }, }, impactedRegions: { serializedName: "impactedRegions", @@ -802,13 +820,13 @@ export const Impact: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ImpactedServiceRegion" - } - } - } - } - } - } + className: "ImpactedServiceRegion", + }, + }, + }, + }, + }, + }, }; export const ImpactedServiceRegion: coreClient.CompositeMapper = { @@ -819,14 +837,14 @@ export const ImpactedServiceRegion: coreClient.CompositeMapper = { impactedRegion: { serializedName: "impactedRegion", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, impactedSubscriptions: { serializedName: "impactedSubscriptions", @@ -834,10 +852,10 @@ export const ImpactedServiceRegion: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, impactedTenants: { serializedName: "impactedTenants", @@ -845,16 +863,16 @@ export const ImpactedServiceRegion: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, lastUpdateTime: { serializedName: "lastUpdateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, updates: { serializedName: "updates", @@ -863,13 +881,13 @@ export const ImpactedServiceRegion: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Update" - } - } - } - } - } - } + className: "Update", + }, + }, + }, + }, + }, + }, }; export const Update: coreClient.CompositeMapper = { @@ -880,17 +898,28 @@ export const Update: coreClient.CompositeMapper = { summary: { serializedName: "summary", type: { - name: "String" - } + name: "String", + }, }, updateDateTime: { serializedName: "updateDateTime", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + eventTags: { + serializedName: "eventTags", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, }; export const EventPropertiesRecommendedActions: coreClient.CompositeMapper = { @@ -901,8 +930,8 @@ export const EventPropertiesRecommendedActions: coreClient.CompositeMapper = { message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, actions: { serializedName: "actions", @@ -911,19 +940,19 @@ export const EventPropertiesRecommendedActions: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EventPropertiesRecommendedActionsItem" - } - } - } + className: "EventPropertiesRecommendedActionsItem", + }, + }, + }, }, localeCode: { serializedName: "localeCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EventPropertiesRecommendedActionsItem: coreClient.CompositeMapper = { @@ -934,17 +963,17 @@ export const EventPropertiesRecommendedActionsItem: coreClient.CompositeMapper = groupId: { serializedName: "groupId", type: { - name: "Number" - } + name: "Number", + }, }, actionText: { serializedName: "actionText", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Faq: coreClient.CompositeMapper = { @@ -955,23 +984,23 @@ export const Faq: coreClient.CompositeMapper = { question: { serializedName: "question", type: { - name: "String" - } + name: "String", + }, }, answer: { serializedName: "answer", type: { - name: "String" - } + name: "String", + }, }, localeCode: { serializedName: "localeCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EventPropertiesAdditionalInformation: coreClient.CompositeMapper = { @@ -982,11 +1011,11 @@ export const EventPropertiesAdditionalInformation: coreClient.CompositeMapper = message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EmergingIssueListResult: coreClient.CompositeMapper = { @@ -1001,19 +1030,19 @@ export const EmergingIssueListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EmergingIssuesGetResult" - } - } - } + className: "EmergingIssuesGetResult", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StatusBanner: coreClient.CompositeMapper = { @@ -1024,29 +1053,29 @@ export const StatusBanner: coreClient.CompositeMapper = { title: { serializedName: "title", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, cloud: { serializedName: "cloud", type: { - name: "String" - } + name: "String", + }, }, lastModifiedTime: { serializedName: "lastModifiedTime", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const StatusActiveEvent: coreClient.CompositeMapper = { @@ -1057,56 +1086,56 @@ export const StatusActiveEvent: coreClient.CompositeMapper = { title: { serializedName: "title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, trackingId: { serializedName: "trackingId", type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "startTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, cloud: { serializedName: "cloud", type: { - name: "String" - } + name: "String", + }, }, severity: { serializedName: "severity", type: { - name: "String" - } + name: "String", + }, }, stage: { serializedName: "stage", type: { - name: "String" - } + name: "String", + }, }, published: { serializedName: "published", type: { - name: "Boolean" - } + name: "Boolean", + }, }, lastModifiedTime: { serializedName: "lastModifiedTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, impacts: { serializedName: "impacts", @@ -1115,13 +1144,13 @@ export const StatusActiveEvent: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EmergingIssueImpact" - } - } - } - } - } - } + className: "EmergingIssueImpact", + }, + }, + }, + }, + }, + }, }; export const EmergingIssueImpact: coreClient.CompositeMapper = { @@ -1132,14 +1161,14 @@ export const EmergingIssueImpact: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, regions: { serializedName: "regions", @@ -1148,13 +1177,13 @@ export const EmergingIssueImpact: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ImpactedRegion" - } - } - } - } - } - } + className: "ImpactedRegion", + }, + }, + }, + }, + }, + }, }; export const ImpactedRegion: coreClient.CompositeMapper = { @@ -1165,17 +1194,17 @@ export const ImpactedRegion: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -1183,9 +1212,9 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const MetadataEntity: coreClient.CompositeMapper = { @@ -1197,8 +1226,8 @@ export const MetadataEntity: coreClient.CompositeMapper = { displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, dependsOn: { serializedName: "properties.dependsOn", @@ -1206,10 +1235,10 @@ export const MetadataEntity: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, applicableScenarios: { serializedName: "properties.applicableScenarios", @@ -1217,10 +1246,10 @@ export const MetadataEntity: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, supportedValues: { serializedName: "properties.supportedValues", @@ -1229,13 +1258,13 @@ export const MetadataEntity: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetadataSupportedValueDetail" - } - } - } - } - } - } + className: "MetadataSupportedValueDetail", + }, + }, + }, + }, + }, + }, }; export const EventImpactedResource: coreClient.CompositeMapper = { @@ -1248,57 +1277,22 @@ export const EventImpactedResource: coreClient.CompositeMapper = { serializedName: "properties.targetResourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, targetResourceId: { serializedName: "properties.targetResourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, targetRegion: { serializedName: "properties.targetRegion", readOnly: true, type: { - name: "String" - } - }, - resourceName: { - serializedName: "properties.resourceName", - readOnly: true, - type: { - name: "String" - } - }, - resourceGroup: { - serializedName: "properties.resourceGroup", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - readOnly: true, - type: { - name: "String" - } - }, - maintenanceStartTime: { - serializedName: "properties.maintenanceStartTime", - readOnly: true, - type: { - name: "String" - } - }, - maintenanceEndTime: { - serializedName: "properties.maintenanceEndTime", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "properties.info", @@ -1307,13 +1301,13 @@ export const EventImpactedResource: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeyValueItem" - } - } - } - } - } - } + className: "KeyValueItem", + }, + }, + }, + }, + }, + }, }; export const Event: coreClient.CompositeMapper = { @@ -1325,75 +1319,75 @@ export const Event: coreClient.CompositeMapper = { eventType: { serializedName: "properties.eventType", type: { - name: "String" - } - }, - eventSubType: { - serializedName: "properties.eventSubType", - type: { - name: "String" - } + name: "String", + }, }, eventSource: { serializedName: "properties.eventSource", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", type: { - name: "String" - } + name: "String", + }, }, title: { serializedName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, summary: { serializedName: "properties.summary", type: { - name: "String" - } + name: "String", + }, }, header: { serializedName: "properties.header", type: { - name: "String" - } + name: "String", + }, }, level: { serializedName: "properties.level", type: { - name: "String" - } + name: "String", + }, }, eventLevel: { serializedName: "properties.eventLevel", type: { - name: "String" - } + name: "String", + }, + }, + isEventSensitive: { + serializedName: "properties.isEventSensitive", + type: { + name: "Boolean", + }, }, externalIncidentId: { serializedName: "properties.externalIncidentId", type: { - name: "String" - } + name: "String", + }, }, reason: { serializedName: "properties.reason", type: { - name: "String" - } + name: "String", + }, }, article: { serializedName: "properties.article", type: { name: "Composite", - className: "EventPropertiesArticle" - } + className: "EventPropertiesArticle", + }, }, links: { serializedName: "properties.links", @@ -1402,22 +1396,22 @@ export const Event: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Link" - } - } - } + className: "Link", + }, + }, + }, }, impactStartTime: { serializedName: "properties.impactStartTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, impactMitigationTime: { serializedName: "properties.impactMitigationTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, impact: { serializedName: "properties.impact", @@ -1426,17 +1420,17 @@ export const Event: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Impact" - } - } - } + className: "Impact", + }, + }, + }, }, recommendedActions: { serializedName: "properties.recommendedActions", type: { name: "Composite", - className: "EventPropertiesRecommendedActions" - } + className: "EventPropertiesRecommendedActions", + }, }, faqs: { serializedName: "properties.faqs", @@ -1445,98 +1439,91 @@ export const Event: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Faq" - } - } - } + className: "Faq", + }, + }, + }, }, isHIR: { serializedName: "properties.isHIR", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableMicrosoftSupport: { serializedName: "properties.enableMicrosoftSupport", type: { - name: "Boolean" - } + name: "Boolean", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, platformInitiated: { serializedName: "properties.platformInitiated", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableChatWithUs: { serializedName: "properties.enableChatWithUs", type: { - name: "Boolean" - } + name: "Boolean", + }, }, priority: { serializedName: "properties.priority", type: { - name: "Number" - } + name: "Number", + }, }, lastUpdateTime: { serializedName: "properties.lastUpdateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, hirStage: { serializedName: "properties.hirStage", type: { - name: "String" - } + name: "String", + }, }, additionalInformation: { serializedName: "properties.additionalInformation", type: { name: "Composite", - className: "EventPropertiesAdditionalInformation" - } + className: "EventPropertiesAdditionalInformation", + }, }, duration: { serializedName: "properties.duration", type: { - name: "Number" - } + name: "Number", + }, }, impactType: { serializedName: "properties.impactType", type: { - name: "String" - } - }, - maintenanceId: { - serializedName: "properties.maintenanceId", - type: { - name: "String" - } + name: "String", + }, }, - maintenanceType: { - serializedName: "properties.maintenanceType", + eventTags: { + serializedName: "properties.eventTags", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - argQuery: { - serializedName: "properties.argQuery", - type: { - name: "String" - } - } - } - } + }, + }, }; export const EmergingIssuesGetResult: coreClient.CompositeMapper = { @@ -1548,8 +1535,8 @@ export const EmergingIssuesGetResult: coreClient.CompositeMapper = { refreshTimestamp: { serializedName: "properties.refreshTimestamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, statusBanners: { serializedName: "properties.statusBanners", @@ -1558,10 +1545,10 @@ export const EmergingIssuesGetResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StatusBanner" - } - } - } + className: "StatusBanner", + }, + }, + }, }, statusActiveEvents: { serializedName: "properties.statusActiveEvents", @@ -1570,13 +1557,13 @@ export const EmergingIssuesGetResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StatusActiveEvent" - } - } - } - } - } - } + className: "StatusActiveEvent", + }, + }, + }, + }, + }, + }, }; export const ImpactedResourceStatus: coreClient.CompositeMapper = { @@ -1588,33 +1575,33 @@ export const ImpactedResourceStatus: coreClient.CompositeMapper = { availabilityState: { serializedName: "properties.availabilityState", type: { - name: "String" - } + name: "String", + }, }, title: { serializedName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, summary: { serializedName: "properties.summary", type: { - name: "String" - } + name: "String", + }, }, reasonType: { serializedName: "properties.reasonType", type: { - name: "String" - } + name: "String", + }, }, occurredTime: { serializedName: "properties.occurredTime", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts index 2c69896038b4..efb8a2877d87 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; export const accept: OperationParameter = { @@ -19,9 +19,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -30,22 +30,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-10-01-preview", + defaultValue: "2025-05-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -53,23 +53,23 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand: OperationQueryParameter = { @@ -77,9 +77,9 @@ export const expand: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -87,14 +87,14 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceUri: OperationURLParameter = { @@ -103,10 +103,10 @@ export const resourceUri: OperationURLParameter = { serializedName: "resourceUri", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const nextLink: OperationURLParameter = { @@ -115,10 +115,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const name: OperationURLParameter = { @@ -127,9 +127,9 @@ export const name: OperationURLParameter = { serializedName: "name", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const eventTrackingId: OperationURLParameter = { @@ -138,23 +138,23 @@ export const eventTrackingId: OperationURLParameter = { serializedName: "eventTrackingId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const impactedResourceName: OperationURLParameter = { parameterPath: "impactedResourceName", mapper: { constraints: { - Pattern: new RegExp("^[^*#&+:<>%?]+$") + Pattern: new RegExp("^[^*#&+:<>%?]+$"), }, serializedName: "impactedResourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const queryStartTime: OperationQueryParameter = { @@ -162,9 +162,9 @@ export const queryStartTime: OperationQueryParameter = { mapper: { serializedName: "queryStartTime", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const issueName: OperationURLParameter = { @@ -173,7 +173,7 @@ export const issueName: OperationURLParameter = { serializedName: "issueName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts index a77b45893e13..d4112ea6a769 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts @@ -28,7 +28,7 @@ import { AvailabilityStatusesGetByResourceResponse, AvailabilityStatusesListBySubscriptionIdNextResponse, AvailabilityStatusesListByResourceGroupNextResponse, - AvailabilityStatusesListNextResponse + AvailabilityStatusesListNextResponse, } from "../models/index.js"; /// @@ -49,7 +49,7 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { * @param options The options parameters. */ public listBySubscriptionId( - options?: AvailabilityStatusesListBySubscriptionIdOptionalParams + options?: AvailabilityStatusesListBySubscriptionIdOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionIdPagingAll(options); return { @@ -64,13 +64,13 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionIdPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionIdPagingPage( options?: AvailabilityStatusesListBySubscriptionIdOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilityStatusesListBySubscriptionIdResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +91,7 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { } private async *listBySubscriptionIdPagingAll( - options?: AvailabilityStatusesListBySubscriptionIdOptionalParams + options?: AvailabilityStatusesListBySubscriptionIdOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionIdPagingPage(options)) { yield* page; @@ -105,7 +105,7 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { */ public listByResourceGroup( resourceGroupName: string, - options?: AvailabilityStatusesListByResourceGroupOptionalParams + options?: AvailabilityStatusesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -119,19 +119,15 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings - ); - } + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: AvailabilityStatusesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilityStatusesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -143,11 +139,7 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -157,12 +149,9 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: AvailabilityStatusesListByResourceGroupOptionalParams + options?: AvailabilityStatusesListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -178,7 +167,7 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { */ public list( resourceUri: string, - options?: AvailabilityStatusesListOptionalParams + options?: AvailabilityStatusesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceUri, options); return { @@ -193,14 +182,14 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceUri, options, settings); - } + }, }; } private async *listPagingPage( resourceUri: string, options?: AvailabilityStatusesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilityStatusesListResponse; let continuationToken = settings?.continuationToken; @@ -222,7 +211,7 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { private async *listPagingAll( resourceUri: string, - options?: AvailabilityStatusesListOptionalParams + options?: AvailabilityStatusesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceUri, options)) { yield* page; @@ -234,12 +223,9 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { * @param options The options parameters. */ private _listBySubscriptionId( - options?: AvailabilityStatusesListBySubscriptionIdOptionalParams + options?: AvailabilityStatusesListBySubscriptionIdOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionIdOperationSpec - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec); } /** @@ -249,11 +235,11 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { */ private _listByResourceGroup( resourceGroupName: string, - options?: AvailabilityStatusesListByResourceGroupOptionalParams + options?: AvailabilityStatusesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -268,12 +254,9 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { */ getByResource( resourceUri: string, - options?: AvailabilityStatusesGetByResourceOptionalParams + options?: AvailabilityStatusesGetByResourceOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceUri, options }, - getByResourceOperationSpec - ); + return this.client.sendOperationRequest({ resourceUri, options }, getByResourceOperationSpec); } /** @@ -287,12 +270,9 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { */ private _list( resourceUri: string, - options?: AvailabilityStatusesListOptionalParams + options?: AvailabilityStatusesListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceUri, options }, - listOperationSpec - ); + return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec); } /** @@ -302,11 +282,11 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { */ private _listBySubscriptionIdNext( nextLink: string, - options?: AvailabilityStatusesListBySubscriptionIdNextOptionalParams + options?: AvailabilityStatusesListBySubscriptionIdNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionIdNextOperationSpec + listBySubscriptionIdNextOperationSpec, ); } @@ -319,11 +299,11 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: AvailabilityStatusesListByResourceGroupNextOptionalParams + options?: AvailabilityStatusesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -340,11 +320,11 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { private _listNext( resourceUri: string, nextLink: string, - options?: AvailabilityStatusesListNextOptionalParams + options?: AvailabilityStatusesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceUri, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -352,148 +332,116 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatusListResult + bodyMapper: Mappers.AvailabilityStatusListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.expand - ], + queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.expand], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatusListResult + bodyMapper: Mappers.AvailabilityStatusListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.expand - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], + queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.expand], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByResourceOperationSpec: coreClient.OperationSpec = { - path: - "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current", + path: "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatus + bodyMapper: Mappers.AvailabilityStatus, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.expand - ], + queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.expand], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses", + path: "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatusListResult + bodyMapper: Mappers.AvailabilityStatusListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.expand - ], + queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.expand], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionIdNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatusListResult + bodyMapper: Mappers.AvailabilityStatusListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatusListResult + bodyMapper: Mappers.AvailabilityStatusListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatusListResult + bodyMapper: Mappers.AvailabilityStatusListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - urlParameters: [ - Parameters.$host, - Parameters.resourceUri, - Parameters.nextLink - ], + urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/childAvailabilityStatuses.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/childAvailabilityStatuses.ts index cdd8bda6bf51..af5e1c5f1c70 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/childAvailabilityStatuses.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/childAvailabilityStatuses.ts @@ -20,13 +20,12 @@ import { ChildAvailabilityStatusesListResponse, ChildAvailabilityStatusesGetByResourceOptionalParams, ChildAvailabilityStatusesGetByResourceResponse, - ChildAvailabilityStatusesListNextResponse + ChildAvailabilityStatusesListNextResponse, } from "../models/index.js"; /// /** Class containing ChildAvailabilityStatuses operations. */ -export class ChildAvailabilityStatusesImpl - implements ChildAvailabilityStatuses { +export class ChildAvailabilityStatusesImpl implements ChildAvailabilityStatuses { private readonly client: MicrosoftResourceHealth; /** @@ -47,7 +46,7 @@ export class ChildAvailabilityStatusesImpl */ public list( resourceUri: string, - options?: ChildAvailabilityStatusesListOptionalParams + options?: ChildAvailabilityStatusesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceUri, options); return { @@ -62,14 +61,14 @@ export class ChildAvailabilityStatusesImpl 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 + settings?: PageSettings, ): AsyncIterableIterator { let result: ChildAvailabilityStatusesListResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +90,7 @@ export class ChildAvailabilityStatusesImpl private async *listPagingAll( resourceUri: string, - options?: ChildAvailabilityStatusesListOptionalParams + options?: ChildAvailabilityStatusesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceUri, options)) { yield* page; @@ -107,12 +106,9 @@ export class ChildAvailabilityStatusesImpl */ getByResource( resourceUri: string, - options?: ChildAvailabilityStatusesGetByResourceOptionalParams + options?: ChildAvailabilityStatusesGetByResourceOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceUri, options }, - getByResourceOperationSpec - ); + return this.client.sendOperationRequest({ resourceUri, options }, getByResourceOperationSpec); } /** @@ -125,12 +121,9 @@ export class ChildAvailabilityStatusesImpl */ private _list( resourceUri: string, - options?: ChildAvailabilityStatusesListOptionalParams + options?: ChildAvailabilityStatusesListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceUri, options }, - listOperationSpec - ); + return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec); } /** @@ -144,11 +137,11 @@ export class ChildAvailabilityStatusesImpl private _listNext( resourceUri: string, nextLink: string, - options?: ChildAvailabilityStatusesListNextOptionalParams + options?: ChildAvailabilityStatusesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceUri, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -156,63 +149,49 @@ export class ChildAvailabilityStatusesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getByResourceOperationSpec: coreClient.OperationSpec = { - path: - "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current", + path: "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatus + bodyMapper: Mappers.AvailabilityStatus, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.expand - ], + queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.expand], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses", + path: "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatusListResult + bodyMapper: Mappers.AvailabilityStatusListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.expand - ], + queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.expand], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatusListResult + bodyMapper: Mappers.AvailabilityStatusListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - urlParameters: [ - Parameters.$host, - Parameters.resourceUri, - Parameters.nextLink - ], + urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/childResources.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/childResources.ts index 680ceff09347..10b71a36a260 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/childResources.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/childResources.ts @@ -18,7 +18,7 @@ import { ChildResourcesListNextOptionalParams, ChildResourcesListOptionalParams, ChildResourcesListResponse, - ChildResourcesListNextResponse + ChildResourcesListNextResponse, } from "../models/index.js"; /// @@ -44,7 +44,7 @@ export class ChildResourcesImpl implements ChildResources { */ public list( resourceUri: string, - options?: ChildResourcesListOptionalParams + options?: ChildResourcesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceUri, options); return { @@ -59,14 +59,14 @@ export class ChildResourcesImpl implements ChildResources { 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 + settings?: PageSettings, ): AsyncIterableIterator { let result: ChildResourcesListResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +88,7 @@ export class ChildResourcesImpl implements ChildResources { private async *listPagingAll( resourceUri: string, - options?: ChildResourcesListOptionalParams + options?: ChildResourcesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceUri, options)) { yield* page; @@ -105,12 +105,9 @@ export class ChildResourcesImpl implements ChildResources { */ private _list( resourceUri: string, - options?: ChildResourcesListOptionalParams + options?: ChildResourcesListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceUri, options }, - listOperationSpec - ); + return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec); } /** @@ -124,11 +121,11 @@ export class ChildResourcesImpl implements ChildResources { private _listNext( resourceUri: string, nextLink: string, - options?: ChildResourcesListNextOptionalParams + options?: ChildResourcesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceUri, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -140,37 +137,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatusListResult + bodyMapper: Mappers.AvailabilityStatusListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.expand - ], + queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.expand], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilityStatusListResult + bodyMapper: Mappers.AvailabilityStatusListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - urlParameters: [ - Parameters.$host, - Parameters.resourceUri, - Parameters.nextLink - ], + urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/emergingIssues.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/emergingIssues.ts index 127fc740dc35..df4dfebe77f6 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/emergingIssues.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/emergingIssues.ts @@ -21,7 +21,7 @@ import { IssueNameParameter, EmergingIssuesGetOptionalParams, EmergingIssuesGetResponse, - EmergingIssuesListNextResponse + EmergingIssuesListNextResponse, } from "../models/index.js"; /// @@ -42,7 +42,7 @@ export class EmergingIssuesImpl implements EmergingIssues { * @param options The options parameters. */ public list( - options?: EmergingIssuesListOptionalParams + options?: EmergingIssuesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -57,13 +57,13 @@ export class EmergingIssuesImpl implements EmergingIssues { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: EmergingIssuesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: EmergingIssuesListResponse; let continuationToken = settings?.continuationToken; @@ -84,7 +84,7 @@ export class EmergingIssuesImpl implements EmergingIssues { } private async *listPagingAll( - options?: EmergingIssuesListOptionalParams + options?: EmergingIssuesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -95,9 +95,7 @@ export class EmergingIssuesImpl implements EmergingIssues { * Lists Azure services' emerging issues. * @param options The options parameters. */ - private _list( - options?: EmergingIssuesListOptionalParams - ): Promise { + private _list(options?: EmergingIssuesListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -108,12 +106,9 @@ export class EmergingIssuesImpl implements EmergingIssues { */ get( issueName: IssueNameParameter, - options?: EmergingIssuesGetOptionalParams + options?: EmergingIssuesGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { issueName, options }, - getOperationSpec - ); + return this.client.sendOperationRequest({ issueName, options }, getOperationSpec); } /** @@ -123,12 +118,9 @@ export class EmergingIssuesImpl implements EmergingIssues { */ private _listNext( nextLink: string, - options?: EmergingIssuesListNextOptionalParams + options?: EmergingIssuesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -139,45 +131,45 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EmergingIssueListResult + bodyMapper: Mappers.EmergingIssueListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.ResourceHealth/emergingIssues/{issueName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EmergingIssuesGetResult + bodyMapper: Mappers.EmergingIssuesGetResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.issueName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EmergingIssueListResult + bodyMapper: Mappers.EmergingIssueListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/eventOperations.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/eventOperations.ts index 7c88904a7920..e1604c39f596 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/eventOperations.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/eventOperations.ts @@ -19,7 +19,7 @@ import { EventGetByTenantIdAndTrackingIdOptionalParams, EventGetByTenantIdAndTrackingIdResponse, EventFetchDetailsByTenantIdAndTrackingIdOptionalParams, - EventFetchDetailsByTenantIdAndTrackingIdResponse + EventFetchDetailsByTenantIdAndTrackingIdResponse, } from "../models/index.js"; /** Class containing EventOperations operations. */ @@ -41,27 +41,28 @@ export class EventOperationsImpl implements EventOperations { */ getBySubscriptionIdAndTrackingId( eventTrackingId: string, - options?: EventGetBySubscriptionIdAndTrackingIdOptionalParams + options?: EventGetBySubscriptionIdAndTrackingIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { eventTrackingId, options }, - getBySubscriptionIdAndTrackingIdOperationSpec + getBySubscriptionIdAndTrackingIdOperationSpec, ); } /** * Service health event details in the subscription by event tracking id. This can be used to fetch - * sensitive properties for Security Advisory events + * sensitive properties for Security Advisory events. Please see + * https://learn.microsoft.com/en-us/azure/service-health/security-advisories-elevated-access * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event. * @param options The options parameters. */ fetchDetailsBySubscriptionIdAndTrackingId( eventTrackingId: string, - options?: EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams + options?: EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { eventTrackingId, options }, - fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec + fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec, ); } @@ -72,27 +73,28 @@ export class EventOperationsImpl implements EventOperations { */ getByTenantIdAndTrackingId( eventTrackingId: string, - options?: EventGetByTenantIdAndTrackingIdOptionalParams + options?: EventGetByTenantIdAndTrackingIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { eventTrackingId, options }, - getByTenantIdAndTrackingIdOperationSpec + getByTenantIdAndTrackingIdOperationSpec, ); } /** * Service health event details in the tenant by event tracking id. This can be used to fetch sensitive - * properties for Security Advisory events + * properties for Security Advisory events. Please see + * https://learn.microsoft.com/en-us/azure/service-health/security-advisories-elevated-access * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event. * @param options The options parameters. */ fetchDetailsByTenantIdAndTrackingId( eventTrackingId: string, - options?: EventFetchDetailsByTenantIdAndTrackingIdOptionalParams + options?: EventFetchDetailsByTenantIdAndTrackingIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { eventTrackingId, options }, - fetchDetailsByTenantIdAndTrackingIdOperationSpec + fetchDetailsByTenantIdAndTrackingIdOperationSpec, ); } } @@ -100,85 +102,66 @@ export class EventOperationsImpl implements EventOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getBySubscriptionIdAndTrackingIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Event + bodyMapper: Mappers.Event, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.queryStartTime - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.eventTrackingId - ], + queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.queryStartTime], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.eventTrackingId], headerParameters: [Parameters.accept], - serializer + serializer, }; const fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.Event + bodyMapper: Mappers.Event, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.eventTrackingId - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.eventTrackingId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByTenantIdAndTrackingIdOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Event + bodyMapper: Mappers.Event, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.queryStartTime - ], + queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.queryStartTime], urlParameters: [Parameters.$host, Parameters.eventTrackingId], headerParameters: [Parameters.accept], - serializer + serializer, }; const fetchDetailsByTenantIdAndTrackingIdOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails", + path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.Event + bodyMapper: Mappers.Event, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.eventTrackingId], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/eventsOperations.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/eventsOperations.ts index 11bc33c2ad4c..d5c9b66123fe 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/eventsOperations.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/eventsOperations.ts @@ -26,7 +26,7 @@ import { EventsListBySingleResourceResponse, EventsListBySubscriptionIdNextResponse, EventsListByTenantIdNextResponse, - EventsListBySingleResourceNextResponse + EventsListBySingleResourceNextResponse, } from "../models/index.js"; /// @@ -47,7 +47,7 @@ export class EventsOperationsImpl implements EventsOperations { * @param options The options parameters. */ public listBySubscriptionId( - options?: EventsListBySubscriptionIdOptionalParams + options?: EventsListBySubscriptionIdOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionIdPagingAll(options); return { @@ -62,13 +62,13 @@ export class EventsOperationsImpl implements EventsOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionIdPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionIdPagingPage( options?: EventsListBySubscriptionIdOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: EventsListBySubscriptionIdResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class EventsOperationsImpl implements EventsOperations { } private async *listBySubscriptionIdPagingAll( - options?: EventsListBySubscriptionIdOptionalParams + options?: EventsListBySubscriptionIdOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionIdPagingPage(options)) { yield* page; @@ -101,7 +101,7 @@ export class EventsOperationsImpl implements EventsOperations { * @param options The options parameters. */ public listByTenantId( - options?: EventsListByTenantIdOptionalParams + options?: EventsListByTenantIdOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTenantIdPagingAll(options); return { @@ -116,13 +116,13 @@ export class EventsOperationsImpl implements EventsOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listByTenantIdPagingPage(options, settings); - } + }, }; } private async *listByTenantIdPagingPage( options?: EventsListByTenantIdOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: EventsListByTenantIdResponse; let continuationToken = settings?.continuationToken; @@ -143,7 +143,7 @@ export class EventsOperationsImpl implements EventsOperations { } private async *listByTenantIdPagingAll( - options?: EventsListByTenantIdOptionalParams + options?: EventsListByTenantIdOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTenantIdPagingPage(options)) { yield* page; @@ -161,7 +161,7 @@ export class EventsOperationsImpl implements EventsOperations { */ public listBySingleResource( resourceUri: string, - options?: EventsListBySingleResourceOptionalParams + options?: EventsListBySingleResourceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySingleResourcePagingAll(resourceUri, options); return { @@ -175,19 +175,15 @@ export class EventsOperationsImpl implements EventsOperations { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listBySingleResourcePagingPage( - resourceUri, - options, - settings - ); - } + return this.listBySingleResourcePagingPage(resourceUri, options, settings); + }, }; } private async *listBySingleResourcePagingPage( resourceUri: string, options?: EventsListBySingleResourceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: EventsListBySingleResourceResponse; let continuationToken = settings?.continuationToken; @@ -199,11 +195,7 @@ export class EventsOperationsImpl implements EventsOperations { yield page; } while (continuationToken) { - result = await this._listBySingleResourceNext( - resourceUri, - continuationToken, - options - ); + result = await this._listBySingleResourceNext(resourceUri, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -213,12 +205,9 @@ export class EventsOperationsImpl implements EventsOperations { private async *listBySingleResourcePagingAll( resourceUri: string, - options?: EventsListBySingleResourceOptionalParams + options?: EventsListBySingleResourceOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listBySingleResourcePagingPage( - resourceUri, - options - )) { + for await (const page of this.listBySingleResourcePagingPage(resourceUri, options)) { yield* page; } } @@ -228,12 +217,9 @@ export class EventsOperationsImpl implements EventsOperations { * @param options The options parameters. */ private _listBySubscriptionId( - options?: EventsListBySubscriptionIdOptionalParams + options?: EventsListBySubscriptionIdOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionIdOperationSpec - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec); } /** @@ -241,12 +227,9 @@ export class EventsOperationsImpl implements EventsOperations { * @param options The options parameters. */ private _listByTenantId( - options?: EventsListByTenantIdOptionalParams + options?: EventsListByTenantIdOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listByTenantIdOperationSpec - ); + return this.client.sendOperationRequest({ options }, listByTenantIdOperationSpec); } /** @@ -260,11 +243,11 @@ export class EventsOperationsImpl implements EventsOperations { */ private _listBySingleResource( resourceUri: string, - options?: EventsListBySingleResourceOptionalParams + options?: EventsListBySingleResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceUri, options }, - listBySingleResourceOperationSpec + listBySingleResourceOperationSpec, ); } @@ -275,11 +258,11 @@ export class EventsOperationsImpl implements EventsOperations { */ private _listBySubscriptionIdNext( nextLink: string, - options?: EventsListBySubscriptionIdNextOptionalParams + options?: EventsListBySubscriptionIdNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionIdNextOperationSpec + listBySubscriptionIdNextOperationSpec, ); } @@ -290,12 +273,9 @@ export class EventsOperationsImpl implements EventsOperations { */ private _listByTenantIdNext( nextLink: string, - options?: EventsListByTenantIdNextOptionalParams + options?: EventsListByTenantIdNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listByTenantIdNextOperationSpec - ); + return this.client.sendOperationRequest({ nextLink, options }, listByTenantIdNextOperationSpec); } /** @@ -311,11 +291,11 @@ export class EventsOperationsImpl implements EventsOperations { private _listBySingleResourceNext( resourceUri: string, nextLink: string, - options?: EventsListBySingleResourceNextOptionalParams + options?: EventsListBySingleResourceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceUri, nextLink, options }, - listBySingleResourceNextOperationSpec + listBySingleResourceNextOperationSpec, ); } } @@ -323,112 +303,95 @@ export class EventsOperationsImpl implements EventsOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Events + bodyMapper: Mappers.Events, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.queryStartTime - ], + queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.queryStartTime], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTenantIdOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.ResourceHealth/events", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Events + bodyMapper: Mappers.Events, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.queryStartTime - ], + queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.queryStartTime], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySingleResourceOperationSpec: coreClient.OperationSpec = { path: "/{resourceUri}/providers/Microsoft.ResourceHealth/events", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Events + bodyMapper: Mappers.Events, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionIdNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Events + bodyMapper: Mappers.Events, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTenantIdNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Events + bodyMapper: Mappers.Events, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySingleResourceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Events + bodyMapper: Mappers.Events, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - urlParameters: [ - Parameters.$host, - Parameters.resourceUri, - Parameters.nextLink - ], + urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/impactedResources.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/impactedResources.ts index 97c7083aba35..3e0764fa949e 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/impactedResources.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/impactedResources.ts @@ -26,7 +26,7 @@ import { ImpactedResourcesGetByTenantIdOptionalParams, ImpactedResourcesGetByTenantIdResponse, ImpactedResourcesListBySubscriptionIdAndEventIdNextResponse, - ImpactedResourcesListByTenantIdAndEventIdNextResponse + ImpactedResourcesListByTenantIdAndEventIdNextResponse, } from "../models/index.js"; /// @@ -49,12 +49,9 @@ export class ImpactedResourcesImpl implements ImpactedResources { */ public listBySubscriptionIdAndEventId( eventTrackingId: string, - options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams + options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionIdAndEventIdPagingAll( - eventTrackingId, - options - ); + const iter = this.listBySubscriptionIdAndEventIdPagingAll(eventTrackingId, options); return { next() { return iter.next(); @@ -66,27 +63,20 @@ export class ImpactedResourcesImpl implements ImpactedResources { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listBySubscriptionIdAndEventIdPagingPage( - eventTrackingId, - options, - settings - ); - } + return this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options, settings); + }, }; } private async *listBySubscriptionIdAndEventIdPagingPage( eventTrackingId: string, options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ImpactedResourcesListBySubscriptionIdAndEventIdResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listBySubscriptionIdAndEventId( - eventTrackingId, - options - ); + result = await this._listBySubscriptionIdAndEventId(eventTrackingId, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -96,7 +86,7 @@ export class ImpactedResourcesImpl implements ImpactedResources { result = await this._listBySubscriptionIdAndEventIdNext( eventTrackingId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,11 +97,11 @@ export class ImpactedResourcesImpl implements ImpactedResources { private async *listBySubscriptionIdAndEventIdPagingAll( eventTrackingId: string, - options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams + options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionIdAndEventIdPagingPage( eventTrackingId, - options + options, )) { yield* page; } @@ -124,12 +114,9 @@ export class ImpactedResourcesImpl implements ImpactedResources { */ public listByTenantIdAndEventId( eventTrackingId: string, - options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams + options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listByTenantIdAndEventIdPagingAll( - eventTrackingId, - options - ); + const iter = this.listByTenantIdAndEventIdPagingAll(eventTrackingId, options); return { next() { return iter.next(); @@ -141,19 +128,15 @@ export class ImpactedResourcesImpl implements ImpactedResources { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByTenantIdAndEventIdPagingPage( - eventTrackingId, - options, - settings - ); - } + return this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options, settings); + }, }; } private async *listByTenantIdAndEventIdPagingPage( eventTrackingId: string, options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ImpactedResourcesListByTenantIdAndEventIdResponse; let continuationToken = settings?.continuationToken; @@ -168,7 +151,7 @@ export class ImpactedResourcesImpl implements ImpactedResources { result = await this._listByTenantIdAndEventIdNext( eventTrackingId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -179,12 +162,9 @@ export class ImpactedResourcesImpl implements ImpactedResources { private async *listByTenantIdAndEventIdPagingAll( eventTrackingId: string, - options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams + options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByTenantIdAndEventIdPagingPage( - eventTrackingId, - options - )) { + for await (const page of this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options)) { yield* page; } } @@ -196,11 +176,11 @@ export class ImpactedResourcesImpl implements ImpactedResources { */ private _listBySubscriptionIdAndEventId( eventTrackingId: string, - options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams + options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { eventTrackingId, options }, - listBySubscriptionIdAndEventIdOperationSpec + listBySubscriptionIdAndEventIdOperationSpec, ); } @@ -213,11 +193,11 @@ export class ImpactedResourcesImpl implements ImpactedResources { get( eventTrackingId: string, impactedResourceName: string, - options?: ImpactedResourcesGetOptionalParams + options?: ImpactedResourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { eventTrackingId, impactedResourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -228,11 +208,11 @@ export class ImpactedResourcesImpl implements ImpactedResources { */ private _listByTenantIdAndEventId( eventTrackingId: string, - options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams + options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { eventTrackingId, options }, - listByTenantIdAndEventIdOperationSpec + listByTenantIdAndEventIdOperationSpec, ); } @@ -245,11 +225,11 @@ export class ImpactedResourcesImpl implements ImpactedResources { getByTenantId( eventTrackingId: string, impactedResourceName: string, - options?: ImpactedResourcesGetByTenantIdOptionalParams + options?: ImpactedResourcesGetByTenantIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { eventTrackingId, impactedResourceName, options }, - getByTenantIdOperationSpec + getByTenantIdOperationSpec, ); } @@ -263,11 +243,11 @@ export class ImpactedResourcesImpl implements ImpactedResources { private _listBySubscriptionIdAndEventIdNext( eventTrackingId: string, nextLink: string, - options?: ImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams + options?: ImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { eventTrackingId, nextLink, options }, - listBySubscriptionIdAndEventIdNextOperationSpec + listBySubscriptionIdAndEventIdNextOperationSpec, ); } @@ -281,11 +261,11 @@ export class ImpactedResourcesImpl implements ImpactedResources { private _listByTenantIdAndEventIdNext( eventTrackingId: string, nextLink: string, - options?: ImpactedResourcesListByTenantIdAndEventIdNextOptionalParams + options?: ImpactedResourcesListByTenantIdAndEventIdNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { eventTrackingId, nextLink, options }, - listByTenantIdAndEventIdNextOperationSpec + listByTenantIdAndEventIdNextOperationSpec, ); } } @@ -293,122 +273,106 @@ export class ImpactedResourcesImpl implements ImpactedResources { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionIdAndEventIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventImpactedResourceListResult + bodyMapper: Mappers.EventImpactedResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.eventTrackingId - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.eventTrackingId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventImpactedResource + bodyMapper: Mappers.EventImpactedResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.eventTrackingId, - Parameters.impactedResourceName + Parameters.impactedResourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTenantIdAndEventIdOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources", + path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventImpactedResourceListResult + bodyMapper: Mappers.EventImpactedResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [Parameters.$host, Parameters.eventTrackingId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByTenantIdOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}", + path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventImpactedResource + bodyMapper: Mappers.EventImpactedResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.eventTrackingId, - Parameters.impactedResourceName - ], + urlParameters: [Parameters.$host, Parameters.eventTrackingId, Parameters.impactedResourceName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionIdAndEventIdNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventImpactedResourceListResult + bodyMapper: Mappers.EventImpactedResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.eventTrackingId + Parameters.eventTrackingId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTenantIdAndEventIdNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventImpactedResourceListResult + bodyMapper: Mappers.EventImpactedResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.eventTrackingId - ], + urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.eventTrackingId], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/metadata.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/metadata.ts index 216fda813f19..177ec17512c3 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/metadata.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/metadata.ts @@ -20,7 +20,7 @@ import { MetadataListResponse, MetadataGetEntityOptionalParams, MetadataGetEntityResponse, - MetadataListNextResponse + MetadataListNextResponse, } from "../models/index.js"; /// @@ -40,9 +40,7 @@ export class MetadataImpl implements Metadata { * Gets the list of metadata entities. * @param options The options parameters. */ - public list( - options?: MetadataListOptionalParams - ): PagedAsyncIterableIterator { + public list(options?: MetadataListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -56,13 +54,13 @@ export class MetadataImpl implements Metadata { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: MetadataListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: MetadataListResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +81,7 @@ export class MetadataImpl implements Metadata { } private async *listPagingAll( - options?: MetadataListOptionalParams + options?: MetadataListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -94,9 +92,7 @@ export class MetadataImpl implements Metadata { * Gets the list of metadata entities. * @param options The options parameters. */ - private _list( - options?: MetadataListOptionalParams - ): Promise { + private _list(options?: MetadataListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -107,12 +103,9 @@ export class MetadataImpl implements Metadata { */ getEntity( name: string, - options?: MetadataGetEntityOptionalParams + options?: MetadataGetEntityOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { name, options }, - getEntityOperationSpec - ); + return this.client.sendOperationRequest({ name, options }, getEntityOperationSpec); } /** @@ -122,12 +115,9 @@ export class MetadataImpl implements Metadata { */ private _listNext( nextLink: string, - options?: MetadataListNextOptionalParams + options?: MetadataListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -138,45 +128,45 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MetadataEntityListResult + bodyMapper: Mappers.MetadataEntityListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.ResourceHealth/metadata/{name}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MetadataEntity + bodyMapper: Mappers.MetadataEntity, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.name], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MetadataEntityListResult + bodyMapper: Mappers.MetadataEntityListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/operations.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/operations.ts index d27c273b2819..86d8afd1adf8 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/operations.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/operations.ts @@ -11,10 +11,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { MicrosoftResourceHealth } from "../microsoftResourceHealth.js"; -import { - OperationsListOptionalParams, - OperationsListResponse -} from "../models/index.js"; +import { OperationsListOptionalParams, OperationsListResponse } from "../models/index.js"; /** Class containing Operations operations. */ export class OperationsImpl implements Operations { @@ -32,9 +29,7 @@ export class OperationsImpl implements Operations { * Lists available operations for the resourcehealth resource provider * @param options The options parameters. */ - list( - options?: OperationsListOptionalParams - ): Promise { + list(options?: OperationsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } } @@ -46,14 +41,14 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/securityAdvisoryImpactedResources.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/securityAdvisoryImpactedResources.ts index ee0103195001..d4031bf39409 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operations/securityAdvisoryImpactedResources.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/securityAdvisoryImpactedResources.ts @@ -22,13 +22,12 @@ import { SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams, SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse, SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextResponse, - SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse + SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse, } from "../models/index.js"; /// /** Class containing SecurityAdvisoryImpactedResources operations. */ -export class SecurityAdvisoryImpactedResourcesImpl - implements SecurityAdvisoryImpactedResources { +export class SecurityAdvisoryImpactedResourcesImpl implements SecurityAdvisoryImpactedResources { private readonly client: MicrosoftResourceHealth; /** @@ -46,12 +45,9 @@ export class SecurityAdvisoryImpactedResourcesImpl */ public listBySubscriptionIdAndEventId( eventTrackingId: string, - options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams + options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionIdAndEventIdPagingAll( - eventTrackingId, - options - ); + const iter = this.listBySubscriptionIdAndEventIdPagingAll(eventTrackingId, options); return { next() { return iter.next(); @@ -63,27 +59,20 @@ export class SecurityAdvisoryImpactedResourcesImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listBySubscriptionIdAndEventIdPagingPage( - eventTrackingId, - options, - settings - ); - } + return this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options, settings); + }, }; } private async *listBySubscriptionIdAndEventIdPagingPage( eventTrackingId: string, options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listBySubscriptionIdAndEventId( - eventTrackingId, - options - ); + result = await this._listBySubscriptionIdAndEventId(eventTrackingId, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -93,7 +82,7 @@ export class SecurityAdvisoryImpactedResourcesImpl result = await this._listBySubscriptionIdAndEventIdNext( eventTrackingId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -104,11 +93,11 @@ export class SecurityAdvisoryImpactedResourcesImpl private async *listBySubscriptionIdAndEventIdPagingAll( eventTrackingId: string, - options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams + options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionIdAndEventIdPagingPage( eventTrackingId, - options + options, )) { yield* page; } @@ -121,12 +110,9 @@ export class SecurityAdvisoryImpactedResourcesImpl */ public listByTenantIdAndEventId( eventTrackingId: string, - options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams + options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listByTenantIdAndEventIdPagingAll( - eventTrackingId, - options - ); + const iter = this.listByTenantIdAndEventIdPagingAll(eventTrackingId, options); return { next() { return iter.next(); @@ -138,19 +124,15 @@ export class SecurityAdvisoryImpactedResourcesImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByTenantIdAndEventIdPagingPage( - eventTrackingId, - options, - settings - ); - } + return this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options, settings); + }, }; } private async *listByTenantIdAndEventIdPagingPage( eventTrackingId: string, options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse; let continuationToken = settings?.continuationToken; @@ -165,7 +147,7 @@ export class SecurityAdvisoryImpactedResourcesImpl result = await this._listByTenantIdAndEventIdNext( eventTrackingId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -176,12 +158,9 @@ export class SecurityAdvisoryImpactedResourcesImpl private async *listByTenantIdAndEventIdPagingAll( eventTrackingId: string, - options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams + options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByTenantIdAndEventIdPagingPage( - eventTrackingId, - options - )) { + for await (const page of this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options)) { yield* page; } } @@ -193,13 +172,11 @@ export class SecurityAdvisoryImpactedResourcesImpl */ private _listBySubscriptionIdAndEventId( eventTrackingId: string, - options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams - ): Promise< - SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse - > { + options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, + ): Promise { return this.client.sendOperationRequest( { eventTrackingId, options }, - listBySubscriptionIdAndEventIdOperationSpec + listBySubscriptionIdAndEventIdOperationSpec, ); } @@ -210,13 +187,11 @@ export class SecurityAdvisoryImpactedResourcesImpl */ private _listByTenantIdAndEventId( eventTrackingId: string, - options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams - ): Promise< - SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse - > { + options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams, + ): Promise { return this.client.sendOperationRequest( { eventTrackingId, options }, - listByTenantIdAndEventIdOperationSpec + listByTenantIdAndEventIdOperationSpec, ); } @@ -230,13 +205,11 @@ export class SecurityAdvisoryImpactedResourcesImpl private _listBySubscriptionIdAndEventIdNext( eventTrackingId: string, nextLink: string, - options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams - ): Promise< - SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextResponse - > { + options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { eventTrackingId, nextLink, options }, - listBySubscriptionIdAndEventIdNextOperationSpec + listBySubscriptionIdAndEventIdNextOperationSpec, ); } @@ -250,13 +223,11 @@ export class SecurityAdvisoryImpactedResourcesImpl private _listByTenantIdAndEventIdNext( eventTrackingId: string, nextLink: string, - options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextOptionalParams - ): Promise< - SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse - > { + options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { eventTrackingId, nextLink, options }, - listByTenantIdAndEventIdNextOperationSpec + listByTenantIdAndEventIdNextOperationSpec, ); } } @@ -264,79 +235,69 @@ export class SecurityAdvisoryImpactedResourcesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionIdAndEventIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.EventImpactedResourceListResult + bodyMapper: Mappers.EventImpactedResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.eventTrackingId - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.eventTrackingId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTenantIdAndEventIdOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources", + path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.EventImpactedResourceListResult + bodyMapper: Mappers.EventImpactedResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [Parameters.$host, Parameters.eventTrackingId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionIdAndEventIdNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventImpactedResourceListResult + bodyMapper: Mappers.EventImpactedResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.eventTrackingId + Parameters.eventTrackingId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTenantIdAndEventIdNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventImpactedResourceListResult + bodyMapper: Mappers.EventImpactedResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.eventTrackingId - ], + urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.eventTrackingId], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/availabilityStatuses.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/availabilityStatuses.ts index 318fc5a8fd01..da24498147ea 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/availabilityStatuses.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/availabilityStatuses.ts @@ -13,7 +13,7 @@ import { AvailabilityStatusesListByResourceGroupOptionalParams, AvailabilityStatusesListOptionalParams, AvailabilityStatusesGetByResourceOptionalParams, - AvailabilityStatusesGetByResourceResponse + AvailabilityStatusesGetByResourceResponse, } from "../models/index.js"; /// @@ -24,7 +24,7 @@ export interface AvailabilityStatuses { * @param options The options parameters. */ listBySubscriptionId( - options?: AvailabilityStatusesListBySubscriptionIdOptionalParams + options?: AvailabilityStatusesListBySubscriptionIdOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the current availability status for all the resources in the resource group. @@ -33,7 +33,7 @@ export interface AvailabilityStatuses { */ listByResourceGroup( resourceGroupName: string, - options?: AvailabilityStatusesListByResourceGroupOptionalParams + options?: AvailabilityStatusesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all historical availability transitions and impacting events for a single resource. @@ -46,7 +46,7 @@ export interface AvailabilityStatuses { */ list( resourceUri: string, - options?: AvailabilityStatusesListOptionalParams + options?: AvailabilityStatusesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets current availability status for a single resource @@ -59,6 +59,6 @@ export interface AvailabilityStatuses { */ getByResource( resourceUri: string, - options?: AvailabilityStatusesGetByResourceOptionalParams + options?: AvailabilityStatusesGetByResourceOptionalParams, ): Promise; } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childAvailabilityStatuses.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childAvailabilityStatuses.ts index 11112a08b85d..3b4d62fe1ebd 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childAvailabilityStatuses.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childAvailabilityStatuses.ts @@ -11,7 +11,7 @@ import { AvailabilityStatus, ChildAvailabilityStatusesListOptionalParams, ChildAvailabilityStatusesGetByResourceOptionalParams, - ChildAvailabilityStatusesGetByResourceResponse + ChildAvailabilityStatusesGetByResourceResponse, } from "../models/index.js"; /// @@ -27,7 +27,7 @@ export interface ChildAvailabilityStatuses { */ list( resourceUri: string, - options?: ChildAvailabilityStatusesListOptionalParams + options?: ChildAvailabilityStatusesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets current availability status for a single resource @@ -38,6 +38,6 @@ export interface ChildAvailabilityStatuses { */ getByResource( resourceUri: string, - options?: ChildAvailabilityStatusesGetByResourceOptionalParams + options?: ChildAvailabilityStatusesGetByResourceOptionalParams, ): Promise; } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childResources.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childResources.ts index 61708f932260..66667088f952 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childResources.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/childResources.ts @@ -7,10 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - AvailabilityStatus, - ChildResourcesListOptionalParams -} from "../models/index.js"; +import { AvailabilityStatus, ChildResourcesListOptionalParams } from "../models/index.js"; /// /** Interface representing a ChildResources. */ @@ -25,6 +22,6 @@ export interface ChildResources { */ list( resourceUri: string, - options?: ChildResourcesListOptionalParams + options?: ChildResourcesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/emergingIssues.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/emergingIssues.ts index 7b57c59cb3c1..ffa9a47509de 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/emergingIssues.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/emergingIssues.ts @@ -12,7 +12,7 @@ import { EmergingIssuesListOptionalParams, IssueNameParameter, EmergingIssuesGetOptionalParams, - EmergingIssuesGetResponse + EmergingIssuesGetResponse, } from "../models/index.js"; /// @@ -23,7 +23,7 @@ export interface EmergingIssues { * @param options The options parameters. */ list( - options?: EmergingIssuesListOptionalParams + options?: EmergingIssuesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets Azure services' emerging issues. @@ -32,6 +32,6 @@ export interface EmergingIssues { */ get( issueName: IssueNameParameter, - options?: EmergingIssuesGetOptionalParams + options?: EmergingIssuesGetOptionalParams, ): Promise; } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/eventOperations.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/eventOperations.ts index 428a21c968a7..f053234f881d 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/eventOperations.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/eventOperations.ts @@ -14,7 +14,7 @@ import { EventGetByTenantIdAndTrackingIdOptionalParams, EventGetByTenantIdAndTrackingIdResponse, EventFetchDetailsByTenantIdAndTrackingIdOptionalParams, - EventFetchDetailsByTenantIdAndTrackingIdResponse + EventFetchDetailsByTenantIdAndTrackingIdResponse, } from "../models/index.js"; /** Interface representing a EventOperations. */ @@ -26,17 +26,18 @@ export interface EventOperations { */ getBySubscriptionIdAndTrackingId( eventTrackingId: string, - options?: EventGetBySubscriptionIdAndTrackingIdOptionalParams + options?: EventGetBySubscriptionIdAndTrackingIdOptionalParams, ): Promise; /** * Service health event details in the subscription by event tracking id. This can be used to fetch - * sensitive properties for Security Advisory events + * sensitive properties for Security Advisory events. Please see + * https://learn.microsoft.com/en-us/azure/service-health/security-advisories-elevated-access * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event. * @param options The options parameters. */ fetchDetailsBySubscriptionIdAndTrackingId( eventTrackingId: string, - options?: EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams + options?: EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams, ): Promise; /** * Service health event in the tenant by event tracking id @@ -45,16 +46,17 @@ export interface EventOperations { */ getByTenantIdAndTrackingId( eventTrackingId: string, - options?: EventGetByTenantIdAndTrackingIdOptionalParams + options?: EventGetByTenantIdAndTrackingIdOptionalParams, ): Promise; /** * Service health event details in the tenant by event tracking id. This can be used to fetch sensitive - * properties for Security Advisory events + * properties for Security Advisory events. Please see + * https://learn.microsoft.com/en-us/azure/service-health/security-advisories-elevated-access * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event. * @param options The options parameters. */ fetchDetailsByTenantIdAndTrackingId( eventTrackingId: string, - options?: EventFetchDetailsByTenantIdAndTrackingIdOptionalParams + options?: EventFetchDetailsByTenantIdAndTrackingIdOptionalParams, ): Promise; } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/eventsOperations.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/eventsOperations.ts index 380c215c6fdc..5f98ecf982a0 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/eventsOperations.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/eventsOperations.ts @@ -11,7 +11,7 @@ import { Event, EventsListBySubscriptionIdOptionalParams, EventsListByTenantIdOptionalParams, - EventsListBySingleResourceOptionalParams + EventsListBySingleResourceOptionalParams, } from "../models/index.js"; /// @@ -22,15 +22,13 @@ export interface EventsOperations { * @param options The options parameters. */ listBySubscriptionId( - options?: EventsListBySubscriptionIdOptionalParams + options?: EventsListBySubscriptionIdOptionalParams, ): PagedAsyncIterableIterator; /** * Lists current service health events in the tenant. * @param options The options parameters. */ - listByTenantId( - options?: EventsListByTenantIdOptionalParams - ): PagedAsyncIterableIterator; + listByTenantId(options?: EventsListByTenantIdOptionalParams): PagedAsyncIterableIterator; /** * Lists current service health events for given resource. * @param resourceUri The fully qualified ID of the resource, including the resource name and resource @@ -42,6 +40,6 @@ export interface EventsOperations { */ listBySingleResource( resourceUri: string, - options?: EventsListBySingleResourceOptionalParams + options?: EventsListBySingleResourceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/impactedResources.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/impactedResources.ts index 8db9179ddc92..1f507522c060 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/impactedResources.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/impactedResources.ts @@ -14,7 +14,7 @@ import { ImpactedResourcesGetOptionalParams, ImpactedResourcesGetResponse, ImpactedResourcesGetByTenantIdOptionalParams, - ImpactedResourcesGetByTenantIdResponse + ImpactedResourcesGetByTenantIdResponse, } from "../models/index.js"; /// @@ -27,7 +27,7 @@ export interface ImpactedResources { */ listBySubscriptionIdAndEventId( eventTrackingId: string, - options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams + options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, ): PagedAsyncIterableIterator; /** * Lists impacted resources in the tenant by an event. @@ -36,7 +36,7 @@ export interface ImpactedResources { */ listByTenantIdAndEventId( eventTrackingId: string, - options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams + options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the specific impacted resource in the subscription by an event. @@ -47,7 +47,7 @@ export interface ImpactedResources { get( eventTrackingId: string, impactedResourceName: string, - options?: ImpactedResourcesGetOptionalParams + options?: ImpactedResourcesGetOptionalParams, ): Promise; /** * Gets the specific impacted resource in the tenant by an event. @@ -58,6 +58,6 @@ export interface ImpactedResources { getByTenantId( eventTrackingId: string, impactedResourceName: string, - options?: ImpactedResourcesGetByTenantIdOptionalParams + options?: ImpactedResourcesGetByTenantIdOptionalParams, ): Promise; } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/metadata.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/metadata.ts index c41943b29732..d6ff215eba18 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/metadata.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/metadata.ts @@ -11,7 +11,7 @@ import { MetadataEntity, MetadataListOptionalParams, MetadataGetEntityOptionalParams, - MetadataGetEntityResponse + MetadataGetEntityResponse, } from "../models/index.js"; /// @@ -21,9 +21,7 @@ export interface Metadata { * Gets the list of metadata entities. * @param options The options parameters. */ - list( - options?: MetadataListOptionalParams - ): PagedAsyncIterableIterator; + list(options?: MetadataListOptionalParams): PagedAsyncIterableIterator; /** * Gets the list of metadata entities. * @param name Name of metadata entity. @@ -31,6 +29,6 @@ export interface Metadata { */ getEntity( name: string, - options?: MetadataGetEntityOptionalParams + options?: MetadataGetEntityOptionalParams, ): Promise; } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/operations.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/operations.ts index 4731e5caa799..4742d534ad9a 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/operations.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/operations.ts @@ -6,10 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { - OperationsListOptionalParams, - OperationsListResponse -} from "../models/index.js"; +import { OperationsListOptionalParams, OperationsListResponse } from "../models/index.js"; /** Interface representing a Operations. */ export interface Operations { diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/securityAdvisoryImpactedResources.ts b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/securityAdvisoryImpactedResources.ts index a1a5fb89b50c..20e6a8a08917 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/securityAdvisoryImpactedResources.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/operationsInterfaces/securityAdvisoryImpactedResources.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { EventImpactedResource, SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, - SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams + SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams, } from "../models/index.js"; /// @@ -23,7 +23,7 @@ export interface SecurityAdvisoryImpactedResources { */ listBySubscriptionIdAndEventId( eventTrackingId: string, - options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams + options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, ): PagedAsyncIterableIterator; /** * Lists impacted resources in the tenant by an event (Security Advisory). @@ -32,6 +32,6 @@ export interface SecurityAdvisoryImpactedResources { */ listByTenantIdAndEventId( eventTrackingId: string, - options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams + options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/resourcehealth/arm-resourcehealth/src/pagingHelper.ts b/sdk/resourcehealth/arm-resourcehealth/src/pagingHelper.ts index 269a2b9814b5..e362819bdfc4 100644 --- a/sdk/resourcehealth/arm-resourcehealth/src/pagingHelper.ts +++ b/sdk/resourcehealth/arm-resourcehealth/src/pagingHelper.ts @@ -26,10 +26,7 @@ export function getContinuationToken(page: unknown): string | undefined { return pageMap.get(page)?.continuationToken; } -export function setContinuationToken( - page: unknown, - continuationToken: string | undefined -): void { +export function setContinuationToken(page: unknown, continuationToken: string | undefined): void { if (typeof page !== "object" || page === null || !continuationToken) { return; } diff --git a/sdk/resourcehealth/arm-resourcehealth/test/sampleTest.spec.ts b/sdk/resourcehealth/arm-resourcehealth/test/sampleTest.spec.ts new file mode 100644 index 000000000000..90b3c8a868b4 --- /dev/null +++ b/sdk/resourcehealth/arm-resourcehealth/test/sampleTest.spec.ts @@ -0,0 +1,38 @@ +/* + * 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 } from "@azure-tools/test-recorder"; +import { afterEach, beforeEach, describe, it, assert } from "vitest"; + +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 () => { + recorder = new Recorder(); + await recorder.start(recorderOptions); + }); + + afterEach(async () => { + await recorder.stop(); + }); + + it("sample test", async () => { + assert(true); + }); +}); diff --git a/sdk/resourcehealth/arm-resourcehealth/test/snippets.spec.ts b/sdk/resourcehealth/arm-resourcehealth/test/snippets.spec.ts index 47de4477acd2..2b6cb43737fb 100644 --- a/sdk/resourcehealth/arm-resourcehealth/test/snippets.spec.ts +++ b/sdk/resourcehealth/arm-resourcehealth/test/snippets.spec.ts @@ -1,5 +1,10 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. +/* + * 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 { MicrosoftResourceHealth } from "../src/index.js"; import { DefaultAzureCredential, InteractiveBrowserCredential } from "@azure/identity"; diff --git a/sdk/resourcehealth/arm-resourcehealth/tsconfig.browser.config.json b/sdk/resourcehealth/arm-resourcehealth/tsconfig.browser.config.json index 0c8bafa97126..75871518e3a0 100644 --- a/sdk/resourcehealth/arm-resourcehealth/tsconfig.browser.config.json +++ b/sdk/resourcehealth/arm-resourcehealth/tsconfig.browser.config.json @@ -1,6 +1,3 @@ { - "extends": [ - "./tsconfig.test.json", - "../../../tsconfig.browser.base.json" - ] + "extends": ["./tsconfig.test.json", "../../../tsconfig.browser.base.json"] } diff --git a/sdk/resourcehealth/arm-resourcehealth/tsconfig.json b/sdk/resourcehealth/arm-resourcehealth/tsconfig.json index 19ceb382b521..59ea83c046bf 100644 --- a/sdk/resourcehealth/arm-resourcehealth/tsconfig.json +++ b/sdk/resourcehealth/arm-resourcehealth/tsconfig.json @@ -3,11 +3,8 @@ { "path": "./tsconfig.src.json" }, - { - "path": "./tsconfig.samples.json" - }, { "path": "./tsconfig.test.json" } ] -} +} \ No newline at end of file diff --git a/sdk/resourcehealth/arm-resourcehealth/tsconfig.samples.json b/sdk/resourcehealth/arm-resourcehealth/tsconfig.samples.json index 912bd4d9b560..bea11b7345ad 100644 --- a/sdk/resourcehealth/arm-resourcehealth/tsconfig.samples.json +++ b/sdk/resourcehealth/arm-resourcehealth/tsconfig.samples.json @@ -2,9 +2,7 @@ "extends": "../../../tsconfig.samples.base.json", "compilerOptions": { "paths": { - "@azure/arm-resourcehealth": [ - "./dist/esm" - ] + "@azure/arm-resourcehealth": ["./dist/esm"] } } } diff --git a/sdk/resourcehealth/arm-resourcehealth/tsconfig.test.json b/sdk/resourcehealth/arm-resourcehealth/tsconfig.test.json index 3c2b783a8c1b..290ca214aebc 100644 --- a/sdk/resourcehealth/arm-resourcehealth/tsconfig.test.json +++ b/sdk/resourcehealth/arm-resourcehealth/tsconfig.test.json @@ -1,6 +1,3 @@ { - "extends": [ - "./tsconfig.src.json", - "../../../tsconfig.test.base.json" - ] + "extends": ["./tsconfig.src.json", "../../../tsconfig.test.base.json"] }