@azure/arm-resourcehealth 4.1.0-alpha.20250619.1 → 4.1.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/microsoftResourceHealth.js +23 -5
- package/dist/browser/microsoftResourceHealth.js.map +1 -1
- package/dist/browser/models/mappers.js +124 -59
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/availabilityStatuses.js +67 -118
- package/dist/browser/operations/availabilityStatuses.js.map +1 -1
- package/dist/browser/operations/childAvailabilityStatuses.js +23 -40
- package/dist/browser/operations/childAvailabilityStatuses.js.map +1 -1
- package/dist/browser/operations/childResources.js +23 -40
- package/dist/browser/operations/childResources.js.map +1 -1
- package/dist/browser/operations/emergingIssues.js +23 -40
- package/dist/browser/operations/emergingIssues.js.map +1 -1
- package/dist/browser/operations/eventOperations.js +1 -0
- package/dist/browser/operations/eventOperations.js.map +1 -1
- package/dist/browser/operations/eventsOperations.js +67 -118
- package/dist/browser/operations/eventsOperations.js.map +1 -1
- package/dist/browser/operations/impactedResources.js +45 -79
- package/dist/browser/operations/impactedResources.js.map +1 -1
- package/dist/browser/operations/metadata.js +23 -40
- package/dist/browser/operations/metadata.js.map +1 -1
- package/dist/browser/operations/operations.js +1 -0
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/securityAdvisoryImpactedResources.js +45 -79
- package/dist/browser/operations/securityAdvisoryImpactedResources.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/microsoftResourceHealth.js +23 -5
- package/dist/commonjs/microsoftResourceHealth.js.map +1 -1
- package/dist/commonjs/models/mappers.js +124 -59
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/availabilityStatuses.js +67 -117
- package/dist/commonjs/operations/availabilityStatuses.js.map +1 -1
- package/dist/commonjs/operations/childAvailabilityStatuses.js +23 -39
- package/dist/commonjs/operations/childAvailabilityStatuses.js.map +1 -1
- package/dist/commonjs/operations/childResources.js +23 -39
- package/dist/commonjs/operations/childResources.js.map +1 -1
- package/dist/commonjs/operations/emergingIssues.js +23 -39
- package/dist/commonjs/operations/emergingIssues.js.map +1 -1
- package/dist/commonjs/operations/eventOperations.js +1 -0
- package/dist/commonjs/operations/eventOperations.js.map +1 -1
- package/dist/commonjs/operations/eventsOperations.js +67 -117
- package/dist/commonjs/operations/eventsOperations.js.map +1 -1
- package/dist/commonjs/operations/impactedResources.js +45 -78
- package/dist/commonjs/operations/impactedResources.js.map +1 -1
- package/dist/commonjs/operations/metadata.js +23 -39
- package/dist/commonjs/operations/metadata.js.map +1 -1
- package/dist/commonjs/operations/operations.js +1 -0
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/securityAdvisoryImpactedResources.js +45 -78
- package/dist/commonjs/operations/securityAdvisoryImpactedResources.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/microsoftResourceHealth.js +23 -5
- package/dist/esm/microsoftResourceHealth.js.map +1 -1
- package/dist/esm/models/mappers.js +124 -59
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/availabilityStatuses.js +67 -118
- package/dist/esm/operations/availabilityStatuses.js.map +1 -1
- package/dist/esm/operations/childAvailabilityStatuses.js +23 -40
- package/dist/esm/operations/childAvailabilityStatuses.js.map +1 -1
- package/dist/esm/operations/childResources.js +23 -40
- package/dist/esm/operations/childResources.js.map +1 -1
- package/dist/esm/operations/emergingIssues.js +23 -40
- package/dist/esm/operations/emergingIssues.js.map +1 -1
- package/dist/esm/operations/eventOperations.js +1 -0
- package/dist/esm/operations/eventOperations.js.map +1 -1
- package/dist/esm/operations/eventsOperations.js +67 -118
- package/dist/esm/operations/eventsOperations.js.map +1 -1
- package/dist/esm/operations/impactedResources.js +45 -79
- package/dist/esm/operations/impactedResources.js.map +1 -1
- package/dist/esm/operations/metadata.js +23 -40
- package/dist/esm/operations/metadata.js.map +1 -1
- package/dist/esm/operations/operations.js +1 -0
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/securityAdvisoryImpactedResources.js +45 -79
- package/dist/esm/operations/securityAdvisoryImpactedResources.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/microsoftResourceHealth.js +23 -5
- package/dist/react-native/microsoftResourceHealth.js.map +1 -1
- package/dist/react-native/models/mappers.js +124 -59
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/availabilityStatuses.js +67 -118
- package/dist/react-native/operations/availabilityStatuses.js.map +1 -1
- package/dist/react-native/operations/childAvailabilityStatuses.js +23 -40
- package/dist/react-native/operations/childAvailabilityStatuses.js.map +1 -1
- package/dist/react-native/operations/childResources.js +23 -40
- package/dist/react-native/operations/childResources.js.map +1 -1
- package/dist/react-native/operations/emergingIssues.js +23 -40
- package/dist/react-native/operations/emergingIssues.js.map +1 -1
- package/dist/react-native/operations/eventOperations.js +1 -0
- package/dist/react-native/operations/eventOperations.js.map +1 -1
- package/dist/react-native/operations/eventsOperations.js +67 -118
- package/dist/react-native/operations/eventsOperations.js.map +1 -1
- package/dist/react-native/operations/impactedResources.js +45 -79
- package/dist/react-native/operations/impactedResources.js.map +1 -1
- package/dist/react-native/operations/metadata.js +23 -40
- package/dist/react-native/operations/metadata.js.map +1 -1
- package/dist/react-native/operations/operations.js +1 -0
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/securityAdvisoryImpactedResources.js +45 -79
- package/dist/react-native/operations/securityAdvisoryImpactedResources.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-resourcehealth.api.md → arm-resourcehealth-node.api.md} +0 -0
|
@@ -9,8 +9,10 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { AvailabilityStatusesImpl, OperationsImpl, MetadataImpl, ImpactedResourcesImpl, SecurityAdvisoryImpactedResourcesImpl, EventsOperationsImpl, EventOperationsImpl, ChildAvailabilityStatusesImpl, ChildResourcesImpl, EmergingIssuesImpl } from "./operations/index.js";
|
|
11
11
|
export class MicrosoftResourceHealth extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
12
15
|
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
13
|
-
var _a, _b, _c;
|
|
14
16
|
if (credentials === undefined) {
|
|
15
17
|
throw new Error("'credentials' cannot be null");
|
|
16
18
|
}
|
|
@@ -33,12 +35,17 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
|
|
|
33
35
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
36
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
37
|
: `${packageDetails}`;
|
|
36
|
-
const optionsWithDefaults =
|
|
38
|
+
const optionsWithDefaults = {
|
|
39
|
+
...defaults,
|
|
40
|
+
...options,
|
|
41
|
+
userAgentOptions: {
|
|
37
42
|
userAgentPrefix
|
|
38
|
-
},
|
|
43
|
+
},
|
|
44
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
45
|
+
};
|
|
39
46
|
super(optionsWithDefaults);
|
|
40
47
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
41
|
-
if (
|
|
48
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
42
49
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
43
50
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
44
51
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -52,7 +59,8 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
|
|
|
52
59
|
});
|
|
53
60
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
54
61
|
credential: credentials,
|
|
55
|
-
scopes:
|
|
62
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
63
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
56
64
|
challengeCallbacks: {
|
|
57
65
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
58
66
|
}
|
|
@@ -100,5 +108,15 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
|
|
|
100
108
|
};
|
|
101
109
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
102
110
|
}
|
|
111
|
+
availabilityStatuses;
|
|
112
|
+
operations;
|
|
113
|
+
metadata;
|
|
114
|
+
impactedResources;
|
|
115
|
+
securityAdvisoryImpactedResources;
|
|
116
|
+
eventsOperations;
|
|
117
|
+
eventOperations;
|
|
118
|
+
childAvailabilityStatuses;
|
|
119
|
+
childResources;
|
|
120
|
+
emergingIssues;
|
|
103
121
|
}
|
|
104
122
|
//# sourceMappingURL=microsoftResourceHealth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"microsoftResourceHealth.js","sourceRoot":"","sources":["../../src/microsoftResourceHealth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,qBAAqB,EACrB,qCAAqC,EACrC,oBAAoB,EACpB,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAe/B,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAoBnE,YAC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AAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAYF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AvailabilityStatusesImpl,\n OperationsImpl,\n MetadataImpl,\n ImpactedResourcesImpl,\n SecurityAdvisoryImpactedResourcesImpl,\n EventsOperationsImpl,\n EventOperationsImpl,\n ChildAvailabilityStatusesImpl,\n ChildResourcesImpl,\n EmergingIssuesImpl\n} from \"./operations/index.js\";\nimport {\n AvailabilityStatuses,\n Operations,\n Metadata,\n ImpactedResources,\n SecurityAdvisoryImpactedResources,\n EventsOperations,\n EventOperations,\n ChildAvailabilityStatuses,\n ChildResources,\n EmergingIssues\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftResourceHealthOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftResourceHealth extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MicrosoftResourceHealth class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftResourceHealthOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MicrosoftResourceHealthOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MicrosoftResourceHealthOptionalParams | string,\n options?: MicrosoftResourceHealthOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: MicrosoftResourceHealthOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-resourcehealth/4.1.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-10-01-preview\";\n this.availabilityStatuses = new AvailabilityStatusesImpl(this);\n this.operations = new OperationsImpl(this);\n this.metadata = new MetadataImpl(this);\n this.impactedResources = new ImpactedResourcesImpl(this);\n this.securityAdvisoryImpactedResources = new SecurityAdvisoryImpactedResourcesImpl(\n this\n );\n this.eventsOperations = new EventsOperationsImpl(this);\n this.eventOperations = new EventOperationsImpl(this);\n this.childAvailabilityStatuses = new ChildAvailabilityStatusesImpl(this);\n this.childResources = new ChildResourcesImpl(this);\n this.emergingIssues = new EmergingIssuesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n availabilityStatuses: AvailabilityStatuses;\n operations: Operations;\n metadata: Metadata;\n impactedResources: ImpactedResources;\n securityAdvisoryImpactedResources: SecurityAdvisoryImpactedResources;\n eventsOperations: EventsOperations;\n eventOperations: EventOperations;\n childAvailabilityStatuses: ChildAvailabilityStatuses;\n childResources: ChildResources;\n emergingIssues: EmergingIssues;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"microsoftResourceHealth.js","sourceRoot":"","sources":["../../src/microsoftResourceHealth.ts"],"names":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CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,oBAAoB,CAAuB;IAC3C,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,iBAAiB,CAAoB;IACrC,iCAAiC,CAAoC;IACrE,gBAAgB,CAAmB;IACnC,eAAe,CAAkB;IACjC,yBAAyB,CAA4B;IACrD,cAAc,CAAiB;IAC/B,cAAc,CAAiB;CAChC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AvailabilityStatusesImpl,\n OperationsImpl,\n MetadataImpl,\n ImpactedResourcesImpl,\n SecurityAdvisoryImpactedResourcesImpl,\n EventsOperationsImpl,\n EventOperationsImpl,\n ChildAvailabilityStatusesImpl,\n ChildResourcesImpl,\n EmergingIssuesImpl\n} from \"./operations/index.js\";\nimport {\n AvailabilityStatuses,\n Operations,\n Metadata,\n ImpactedResources,\n SecurityAdvisoryImpactedResources,\n EventsOperations,\n EventOperations,\n ChildAvailabilityStatuses,\n ChildResources,\n EmergingIssues\n} from \"./operationsInterfaces/index.js\";\nimport { MicrosoftResourceHealthOptionalParams } from \"./models/index.js\";\n\nexport class MicrosoftResourceHealth extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MicrosoftResourceHealth class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MicrosoftResourceHealthOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MicrosoftResourceHealthOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MicrosoftResourceHealthOptionalParams | string,\n options?: MicrosoftResourceHealthOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: MicrosoftResourceHealthOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-resourcehealth/4.1.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-10-01-preview\";\n this.availabilityStatuses = new AvailabilityStatusesImpl(this);\n this.operations = new OperationsImpl(this);\n this.metadata = new MetadataImpl(this);\n this.impactedResources = new ImpactedResourcesImpl(this);\n this.securityAdvisoryImpactedResources = new SecurityAdvisoryImpactedResourcesImpl(\n this\n );\n this.eventsOperations = new EventsOperationsImpl(this);\n this.eventOperations = new EventOperationsImpl(this);\n this.childAvailabilityStatuses = new ChildAvailabilityStatusesImpl(this);\n this.childResources = new ChildResourcesImpl(this);\n this.emergingIssues = new EmergingIssuesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n availabilityStatuses: AvailabilityStatuses;\n operations: Operations;\n metadata: Metadata;\n impactedResources: ImpactedResources;\n securityAdvisoryImpactedResources: SecurityAdvisoryImpactedResources;\n eventsOperations: EventsOperations;\n eventOperations: EventOperations;\n childAvailabilityStatuses: ChildAvailabilityStatuses;\n childResources: ChildResources;\n emergingIssues: EmergingIssues;\n}\n"]}
|
|
@@ -1145,19 +1145,24 @@ export const ProxyResource = {
|
|
|
1145
1145
|
type: {
|
|
1146
1146
|
name: "Composite",
|
|
1147
1147
|
className: "ProxyResource",
|
|
1148
|
-
modelProperties:
|
|
1148
|
+
modelProperties: {
|
|
1149
|
+
...Resource.type.modelProperties
|
|
1150
|
+
}
|
|
1149
1151
|
}
|
|
1150
1152
|
};
|
|
1151
1153
|
export const MetadataEntity = {
|
|
1152
1154
|
type: {
|
|
1153
1155
|
name: "Composite",
|
|
1154
1156
|
className: "MetadataEntity",
|
|
1155
|
-
modelProperties:
|
|
1157
|
+
modelProperties: {
|
|
1158
|
+
...ProxyResource.type.modelProperties,
|
|
1159
|
+
displayName: {
|
|
1156
1160
|
serializedName: "properties.displayName",
|
|
1157
1161
|
type: {
|
|
1158
1162
|
name: "String"
|
|
1159
1163
|
}
|
|
1160
|
-
},
|
|
1164
|
+
},
|
|
1165
|
+
dependsOn: {
|
|
1161
1166
|
serializedName: "properties.dependsOn",
|
|
1162
1167
|
type: {
|
|
1163
1168
|
name: "Sequence",
|
|
@@ -1167,7 +1172,8 @@ export const MetadataEntity = {
|
|
|
1167
1172
|
}
|
|
1168
1173
|
}
|
|
1169
1174
|
}
|
|
1170
|
-
},
|
|
1175
|
+
},
|
|
1176
|
+
applicableScenarios: {
|
|
1171
1177
|
serializedName: "properties.applicableScenarios",
|
|
1172
1178
|
type: {
|
|
1173
1179
|
name: "Sequence",
|
|
@@ -1177,7 +1183,8 @@ export const MetadataEntity = {
|
|
|
1177
1183
|
}
|
|
1178
1184
|
}
|
|
1179
1185
|
}
|
|
1180
|
-
},
|
|
1186
|
+
},
|
|
1187
|
+
supportedValues: {
|
|
1181
1188
|
serializedName: "properties.supportedValues",
|
|
1182
1189
|
type: {
|
|
1183
1190
|
name: "Sequence",
|
|
@@ -1188,62 +1195,73 @@ export const MetadataEntity = {
|
|
|
1188
1195
|
}
|
|
1189
1196
|
}
|
|
1190
1197
|
}
|
|
1191
|
-
}
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1192
1200
|
}
|
|
1193
1201
|
};
|
|
1194
1202
|
export const EventImpactedResource = {
|
|
1195
1203
|
type: {
|
|
1196
1204
|
name: "Composite",
|
|
1197
1205
|
className: "EventImpactedResource",
|
|
1198
|
-
modelProperties:
|
|
1206
|
+
modelProperties: {
|
|
1207
|
+
...ProxyResource.type.modelProperties,
|
|
1208
|
+
targetResourceType: {
|
|
1199
1209
|
serializedName: "properties.targetResourceType",
|
|
1200
1210
|
readOnly: true,
|
|
1201
1211
|
type: {
|
|
1202
1212
|
name: "String"
|
|
1203
1213
|
}
|
|
1204
|
-
},
|
|
1214
|
+
},
|
|
1215
|
+
targetResourceId: {
|
|
1205
1216
|
serializedName: "properties.targetResourceId",
|
|
1206
1217
|
readOnly: true,
|
|
1207
1218
|
type: {
|
|
1208
1219
|
name: "String"
|
|
1209
1220
|
}
|
|
1210
|
-
},
|
|
1221
|
+
},
|
|
1222
|
+
targetRegion: {
|
|
1211
1223
|
serializedName: "properties.targetRegion",
|
|
1212
1224
|
readOnly: true,
|
|
1213
1225
|
type: {
|
|
1214
1226
|
name: "String"
|
|
1215
1227
|
}
|
|
1216
|
-
},
|
|
1228
|
+
},
|
|
1229
|
+
resourceName: {
|
|
1217
1230
|
serializedName: "properties.resourceName",
|
|
1218
1231
|
readOnly: true,
|
|
1219
1232
|
type: {
|
|
1220
1233
|
name: "String"
|
|
1221
1234
|
}
|
|
1222
|
-
},
|
|
1235
|
+
},
|
|
1236
|
+
resourceGroup: {
|
|
1223
1237
|
serializedName: "properties.resourceGroup",
|
|
1224
1238
|
readOnly: true,
|
|
1225
1239
|
type: {
|
|
1226
1240
|
name: "String"
|
|
1227
1241
|
}
|
|
1228
|
-
},
|
|
1242
|
+
},
|
|
1243
|
+
status: {
|
|
1229
1244
|
serializedName: "properties.status",
|
|
1230
1245
|
readOnly: true,
|
|
1231
1246
|
type: {
|
|
1232
1247
|
name: "String"
|
|
1233
1248
|
}
|
|
1234
|
-
},
|
|
1249
|
+
},
|
|
1250
|
+
maintenanceStartTime: {
|
|
1235
1251
|
serializedName: "properties.maintenanceStartTime",
|
|
1236
1252
|
readOnly: true,
|
|
1237
1253
|
type: {
|
|
1238
1254
|
name: "String"
|
|
1239
1255
|
}
|
|
1240
|
-
},
|
|
1256
|
+
},
|
|
1257
|
+
maintenanceEndTime: {
|
|
1241
1258
|
serializedName: "properties.maintenanceEndTime",
|
|
1242
1259
|
readOnly: true,
|
|
1243
1260
|
type: {
|
|
1244
1261
|
name: "String"
|
|
1245
1262
|
}
|
|
1246
|
-
},
|
|
1263
|
+
},
|
|
1264
|
+
info: {
|
|
1247
1265
|
serializedName: "properties.info",
|
|
1248
1266
|
type: {
|
|
1249
1267
|
name: "Sequence",
|
|
@@ -1254,75 +1272,90 @@ export const EventImpactedResource = {
|
|
|
1254
1272
|
}
|
|
1255
1273
|
}
|
|
1256
1274
|
}
|
|
1257
|
-
}
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1258
1277
|
}
|
|
1259
1278
|
};
|
|
1260
1279
|
export const Event = {
|
|
1261
1280
|
type: {
|
|
1262
1281
|
name: "Composite",
|
|
1263
1282
|
className: "Event",
|
|
1264
|
-
modelProperties:
|
|
1283
|
+
modelProperties: {
|
|
1284
|
+
...ProxyResource.type.modelProperties,
|
|
1285
|
+
eventType: {
|
|
1265
1286
|
serializedName: "properties.eventType",
|
|
1266
1287
|
type: {
|
|
1267
1288
|
name: "String"
|
|
1268
1289
|
}
|
|
1269
|
-
},
|
|
1290
|
+
},
|
|
1291
|
+
eventSubType: {
|
|
1270
1292
|
serializedName: "properties.eventSubType",
|
|
1271
1293
|
type: {
|
|
1272
1294
|
name: "String"
|
|
1273
1295
|
}
|
|
1274
|
-
},
|
|
1296
|
+
},
|
|
1297
|
+
eventSource: {
|
|
1275
1298
|
serializedName: "properties.eventSource",
|
|
1276
1299
|
type: {
|
|
1277
1300
|
name: "String"
|
|
1278
1301
|
}
|
|
1279
|
-
},
|
|
1302
|
+
},
|
|
1303
|
+
status: {
|
|
1280
1304
|
serializedName: "properties.status",
|
|
1281
1305
|
type: {
|
|
1282
1306
|
name: "String"
|
|
1283
1307
|
}
|
|
1284
|
-
},
|
|
1308
|
+
},
|
|
1309
|
+
title: {
|
|
1285
1310
|
serializedName: "properties.title",
|
|
1286
1311
|
type: {
|
|
1287
1312
|
name: "String"
|
|
1288
1313
|
}
|
|
1289
|
-
},
|
|
1314
|
+
},
|
|
1315
|
+
summary: {
|
|
1290
1316
|
serializedName: "properties.summary",
|
|
1291
1317
|
type: {
|
|
1292
1318
|
name: "String"
|
|
1293
1319
|
}
|
|
1294
|
-
},
|
|
1320
|
+
},
|
|
1321
|
+
header: {
|
|
1295
1322
|
serializedName: "properties.header",
|
|
1296
1323
|
type: {
|
|
1297
1324
|
name: "String"
|
|
1298
1325
|
}
|
|
1299
|
-
},
|
|
1326
|
+
},
|
|
1327
|
+
level: {
|
|
1300
1328
|
serializedName: "properties.level",
|
|
1301
1329
|
type: {
|
|
1302
1330
|
name: "String"
|
|
1303
1331
|
}
|
|
1304
|
-
},
|
|
1332
|
+
},
|
|
1333
|
+
eventLevel: {
|
|
1305
1334
|
serializedName: "properties.eventLevel",
|
|
1306
1335
|
type: {
|
|
1307
1336
|
name: "String"
|
|
1308
1337
|
}
|
|
1309
|
-
},
|
|
1338
|
+
},
|
|
1339
|
+
externalIncidentId: {
|
|
1310
1340
|
serializedName: "properties.externalIncidentId",
|
|
1311
1341
|
type: {
|
|
1312
1342
|
name: "String"
|
|
1313
1343
|
}
|
|
1314
|
-
},
|
|
1344
|
+
},
|
|
1345
|
+
reason: {
|
|
1315
1346
|
serializedName: "properties.reason",
|
|
1316
1347
|
type: {
|
|
1317
1348
|
name: "String"
|
|
1318
1349
|
}
|
|
1319
|
-
},
|
|
1350
|
+
},
|
|
1351
|
+
article: {
|
|
1320
1352
|
serializedName: "properties.article",
|
|
1321
1353
|
type: {
|
|
1322
1354
|
name: "Composite",
|
|
1323
1355
|
className: "EventPropertiesArticle"
|
|
1324
1356
|
}
|
|
1325
|
-
},
|
|
1357
|
+
},
|
|
1358
|
+
links: {
|
|
1326
1359
|
serializedName: "properties.links",
|
|
1327
1360
|
type: {
|
|
1328
1361
|
name: "Sequence",
|
|
@@ -1333,17 +1366,20 @@ export const Event = {
|
|
|
1333
1366
|
}
|
|
1334
1367
|
}
|
|
1335
1368
|
}
|
|
1336
|
-
},
|
|
1369
|
+
},
|
|
1370
|
+
impactStartTime: {
|
|
1337
1371
|
serializedName: "properties.impactStartTime",
|
|
1338
1372
|
type: {
|
|
1339
1373
|
name: "DateTime"
|
|
1340
1374
|
}
|
|
1341
|
-
},
|
|
1375
|
+
},
|
|
1376
|
+
impactMitigationTime: {
|
|
1342
1377
|
serializedName: "properties.impactMitigationTime",
|
|
1343
1378
|
type: {
|
|
1344
1379
|
name: "DateTime"
|
|
1345
1380
|
}
|
|
1346
|
-
},
|
|
1381
|
+
},
|
|
1382
|
+
impact: {
|
|
1347
1383
|
serializedName: "properties.impact",
|
|
1348
1384
|
type: {
|
|
1349
1385
|
name: "Sequence",
|
|
@@ -1354,13 +1390,15 @@ export const Event = {
|
|
|
1354
1390
|
}
|
|
1355
1391
|
}
|
|
1356
1392
|
}
|
|
1357
|
-
},
|
|
1393
|
+
},
|
|
1394
|
+
recommendedActions: {
|
|
1358
1395
|
serializedName: "properties.recommendedActions",
|
|
1359
1396
|
type: {
|
|
1360
1397
|
name: "Composite",
|
|
1361
1398
|
className: "EventPropertiesRecommendedActions"
|
|
1362
1399
|
}
|
|
1363
|
-
},
|
|
1400
|
+
},
|
|
1401
|
+
faqs: {
|
|
1364
1402
|
serializedName: "properties.faqs",
|
|
1365
1403
|
type: {
|
|
1366
1404
|
name: "Sequence",
|
|
@@ -1371,90 +1409,108 @@ export const Event = {
|
|
|
1371
1409
|
}
|
|
1372
1410
|
}
|
|
1373
1411
|
}
|
|
1374
|
-
},
|
|
1412
|
+
},
|
|
1413
|
+
isHIR: {
|
|
1375
1414
|
serializedName: "properties.isHIR",
|
|
1376
1415
|
type: {
|
|
1377
1416
|
name: "Boolean"
|
|
1378
1417
|
}
|
|
1379
|
-
},
|
|
1418
|
+
},
|
|
1419
|
+
enableMicrosoftSupport: {
|
|
1380
1420
|
serializedName: "properties.enableMicrosoftSupport",
|
|
1381
1421
|
type: {
|
|
1382
1422
|
name: "Boolean"
|
|
1383
1423
|
}
|
|
1384
|
-
},
|
|
1424
|
+
},
|
|
1425
|
+
description: {
|
|
1385
1426
|
serializedName: "properties.description",
|
|
1386
1427
|
type: {
|
|
1387
1428
|
name: "String"
|
|
1388
1429
|
}
|
|
1389
|
-
},
|
|
1430
|
+
},
|
|
1431
|
+
platformInitiated: {
|
|
1390
1432
|
serializedName: "properties.platformInitiated",
|
|
1391
1433
|
type: {
|
|
1392
1434
|
name: "Boolean"
|
|
1393
1435
|
}
|
|
1394
|
-
},
|
|
1436
|
+
},
|
|
1437
|
+
enableChatWithUs: {
|
|
1395
1438
|
serializedName: "properties.enableChatWithUs",
|
|
1396
1439
|
type: {
|
|
1397
1440
|
name: "Boolean"
|
|
1398
1441
|
}
|
|
1399
|
-
},
|
|
1442
|
+
},
|
|
1443
|
+
priority: {
|
|
1400
1444
|
serializedName: "properties.priority",
|
|
1401
1445
|
type: {
|
|
1402
1446
|
name: "Number"
|
|
1403
1447
|
}
|
|
1404
|
-
},
|
|
1448
|
+
},
|
|
1449
|
+
lastUpdateTime: {
|
|
1405
1450
|
serializedName: "properties.lastUpdateTime",
|
|
1406
1451
|
type: {
|
|
1407
1452
|
name: "DateTime"
|
|
1408
1453
|
}
|
|
1409
|
-
},
|
|
1454
|
+
},
|
|
1455
|
+
hirStage: {
|
|
1410
1456
|
serializedName: "properties.hirStage",
|
|
1411
1457
|
type: {
|
|
1412
1458
|
name: "String"
|
|
1413
1459
|
}
|
|
1414
|
-
},
|
|
1460
|
+
},
|
|
1461
|
+
additionalInformation: {
|
|
1415
1462
|
serializedName: "properties.additionalInformation",
|
|
1416
1463
|
type: {
|
|
1417
1464
|
name: "Composite",
|
|
1418
1465
|
className: "EventPropertiesAdditionalInformation"
|
|
1419
1466
|
}
|
|
1420
|
-
},
|
|
1467
|
+
},
|
|
1468
|
+
duration: {
|
|
1421
1469
|
serializedName: "properties.duration",
|
|
1422
1470
|
type: {
|
|
1423
1471
|
name: "Number"
|
|
1424
1472
|
}
|
|
1425
|
-
},
|
|
1473
|
+
},
|
|
1474
|
+
impactType: {
|
|
1426
1475
|
serializedName: "properties.impactType",
|
|
1427
1476
|
type: {
|
|
1428
1477
|
name: "String"
|
|
1429
1478
|
}
|
|
1430
|
-
},
|
|
1479
|
+
},
|
|
1480
|
+
maintenanceId: {
|
|
1431
1481
|
serializedName: "properties.maintenanceId",
|
|
1432
1482
|
type: {
|
|
1433
1483
|
name: "String"
|
|
1434
1484
|
}
|
|
1435
|
-
},
|
|
1485
|
+
},
|
|
1486
|
+
maintenanceType: {
|
|
1436
1487
|
serializedName: "properties.maintenanceType",
|
|
1437
1488
|
type: {
|
|
1438
1489
|
name: "String"
|
|
1439
1490
|
}
|
|
1440
|
-
},
|
|
1491
|
+
},
|
|
1492
|
+
argQuery: {
|
|
1441
1493
|
serializedName: "properties.argQuery",
|
|
1442
1494
|
type: {
|
|
1443
1495
|
name: "String"
|
|
1444
1496
|
}
|
|
1445
|
-
}
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1446
1499
|
}
|
|
1447
1500
|
};
|
|
1448
1501
|
export const EmergingIssuesGetResult = {
|
|
1449
1502
|
type: {
|
|
1450
1503
|
name: "Composite",
|
|
1451
1504
|
className: "EmergingIssuesGetResult",
|
|
1452
|
-
modelProperties:
|
|
1505
|
+
modelProperties: {
|
|
1506
|
+
...ProxyResource.type.modelProperties,
|
|
1507
|
+
refreshTimestamp: {
|
|
1453
1508
|
serializedName: "properties.refreshTimestamp",
|
|
1454
1509
|
type: {
|
|
1455
1510
|
name: "DateTime"
|
|
1456
1511
|
}
|
|
1457
|
-
},
|
|
1512
|
+
},
|
|
1513
|
+
statusBanners: {
|
|
1458
1514
|
serializedName: "properties.statusBanners",
|
|
1459
1515
|
type: {
|
|
1460
1516
|
name: "Sequence",
|
|
@@ -1465,7 +1521,8 @@ export const EmergingIssuesGetResult = {
|
|
|
1465
1521
|
}
|
|
1466
1522
|
}
|
|
1467
1523
|
}
|
|
1468
|
-
},
|
|
1524
|
+
},
|
|
1525
|
+
statusActiveEvents: {
|
|
1469
1526
|
serializedName: "properties.statusActiveEvents",
|
|
1470
1527
|
type: {
|
|
1471
1528
|
name: "Sequence",
|
|
@@ -1476,39 +1533,47 @@ export const EmergingIssuesGetResult = {
|
|
|
1476
1533
|
}
|
|
1477
1534
|
}
|
|
1478
1535
|
}
|
|
1479
|
-
}
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1480
1538
|
}
|
|
1481
1539
|
};
|
|
1482
1540
|
export const ImpactedResourceStatus = {
|
|
1483
1541
|
type: {
|
|
1484
1542
|
name: "Composite",
|
|
1485
1543
|
className: "ImpactedResourceStatus",
|
|
1486
|
-
modelProperties:
|
|
1544
|
+
modelProperties: {
|
|
1545
|
+
...ProxyResource.type.modelProperties,
|
|
1546
|
+
availabilityState: {
|
|
1487
1547
|
serializedName: "properties.availabilityState",
|
|
1488
1548
|
type: {
|
|
1489
1549
|
name: "String"
|
|
1490
1550
|
}
|
|
1491
|
-
},
|
|
1551
|
+
},
|
|
1552
|
+
title: {
|
|
1492
1553
|
serializedName: "properties.title",
|
|
1493
1554
|
type: {
|
|
1494
1555
|
name: "String"
|
|
1495
1556
|
}
|
|
1496
|
-
},
|
|
1557
|
+
},
|
|
1558
|
+
summary: {
|
|
1497
1559
|
serializedName: "properties.summary",
|
|
1498
1560
|
type: {
|
|
1499
1561
|
name: "String"
|
|
1500
1562
|
}
|
|
1501
|
-
},
|
|
1563
|
+
},
|
|
1564
|
+
reasonType: {
|
|
1502
1565
|
serializedName: "properties.reasonType",
|
|
1503
1566
|
type: {
|
|
1504
1567
|
name: "String"
|
|
1505
1568
|
}
|
|
1506
|
-
},
|
|
1569
|
+
},
|
|
1570
|
+
occurredTime: {
|
|
1507
1571
|
serializedName: "properties.occurredTime",
|
|
1508
1572
|
type: {
|
|
1509
1573
|
name: "DateTime"
|
|
1510
1574
|
}
|
|
1511
|
-
}
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1512
1577
|
}
|
|
1513
1578
|
};
|
|
1514
1579
|
//# sourceMappingURL=mappers.js.map
|