@azure/arm-monitor 8.0.0-alpha.20250829.1 → 8.0.0-alpha.20251007.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/CHANGELOG.md +7 -1
- package/dist/browser/monitorClient.js +1 -1
- package/dist/browser/monitorClient.js.map +1 -1
- package/dist/commonjs/monitorClient.js +1 -1
- package/dist/commonjs/monitorClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/monitorClient.js +1 -1
- package/dist/esm/monitorClient.js.map +1 -1
- package/dist/react-native/monitorClient.js +1 -1
- package/dist/react-native/monitorClient.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 8.0.0-beta.
|
|
3
|
+
## 8.0.0-beta.7 (Unreleased)
|
|
4
4
|
|
|
5
5
|
### Features Added
|
|
6
6
|
|
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### Other Changes
|
|
12
12
|
|
|
13
|
+
## 8.0.0-beta.6 (2025-08-22)
|
|
14
|
+
|
|
15
|
+
### Other Changes
|
|
16
|
+
|
|
17
|
+
- Other fixes
|
|
18
|
+
|
|
13
19
|
## 8.0.0-beta.5 (2024-03-28)
|
|
14
20
|
|
|
15
21
|
### Features Added
|
|
@@ -34,7 +34,7 @@ export class MonitorClient extends coreClient.ServiceClient {
|
|
|
34
34
|
requestContentType: "application/json; charset=utf-8",
|
|
35
35
|
credential: credentials,
|
|
36
36
|
};
|
|
37
|
-
const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.
|
|
37
|
+
const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.7`;
|
|
38
38
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
39
39
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
40
40
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitorClient.js","sourceRoot":"","sources":["../../src/monitorClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,8BAA8B,EAC9B,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,mCAAmC,EACnC,wBAAwB,EACxB,8BAA8B,EAC9B,8BAA8B,EAC9B,qBAAqB,EACrB,2BAA2B,EAC3B,kCAAkC,EAClC,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAmC/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAU/C,MAAM,OAAO,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,CAAS;IACd,cAAc,CAAU;IAiBxB,YACE,WAAqC,EACrC,uBAA8D,EAC9D,OAAqC;QAErC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,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CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,iBAAiB;KAC7B;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACJ,MAAM,iEAAiE,GACrE;IACE,IAAI,EAAE,kLAAkL;IACxL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4CAA4C;SACjE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACnE,UAAU;CACX,CAAC","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"./lroImpl.js\";\nimport {\n MetricNamespacesImpl,\n MetricDefinitionsImpl,\n MetricsOperationsImpl,\n AzureMonitorWorkspacesImpl,\n MonitorOperationsImpl,\n AutoscaleSettingsImpl,\n PredictiveMetricImpl,\n OperationsImpl,\n AlertRuleIncidentsImpl,\n AlertRulesImpl,\n LogProfilesImpl,\n DiagnosticSettingsImpl,\n DiagnosticSettingsCategoryImpl,\n ActionGroupsImpl,\n TenantActionGroupsImpl,\n ActivityLogsImpl,\n EventCategoriesImpl,\n TenantActivityLogsImpl,\n BaselinesImpl,\n MetricAlertsImpl,\n MetricAlertsStatusImpl,\n ScheduledQueryRulesImpl,\n VMInsightsImpl,\n PrivateLinkScopesImpl,\n PrivateLinkScopeOperationStatusImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkScopedResourcesImpl,\n ActivityLogAlertsImpl,\n DataCollectionEndpointsImpl,\n DataCollectionRuleAssociationsImpl,\n DataCollectionRulesImpl,\n} from \"./operations/index.js\";\nimport {\n MetricNamespaces,\n MetricDefinitions,\n MetricsOperations,\n AzureMonitorWorkspaces,\n MonitorOperations,\n AutoscaleSettings,\n PredictiveMetric,\n Operations,\n AlertRuleIncidents,\n AlertRules,\n LogProfiles,\n DiagnosticSettings,\n DiagnosticSettingsCategory,\n ActionGroups,\n TenantActionGroups,\n ActivityLogs,\n EventCategories,\n TenantActivityLogs,\n Baselines,\n MetricAlerts,\n MetricAlertsStatus,\n ScheduledQueryRules,\n VMInsights,\n PrivateLinkScopes,\n PrivateLinkScopeOperationStatus,\n PrivateLinkResources,\n PrivateEndpointConnections,\n PrivateLinkScopedResources,\n ActivityLogAlerts,\n DataCollectionEndpoints,\n DataCollectionRuleAssociations,\n DataCollectionRules,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n MonitorClientOptionalParams,\n TenantNotificationRequestBody,\n CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n GetTestNotificationsAtTenantActionGroupResourceLevelResponse,\n} from \"./models/index.js\";\n\nexport class MonitorClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MonitorClient 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?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MonitorClientOptionalParams | string,\n options?: MonitorClientOptionalParams,\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: MonitorClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.6`;\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[] =\n 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.metricNamespaces = new MetricNamespacesImpl(this);\n this.metricDefinitions = new MetricDefinitionsImpl(this);\n this.metricsOperations = new MetricsOperationsImpl(this);\n this.azureMonitorWorkspaces = new AzureMonitorWorkspacesImpl(this);\n this.monitorOperations = new MonitorOperationsImpl(this);\n this.autoscaleSettings = new AutoscaleSettingsImpl(this);\n this.predictiveMetric = new PredictiveMetricImpl(this);\n this.operations = new OperationsImpl(this);\n this.alertRuleIncidents = new AlertRuleIncidentsImpl(this);\n this.alertRules = new AlertRulesImpl(this);\n this.logProfiles = new LogProfilesImpl(this);\n this.diagnosticSettings = new DiagnosticSettingsImpl(this);\n this.diagnosticSettingsCategory = new DiagnosticSettingsCategoryImpl(this);\n this.actionGroups = new ActionGroupsImpl(this);\n this.tenantActionGroups = new TenantActionGroupsImpl(this);\n this.activityLogs = new ActivityLogsImpl(this);\n this.eventCategories = new EventCategoriesImpl(this);\n this.tenantActivityLogs = new TenantActivityLogsImpl(this);\n this.baselines = new BaselinesImpl(this);\n this.metricAlerts = new MetricAlertsImpl(this);\n this.metricAlertsStatus = new MetricAlertsStatusImpl(this);\n this.scheduledQueryRules = new ScheduledQueryRulesImpl(this);\n this.vMInsights = new VMInsightsImpl(this);\n this.privateLinkScopes = new PrivateLinkScopesImpl(this);\n this.privateLinkScopeOperationStatus =\n new PrivateLinkScopeOperationStatusImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkScopedResources = new PrivateLinkScopedResourcesImpl(this);\n this.activityLogAlerts = new ActivityLogAlertsImpl(this);\n this.dataCollectionEndpoints = new DataCollectionEndpointsImpl(this);\n this.dataCollectionRuleAssociations =\n new DataCollectionRuleAssociationsImpl(this);\n this.dataCollectionRules = new DataCollectionRulesImpl(this);\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> => {\n return this.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n },\n spec: createNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n });\n const poller = await createHttpPoller<\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> {\n const poller =\n await this.beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the test notifications by the notification id\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationId The notification id\n * @param options The options parameters.\n */\n getTestNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationId: string,\n options?: GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<GetTestNotificationsAtTenantActionGroupResourceLevelResponse> {\n return this.sendOperationRequest(\n {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationId,\n options,\n },\n getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n );\n }\n\n metricNamespaces: MetricNamespaces;\n metricDefinitions: MetricDefinitions;\n metricsOperations: MetricsOperations;\n azureMonitorWorkspaces: AzureMonitorWorkspaces;\n monitorOperations: MonitorOperations;\n autoscaleSettings: AutoscaleSettings;\n predictiveMetric: PredictiveMetric;\n operations: Operations;\n alertRuleIncidents: AlertRuleIncidents;\n alertRules: AlertRules;\n logProfiles: LogProfiles;\n diagnosticSettings: DiagnosticSettings;\n diagnosticSettingsCategory: DiagnosticSettingsCategory;\n actionGroups: ActionGroups;\n tenantActionGroups: TenantActionGroups;\n activityLogs: ActivityLogs;\n eventCategories: EventCategories;\n tenantActivityLogs: TenantActivityLogs;\n baselines: Baselines;\n metricAlerts: MetricAlerts;\n metricAlertsStatus: MetricAlertsStatus;\n scheduledQueryRules: ScheduledQueryRules;\n vMInsights: VMInsights;\n privateLinkScopes: PrivateLinkScopes;\n privateLinkScopeOperationStatus: PrivateLinkScopeOperationStatus;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkScopedResources: PrivateLinkScopedResources;\n activityLogAlerts: ActivityLogAlerts;\n dataCollectionEndpoints: DataCollectionEndpoints;\n dataCollectionRuleAssociations: DataCollectionRuleAssociations;\n dataCollectionRules: DataCollectionRules;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/createNotifications\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 201: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 202: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 204: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated3,\n },\n },\n requestBody: Parameters.notificationRequest1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsClientTenantId,\n ],\n mediaType: \"json\",\n serializer,\n };\nconst getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/notificationStatus/{notificationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.notificationId,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.xMsClientTenantId],\n serializer,\n };\n"]}
|
|
1
|
+
{"version":3,"file":"monitorClient.js","sourceRoot":"","sources":["../../src/monitorClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,8BAA8B,E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AC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACnE,UAAU;CACX,CAAC","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"./lroImpl.js\";\nimport {\n MetricNamespacesImpl,\n MetricDefinitionsImpl,\n MetricsOperationsImpl,\n AzureMonitorWorkspacesImpl,\n MonitorOperationsImpl,\n AutoscaleSettingsImpl,\n PredictiveMetricImpl,\n OperationsImpl,\n AlertRuleIncidentsImpl,\n AlertRulesImpl,\n LogProfilesImpl,\n DiagnosticSettingsImpl,\n DiagnosticSettingsCategoryImpl,\n ActionGroupsImpl,\n TenantActionGroupsImpl,\n ActivityLogsImpl,\n EventCategoriesImpl,\n TenantActivityLogsImpl,\n BaselinesImpl,\n MetricAlertsImpl,\n MetricAlertsStatusImpl,\n ScheduledQueryRulesImpl,\n VMInsightsImpl,\n PrivateLinkScopesImpl,\n PrivateLinkScopeOperationStatusImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkScopedResourcesImpl,\n ActivityLogAlertsImpl,\n DataCollectionEndpointsImpl,\n DataCollectionRuleAssociationsImpl,\n DataCollectionRulesImpl,\n} from \"./operations/index.js\";\nimport {\n MetricNamespaces,\n MetricDefinitions,\n MetricsOperations,\n AzureMonitorWorkspaces,\n MonitorOperations,\n AutoscaleSettings,\n PredictiveMetric,\n Operations,\n AlertRuleIncidents,\n AlertRules,\n LogProfiles,\n DiagnosticSettings,\n DiagnosticSettingsCategory,\n ActionGroups,\n TenantActionGroups,\n ActivityLogs,\n EventCategories,\n TenantActivityLogs,\n Baselines,\n MetricAlerts,\n MetricAlertsStatus,\n ScheduledQueryRules,\n VMInsights,\n PrivateLinkScopes,\n PrivateLinkScopeOperationStatus,\n PrivateLinkResources,\n PrivateEndpointConnections,\n PrivateLinkScopedResources,\n ActivityLogAlerts,\n DataCollectionEndpoints,\n DataCollectionRuleAssociations,\n DataCollectionRules,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n MonitorClientOptionalParams,\n TenantNotificationRequestBody,\n CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n GetTestNotificationsAtTenantActionGroupResourceLevelResponse,\n} from \"./models/index.js\";\n\nexport class MonitorClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MonitorClient 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?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MonitorClientOptionalParams | string,\n options?: MonitorClientOptionalParams,\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: MonitorClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.7`;\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[] =\n 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.metricNamespaces = new MetricNamespacesImpl(this);\n this.metricDefinitions = new MetricDefinitionsImpl(this);\n this.metricsOperations = new MetricsOperationsImpl(this);\n this.azureMonitorWorkspaces = new AzureMonitorWorkspacesImpl(this);\n this.monitorOperations = new MonitorOperationsImpl(this);\n this.autoscaleSettings = new AutoscaleSettingsImpl(this);\n this.predictiveMetric = new PredictiveMetricImpl(this);\n this.operations = new OperationsImpl(this);\n this.alertRuleIncidents = new AlertRuleIncidentsImpl(this);\n this.alertRules = new AlertRulesImpl(this);\n this.logProfiles = new LogProfilesImpl(this);\n this.diagnosticSettings = new DiagnosticSettingsImpl(this);\n this.diagnosticSettingsCategory = new DiagnosticSettingsCategoryImpl(this);\n this.actionGroups = new ActionGroupsImpl(this);\n this.tenantActionGroups = new TenantActionGroupsImpl(this);\n this.activityLogs = new ActivityLogsImpl(this);\n this.eventCategories = new EventCategoriesImpl(this);\n this.tenantActivityLogs = new TenantActivityLogsImpl(this);\n this.baselines = new BaselinesImpl(this);\n this.metricAlerts = new MetricAlertsImpl(this);\n this.metricAlertsStatus = new MetricAlertsStatusImpl(this);\n this.scheduledQueryRules = new ScheduledQueryRulesImpl(this);\n this.vMInsights = new VMInsightsImpl(this);\n this.privateLinkScopes = new PrivateLinkScopesImpl(this);\n this.privateLinkScopeOperationStatus =\n new PrivateLinkScopeOperationStatusImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkScopedResources = new PrivateLinkScopedResourcesImpl(this);\n this.activityLogAlerts = new ActivityLogAlertsImpl(this);\n this.dataCollectionEndpoints = new DataCollectionEndpointsImpl(this);\n this.dataCollectionRuleAssociations =\n new DataCollectionRuleAssociationsImpl(this);\n this.dataCollectionRules = new DataCollectionRulesImpl(this);\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> => {\n return this.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n },\n spec: createNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n });\n const poller = await createHttpPoller<\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> {\n const poller =\n await this.beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the test notifications by the notification id\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationId The notification id\n * @param options The options parameters.\n */\n getTestNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationId: string,\n options?: GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<GetTestNotificationsAtTenantActionGroupResourceLevelResponse> {\n return this.sendOperationRequest(\n {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationId,\n options,\n },\n getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n );\n }\n\n metricNamespaces: MetricNamespaces;\n metricDefinitions: MetricDefinitions;\n metricsOperations: MetricsOperations;\n azureMonitorWorkspaces: AzureMonitorWorkspaces;\n monitorOperations: MonitorOperations;\n autoscaleSettings: AutoscaleSettings;\n predictiveMetric: PredictiveMetric;\n operations: Operations;\n alertRuleIncidents: AlertRuleIncidents;\n alertRules: AlertRules;\n logProfiles: LogProfiles;\n diagnosticSettings: DiagnosticSettings;\n diagnosticSettingsCategory: DiagnosticSettingsCategory;\n actionGroups: ActionGroups;\n tenantActionGroups: TenantActionGroups;\n activityLogs: ActivityLogs;\n eventCategories: EventCategories;\n tenantActivityLogs: TenantActivityLogs;\n baselines: Baselines;\n metricAlerts: MetricAlerts;\n metricAlertsStatus: MetricAlertsStatus;\n scheduledQueryRules: ScheduledQueryRules;\n vMInsights: VMInsights;\n privateLinkScopes: PrivateLinkScopes;\n privateLinkScopeOperationStatus: PrivateLinkScopeOperationStatus;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkScopedResources: PrivateLinkScopedResources;\n activityLogAlerts: ActivityLogAlerts;\n dataCollectionEndpoints: DataCollectionEndpoints;\n dataCollectionRuleAssociations: DataCollectionRuleAssociations;\n dataCollectionRules: DataCollectionRules;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/createNotifications\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 201: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 202: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 204: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated3,\n },\n },\n requestBody: Parameters.notificationRequest1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsClientTenantId,\n ],\n mediaType: \"json\",\n serializer,\n };\nconst getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/notificationStatus/{notificationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.notificationId,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.xMsClientTenantId],\n serializer,\n };\n"]}
|
|
@@ -38,7 +38,7 @@ class MonitorClient extends coreClient.ServiceClient {
|
|
|
38
38
|
requestContentType: "application/json; charset=utf-8",
|
|
39
39
|
credential: credentials,
|
|
40
40
|
};
|
|
41
|
-
const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.
|
|
41
|
+
const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.7`;
|
|
42
42
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
43
43
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
44
44
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitorClient.js","sourceRoot":"","sources":["../../src/monitorClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,8CAIyB;AACzB,6CAA6C;AAC7C,oDAiC+B;AAmC/B,2EAAqD;AACrD,qEAA+C;AAU/C,MAAa,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,CAAS;IACd,cAAc,CAAU;IAiBxB,YACE,WAAqC,EACrC,uBAA8D,EAC9D,OAAqC;QAErC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAA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EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,iBAAiB;KAC7B;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACJ,MAAM,iEAAiE,GACrE;IACE,IAAI,EAAE,kLAAkL;IACxL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4CAA4C;SACjE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACnE,UAAU;CACX,CAAC","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"./lroImpl.js\";\nimport {\n MetricNamespacesImpl,\n MetricDefinitionsImpl,\n MetricsOperationsImpl,\n AzureMonitorWorkspacesImpl,\n MonitorOperationsImpl,\n AutoscaleSettingsImpl,\n PredictiveMetricImpl,\n OperationsImpl,\n AlertRuleIncidentsImpl,\n AlertRulesImpl,\n LogProfilesImpl,\n DiagnosticSettingsImpl,\n DiagnosticSettingsCategoryImpl,\n ActionGroupsImpl,\n TenantActionGroupsImpl,\n ActivityLogsImpl,\n EventCategoriesImpl,\n TenantActivityLogsImpl,\n BaselinesImpl,\n MetricAlertsImpl,\n MetricAlertsStatusImpl,\n ScheduledQueryRulesImpl,\n VMInsightsImpl,\n PrivateLinkScopesImpl,\n PrivateLinkScopeOperationStatusImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkScopedResourcesImpl,\n ActivityLogAlertsImpl,\n DataCollectionEndpointsImpl,\n DataCollectionRuleAssociationsImpl,\n DataCollectionRulesImpl,\n} from \"./operations/index.js\";\nimport {\n MetricNamespaces,\n MetricDefinitions,\n MetricsOperations,\n AzureMonitorWorkspaces,\n MonitorOperations,\n AutoscaleSettings,\n PredictiveMetric,\n Operations,\n AlertRuleIncidents,\n AlertRules,\n LogProfiles,\n DiagnosticSettings,\n DiagnosticSettingsCategory,\n ActionGroups,\n TenantActionGroups,\n ActivityLogs,\n EventCategories,\n TenantActivityLogs,\n Baselines,\n MetricAlerts,\n MetricAlertsStatus,\n ScheduledQueryRules,\n VMInsights,\n PrivateLinkScopes,\n PrivateLinkScopeOperationStatus,\n PrivateLinkResources,\n PrivateEndpointConnections,\n PrivateLinkScopedResources,\n ActivityLogAlerts,\n DataCollectionEndpoints,\n DataCollectionRuleAssociations,\n DataCollectionRules,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n MonitorClientOptionalParams,\n TenantNotificationRequestBody,\n CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n GetTestNotificationsAtTenantActionGroupResourceLevelResponse,\n} from \"./models/index.js\";\n\nexport class MonitorClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MonitorClient 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?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MonitorClientOptionalParams | string,\n options?: MonitorClientOptionalParams,\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: MonitorClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.6`;\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[] =\n 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.metricNamespaces = new MetricNamespacesImpl(this);\n this.metricDefinitions = new MetricDefinitionsImpl(this);\n this.metricsOperations = new MetricsOperationsImpl(this);\n this.azureMonitorWorkspaces = new AzureMonitorWorkspacesImpl(this);\n this.monitorOperations = new MonitorOperationsImpl(this);\n this.autoscaleSettings = new AutoscaleSettingsImpl(this);\n this.predictiveMetric = new PredictiveMetricImpl(this);\n this.operations = new OperationsImpl(this);\n this.alertRuleIncidents = new AlertRuleIncidentsImpl(this);\n this.alertRules = new AlertRulesImpl(this);\n this.logProfiles = new LogProfilesImpl(this);\n this.diagnosticSettings = new DiagnosticSettingsImpl(this);\n this.diagnosticSettingsCategory = new DiagnosticSettingsCategoryImpl(this);\n this.actionGroups = new ActionGroupsImpl(this);\n this.tenantActionGroups = new TenantActionGroupsImpl(this);\n this.activityLogs = new ActivityLogsImpl(this);\n this.eventCategories = new EventCategoriesImpl(this);\n this.tenantActivityLogs = new TenantActivityLogsImpl(this);\n this.baselines = new BaselinesImpl(this);\n this.metricAlerts = new MetricAlertsImpl(this);\n this.metricAlertsStatus = new MetricAlertsStatusImpl(this);\n this.scheduledQueryRules = new ScheduledQueryRulesImpl(this);\n this.vMInsights = new VMInsightsImpl(this);\n this.privateLinkScopes = new PrivateLinkScopesImpl(this);\n this.privateLinkScopeOperationStatus =\n new PrivateLinkScopeOperationStatusImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkScopedResources = new PrivateLinkScopedResourcesImpl(this);\n this.activityLogAlerts = new ActivityLogAlertsImpl(this);\n this.dataCollectionEndpoints = new DataCollectionEndpointsImpl(this);\n this.dataCollectionRuleAssociations =\n new DataCollectionRuleAssociationsImpl(this);\n this.dataCollectionRules = new DataCollectionRulesImpl(this);\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> => {\n return this.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n },\n spec: createNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n });\n const poller = await createHttpPoller<\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> {\n const poller =\n await this.beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the test notifications by the notification id\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationId The notification id\n * @param options The options parameters.\n */\n getTestNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationId: string,\n options?: GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<GetTestNotificationsAtTenantActionGroupResourceLevelResponse> {\n return this.sendOperationRequest(\n {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationId,\n options,\n },\n getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n );\n }\n\n metricNamespaces: MetricNamespaces;\n metricDefinitions: MetricDefinitions;\n metricsOperations: MetricsOperations;\n azureMonitorWorkspaces: AzureMonitorWorkspaces;\n monitorOperations: MonitorOperations;\n autoscaleSettings: AutoscaleSettings;\n predictiveMetric: PredictiveMetric;\n operations: Operations;\n alertRuleIncidents: AlertRuleIncidents;\n alertRules: AlertRules;\n logProfiles: LogProfiles;\n diagnosticSettings: DiagnosticSettings;\n diagnosticSettingsCategory: DiagnosticSettingsCategory;\n actionGroups: ActionGroups;\n tenantActionGroups: TenantActionGroups;\n activityLogs: ActivityLogs;\n eventCategories: EventCategories;\n tenantActivityLogs: TenantActivityLogs;\n baselines: Baselines;\n metricAlerts: MetricAlerts;\n metricAlertsStatus: MetricAlertsStatus;\n scheduledQueryRules: ScheduledQueryRules;\n vMInsights: VMInsights;\n privateLinkScopes: PrivateLinkScopes;\n privateLinkScopeOperationStatus: PrivateLinkScopeOperationStatus;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkScopedResources: PrivateLinkScopedResources;\n activityLogAlerts: ActivityLogAlerts;\n dataCollectionEndpoints: DataCollectionEndpoints;\n dataCollectionRuleAssociations: DataCollectionRuleAssociations;\n dataCollectionRules: DataCollectionRules;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/createNotifications\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 201: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 202: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 204: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated3,\n },\n },\n requestBody: Parameters.notificationRequest1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsClientTenantId,\n ],\n mediaType: \"json\",\n serializer,\n };\nconst getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/notificationStatus/{notificationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.notificationId,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.xMsClientTenantId],\n serializer,\n };\n"]}
|
|
1
|
+
{"version":3,"file":"monitorClient.js","sourceRoot":"","sources":["../../src/monitorClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,8CAIyB;AACzB,6CAA6C;AAC7C,oDAiC+B;AAmC/B,2EAAqD;AACrD,qEAA+C;AAU/C,MAAa,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,CAAS;IACd,cAAc,CAAU;IAiBxB,YACE,WAAqC,EACrC,uBAA8D,EAC9D,OAAqC;QAErC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD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E,UAAU,CAAC,oBAAoB;IAC5C,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,iBAAiB;KAC7B;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACJ,MAAM,iEAAiE,GACrE;IACE,IAAI,EAAE,kLAAkL;IACxL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4CAA4C;SACjE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACnE,UAAU;CACX,CAAC","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"./lroImpl.js\";\nimport {\n MetricNamespacesImpl,\n MetricDefinitionsImpl,\n MetricsOperationsImpl,\n AzureMonitorWorkspacesImpl,\n MonitorOperationsImpl,\n AutoscaleSettingsImpl,\n PredictiveMetricImpl,\n OperationsImpl,\n AlertRuleIncidentsImpl,\n AlertRulesImpl,\n LogProfilesImpl,\n DiagnosticSettingsImpl,\n DiagnosticSettingsCategoryImpl,\n ActionGroupsImpl,\n TenantActionGroupsImpl,\n ActivityLogsImpl,\n EventCategoriesImpl,\n TenantActivityLogsImpl,\n BaselinesImpl,\n MetricAlertsImpl,\n MetricAlertsStatusImpl,\n ScheduledQueryRulesImpl,\n VMInsightsImpl,\n PrivateLinkScopesImpl,\n PrivateLinkScopeOperationStatusImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkScopedResourcesImpl,\n ActivityLogAlertsImpl,\n DataCollectionEndpointsImpl,\n DataCollectionRuleAssociationsImpl,\n DataCollectionRulesImpl,\n} from \"./operations/index.js\";\nimport {\n MetricNamespaces,\n MetricDefinitions,\n MetricsOperations,\n AzureMonitorWorkspaces,\n MonitorOperations,\n AutoscaleSettings,\n PredictiveMetric,\n Operations,\n AlertRuleIncidents,\n AlertRules,\n LogProfiles,\n DiagnosticSettings,\n DiagnosticSettingsCategory,\n ActionGroups,\n TenantActionGroups,\n ActivityLogs,\n EventCategories,\n TenantActivityLogs,\n Baselines,\n MetricAlerts,\n MetricAlertsStatus,\n ScheduledQueryRules,\n VMInsights,\n PrivateLinkScopes,\n PrivateLinkScopeOperationStatus,\n PrivateLinkResources,\n PrivateEndpointConnections,\n PrivateLinkScopedResources,\n ActivityLogAlerts,\n DataCollectionEndpoints,\n DataCollectionRuleAssociations,\n DataCollectionRules,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n MonitorClientOptionalParams,\n TenantNotificationRequestBody,\n CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n GetTestNotificationsAtTenantActionGroupResourceLevelResponse,\n} from \"./models/index.js\";\n\nexport class MonitorClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MonitorClient 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?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MonitorClientOptionalParams | string,\n options?: MonitorClientOptionalParams,\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: MonitorClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.7`;\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[] =\n 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.metricNamespaces = new MetricNamespacesImpl(this);\n this.metricDefinitions = new MetricDefinitionsImpl(this);\n this.metricsOperations = new MetricsOperationsImpl(this);\n this.azureMonitorWorkspaces = new AzureMonitorWorkspacesImpl(this);\n this.monitorOperations = new MonitorOperationsImpl(this);\n this.autoscaleSettings = new AutoscaleSettingsImpl(this);\n this.predictiveMetric = new PredictiveMetricImpl(this);\n this.operations = new OperationsImpl(this);\n this.alertRuleIncidents = new AlertRuleIncidentsImpl(this);\n this.alertRules = new AlertRulesImpl(this);\n this.logProfiles = new LogProfilesImpl(this);\n this.diagnosticSettings = new DiagnosticSettingsImpl(this);\n this.diagnosticSettingsCategory = new DiagnosticSettingsCategoryImpl(this);\n this.actionGroups = new ActionGroupsImpl(this);\n this.tenantActionGroups = new TenantActionGroupsImpl(this);\n this.activityLogs = new ActivityLogsImpl(this);\n this.eventCategories = new EventCategoriesImpl(this);\n this.tenantActivityLogs = new TenantActivityLogsImpl(this);\n this.baselines = new BaselinesImpl(this);\n this.metricAlerts = new MetricAlertsImpl(this);\n this.metricAlertsStatus = new MetricAlertsStatusImpl(this);\n this.scheduledQueryRules = new ScheduledQueryRulesImpl(this);\n this.vMInsights = new VMInsightsImpl(this);\n this.privateLinkScopes = new PrivateLinkScopesImpl(this);\n this.privateLinkScopeOperationStatus =\n new PrivateLinkScopeOperationStatusImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkScopedResources = new PrivateLinkScopedResourcesImpl(this);\n this.activityLogAlerts = new ActivityLogAlertsImpl(this);\n this.dataCollectionEndpoints = new DataCollectionEndpointsImpl(this);\n this.dataCollectionRuleAssociations =\n new DataCollectionRuleAssociationsImpl(this);\n this.dataCollectionRules = new DataCollectionRulesImpl(this);\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> => {\n return this.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n },\n spec: createNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n });\n const poller = await createHttpPoller<\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> {\n const poller =\n await this.beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the test notifications by the notification id\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationId The notification id\n * @param options The options parameters.\n */\n getTestNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationId: string,\n options?: GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<GetTestNotificationsAtTenantActionGroupResourceLevelResponse> {\n return this.sendOperationRequest(\n {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationId,\n options,\n },\n getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n );\n }\n\n metricNamespaces: MetricNamespaces;\n metricDefinitions: MetricDefinitions;\n metricsOperations: MetricsOperations;\n azureMonitorWorkspaces: AzureMonitorWorkspaces;\n monitorOperations: MonitorOperations;\n autoscaleSettings: AutoscaleSettings;\n predictiveMetric: PredictiveMetric;\n operations: Operations;\n alertRuleIncidents: AlertRuleIncidents;\n alertRules: AlertRules;\n logProfiles: LogProfiles;\n diagnosticSettings: DiagnosticSettings;\n diagnosticSettingsCategory: DiagnosticSettingsCategory;\n actionGroups: ActionGroups;\n tenantActionGroups: TenantActionGroups;\n activityLogs: ActivityLogs;\n eventCategories: EventCategories;\n tenantActivityLogs: TenantActivityLogs;\n baselines: Baselines;\n metricAlerts: MetricAlerts;\n metricAlertsStatus: MetricAlertsStatus;\n scheduledQueryRules: ScheduledQueryRules;\n vMInsights: VMInsights;\n privateLinkScopes: PrivateLinkScopes;\n privateLinkScopeOperationStatus: PrivateLinkScopeOperationStatus;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkScopedResources: PrivateLinkScopedResources;\n activityLogAlerts: ActivityLogAlerts;\n dataCollectionEndpoints: DataCollectionEndpoints;\n dataCollectionRuleAssociations: DataCollectionRuleAssociations;\n dataCollectionRules: DataCollectionRules;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/createNotifications\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 201: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 202: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 204: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated3,\n },\n },\n requestBody: Parameters.notificationRequest1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsClientTenantId,\n ],\n mediaType: \"json\",\n serializer,\n };\nconst getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/notificationStatus/{notificationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.notificationId,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.xMsClientTenantId],\n serializer,\n };\n"]}
|
|
@@ -34,7 +34,7 @@ export class MonitorClient extends coreClient.ServiceClient {
|
|
|
34
34
|
requestContentType: "application/json; charset=utf-8",
|
|
35
35
|
credential: credentials,
|
|
36
36
|
};
|
|
37
|
-
const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.
|
|
37
|
+
const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.7`;
|
|
38
38
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
39
39
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
40
40
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitorClient.js","sourceRoot":"","sources":["../../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CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,iBAAiB;KAC7B;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACJ,MAAM,iEAAiE,GACrE;IACE,IAAI,EAAE,kLAAkL;IACxL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4CAA4C;SACjE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACnE,UAAU;CACX,CAAC","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"./lroImpl.js\";\nimport {\n MetricNamespacesImpl,\n MetricDefinitionsImpl,\n MetricsOperationsImpl,\n AzureMonitorWorkspacesImpl,\n MonitorOperationsImpl,\n AutoscaleSettingsImpl,\n PredictiveMetricImpl,\n OperationsImpl,\n AlertRuleIncidentsImpl,\n AlertRulesImpl,\n LogProfilesImpl,\n DiagnosticSettingsImpl,\n DiagnosticSettingsCategoryImpl,\n ActionGroupsImpl,\n TenantActionGroupsImpl,\n ActivityLogsImpl,\n EventCategoriesImpl,\n TenantActivityLogsImpl,\n BaselinesImpl,\n MetricAlertsImpl,\n MetricAlertsStatusImpl,\n ScheduledQueryRulesImpl,\n VMInsightsImpl,\n PrivateLinkScopesImpl,\n PrivateLinkScopeOperationStatusImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkScopedResourcesImpl,\n ActivityLogAlertsImpl,\n DataCollectionEndpointsImpl,\n DataCollectionRuleAssociationsImpl,\n DataCollectionRulesImpl,\n} from \"./operations/index.js\";\nimport {\n MetricNamespaces,\n MetricDefinitions,\n MetricsOperations,\n AzureMonitorWorkspaces,\n MonitorOperations,\n AutoscaleSettings,\n PredictiveMetric,\n Operations,\n AlertRuleIncidents,\n AlertRules,\n LogProfiles,\n DiagnosticSettings,\n DiagnosticSettingsCategory,\n ActionGroups,\n TenantActionGroups,\n ActivityLogs,\n EventCategories,\n TenantActivityLogs,\n Baselines,\n MetricAlerts,\n MetricAlertsStatus,\n ScheduledQueryRules,\n VMInsights,\n PrivateLinkScopes,\n PrivateLinkScopeOperationStatus,\n PrivateLinkResources,\n PrivateEndpointConnections,\n PrivateLinkScopedResources,\n ActivityLogAlerts,\n DataCollectionEndpoints,\n DataCollectionRuleAssociations,\n DataCollectionRules,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n MonitorClientOptionalParams,\n TenantNotificationRequestBody,\n CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n GetTestNotificationsAtTenantActionGroupResourceLevelResponse,\n} from \"./models/index.js\";\n\nexport class MonitorClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MonitorClient 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?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MonitorClientOptionalParams | string,\n options?: MonitorClientOptionalParams,\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: MonitorClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.6`;\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[] =\n 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.metricNamespaces = new MetricNamespacesImpl(this);\n this.metricDefinitions = new MetricDefinitionsImpl(this);\n this.metricsOperations = new MetricsOperationsImpl(this);\n this.azureMonitorWorkspaces = new AzureMonitorWorkspacesImpl(this);\n this.monitorOperations = new MonitorOperationsImpl(this);\n this.autoscaleSettings = new AutoscaleSettingsImpl(this);\n this.predictiveMetric = new PredictiveMetricImpl(this);\n this.operations = new OperationsImpl(this);\n this.alertRuleIncidents = new AlertRuleIncidentsImpl(this);\n this.alertRules = new AlertRulesImpl(this);\n this.logProfiles = new LogProfilesImpl(this);\n this.diagnosticSettings = new DiagnosticSettingsImpl(this);\n this.diagnosticSettingsCategory = new DiagnosticSettingsCategoryImpl(this);\n this.actionGroups = new ActionGroupsImpl(this);\n this.tenantActionGroups = new TenantActionGroupsImpl(this);\n this.activityLogs = new ActivityLogsImpl(this);\n this.eventCategories = new EventCategoriesImpl(this);\n this.tenantActivityLogs = new TenantActivityLogsImpl(this);\n this.baselines = new BaselinesImpl(this);\n this.metricAlerts = new MetricAlertsImpl(this);\n this.metricAlertsStatus = new MetricAlertsStatusImpl(this);\n this.scheduledQueryRules = new ScheduledQueryRulesImpl(this);\n this.vMInsights = new VMInsightsImpl(this);\n this.privateLinkScopes = new PrivateLinkScopesImpl(this);\n this.privateLinkScopeOperationStatus =\n new PrivateLinkScopeOperationStatusImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkScopedResources = new PrivateLinkScopedResourcesImpl(this);\n this.activityLogAlerts = new ActivityLogAlertsImpl(this);\n this.dataCollectionEndpoints = new DataCollectionEndpointsImpl(this);\n this.dataCollectionRuleAssociations =\n new DataCollectionRuleAssociationsImpl(this);\n this.dataCollectionRules = new DataCollectionRulesImpl(this);\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> => {\n return this.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n },\n spec: createNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n });\n const poller = await createHttpPoller<\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> {\n const poller =\n await this.beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the test notifications by the notification id\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationId The notification id\n * @param options The options parameters.\n */\n getTestNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationId: string,\n options?: GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<GetTestNotificationsAtTenantActionGroupResourceLevelResponse> {\n return this.sendOperationRequest(\n {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationId,\n options,\n },\n getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n );\n }\n\n metricNamespaces: MetricNamespaces;\n metricDefinitions: MetricDefinitions;\n metricsOperations: MetricsOperations;\n azureMonitorWorkspaces: AzureMonitorWorkspaces;\n monitorOperations: MonitorOperations;\n autoscaleSettings: AutoscaleSettings;\n predictiveMetric: PredictiveMetric;\n operations: Operations;\n alertRuleIncidents: AlertRuleIncidents;\n alertRules: AlertRules;\n logProfiles: LogProfiles;\n diagnosticSettings: DiagnosticSettings;\n diagnosticSettingsCategory: DiagnosticSettingsCategory;\n actionGroups: ActionGroups;\n tenantActionGroups: TenantActionGroups;\n activityLogs: ActivityLogs;\n eventCategories: EventCategories;\n tenantActivityLogs: TenantActivityLogs;\n baselines: Baselines;\n metricAlerts: MetricAlerts;\n metricAlertsStatus: MetricAlertsStatus;\n scheduledQueryRules: ScheduledQueryRules;\n vMInsights: VMInsights;\n privateLinkScopes: PrivateLinkScopes;\n privateLinkScopeOperationStatus: PrivateLinkScopeOperationStatus;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkScopedResources: PrivateLinkScopedResources;\n activityLogAlerts: ActivityLogAlerts;\n dataCollectionEndpoints: DataCollectionEndpoints;\n dataCollectionRuleAssociations: DataCollectionRuleAssociations;\n dataCollectionRules: DataCollectionRules;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/createNotifications\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 201: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 202: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 204: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated3,\n },\n },\n requestBody: Parameters.notificationRequest1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsClientTenantId,\n ],\n mediaType: \"json\",\n serializer,\n };\nconst getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/notificationStatus/{notificationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.notificationId,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.xMsClientTenantId],\n serializer,\n };\n"]}
|
|
1
|
+
{"version":3,"file":"monitorClient.js","sourceRoot":"","sources":["../../src/monitorClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,8BAA8B,EAC9B,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,aAAa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AC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACnE,UAAU;CACX,CAAC","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"./lroImpl.js\";\nimport {\n MetricNamespacesImpl,\n MetricDefinitionsImpl,\n MetricsOperationsImpl,\n AzureMonitorWorkspacesImpl,\n MonitorOperationsImpl,\n AutoscaleSettingsImpl,\n PredictiveMetricImpl,\n OperationsImpl,\n AlertRuleIncidentsImpl,\n AlertRulesImpl,\n LogProfilesImpl,\n DiagnosticSettingsImpl,\n DiagnosticSettingsCategoryImpl,\n ActionGroupsImpl,\n TenantActionGroupsImpl,\n ActivityLogsImpl,\n EventCategoriesImpl,\n TenantActivityLogsImpl,\n BaselinesImpl,\n MetricAlertsImpl,\n MetricAlertsStatusImpl,\n ScheduledQueryRulesImpl,\n VMInsightsImpl,\n PrivateLinkScopesImpl,\n PrivateLinkScopeOperationStatusImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkScopedResourcesImpl,\n ActivityLogAlertsImpl,\n DataCollectionEndpointsImpl,\n DataCollectionRuleAssociationsImpl,\n DataCollectionRulesImpl,\n} from \"./operations/index.js\";\nimport {\n MetricNamespaces,\n MetricDefinitions,\n MetricsOperations,\n AzureMonitorWorkspaces,\n MonitorOperations,\n AutoscaleSettings,\n PredictiveMetric,\n Operations,\n AlertRuleIncidents,\n AlertRules,\n LogProfiles,\n DiagnosticSettings,\n DiagnosticSettingsCategory,\n ActionGroups,\n TenantActionGroups,\n ActivityLogs,\n EventCategories,\n TenantActivityLogs,\n Baselines,\n MetricAlerts,\n MetricAlertsStatus,\n ScheduledQueryRules,\n VMInsights,\n PrivateLinkScopes,\n PrivateLinkScopeOperationStatus,\n PrivateLinkResources,\n PrivateEndpointConnections,\n PrivateLinkScopedResources,\n ActivityLogAlerts,\n DataCollectionEndpoints,\n DataCollectionRuleAssociations,\n DataCollectionRules,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n MonitorClientOptionalParams,\n TenantNotificationRequestBody,\n CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n GetTestNotificationsAtTenantActionGroupResourceLevelResponse,\n} from \"./models/index.js\";\n\nexport class MonitorClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MonitorClient 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?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MonitorClientOptionalParams | string,\n options?: MonitorClientOptionalParams,\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: MonitorClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.7`;\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[] =\n 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.metricNamespaces = new MetricNamespacesImpl(this);\n this.metricDefinitions = new MetricDefinitionsImpl(this);\n this.metricsOperations = new MetricsOperationsImpl(this);\n this.azureMonitorWorkspaces = new AzureMonitorWorkspacesImpl(this);\n this.monitorOperations = new MonitorOperationsImpl(this);\n this.autoscaleSettings = new AutoscaleSettingsImpl(this);\n this.predictiveMetric = new PredictiveMetricImpl(this);\n this.operations = new OperationsImpl(this);\n this.alertRuleIncidents = new AlertRuleIncidentsImpl(this);\n this.alertRules = new AlertRulesImpl(this);\n this.logProfiles = new LogProfilesImpl(this);\n this.diagnosticSettings = new DiagnosticSettingsImpl(this);\n this.diagnosticSettingsCategory = new DiagnosticSettingsCategoryImpl(this);\n this.actionGroups = new ActionGroupsImpl(this);\n this.tenantActionGroups = new TenantActionGroupsImpl(this);\n this.activityLogs = new ActivityLogsImpl(this);\n this.eventCategories = new EventCategoriesImpl(this);\n this.tenantActivityLogs = new TenantActivityLogsImpl(this);\n this.baselines = new BaselinesImpl(this);\n this.metricAlerts = new MetricAlertsImpl(this);\n this.metricAlertsStatus = new MetricAlertsStatusImpl(this);\n this.scheduledQueryRules = new ScheduledQueryRulesImpl(this);\n this.vMInsights = new VMInsightsImpl(this);\n this.privateLinkScopes = new PrivateLinkScopesImpl(this);\n this.privateLinkScopeOperationStatus =\n new PrivateLinkScopeOperationStatusImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkScopedResources = new PrivateLinkScopedResourcesImpl(this);\n this.activityLogAlerts = new ActivityLogAlertsImpl(this);\n this.dataCollectionEndpoints = new DataCollectionEndpointsImpl(this);\n this.dataCollectionRuleAssociations =\n new DataCollectionRuleAssociationsImpl(this);\n this.dataCollectionRules = new DataCollectionRulesImpl(this);\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> => {\n return this.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n },\n spec: createNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n });\n const poller = await createHttpPoller<\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> {\n const poller =\n await this.beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the test notifications by the notification id\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationId The notification id\n * @param options The options parameters.\n */\n getTestNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationId: string,\n options?: GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<GetTestNotificationsAtTenantActionGroupResourceLevelResponse> {\n return this.sendOperationRequest(\n {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationId,\n options,\n },\n getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n );\n }\n\n metricNamespaces: MetricNamespaces;\n metricDefinitions: MetricDefinitions;\n metricsOperations: MetricsOperations;\n azureMonitorWorkspaces: AzureMonitorWorkspaces;\n monitorOperations: MonitorOperations;\n autoscaleSettings: AutoscaleSettings;\n predictiveMetric: PredictiveMetric;\n operations: Operations;\n alertRuleIncidents: AlertRuleIncidents;\n alertRules: AlertRules;\n logProfiles: LogProfiles;\n diagnosticSettings: DiagnosticSettings;\n diagnosticSettingsCategory: DiagnosticSettingsCategory;\n actionGroups: ActionGroups;\n tenantActionGroups: TenantActionGroups;\n activityLogs: ActivityLogs;\n eventCategories: EventCategories;\n tenantActivityLogs: TenantActivityLogs;\n baselines: Baselines;\n metricAlerts: MetricAlerts;\n metricAlertsStatus: MetricAlertsStatus;\n scheduledQueryRules: ScheduledQueryRules;\n vMInsights: VMInsights;\n privateLinkScopes: PrivateLinkScopes;\n privateLinkScopeOperationStatus: PrivateLinkScopeOperationStatus;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkScopedResources: PrivateLinkScopedResources;\n activityLogAlerts: ActivityLogAlerts;\n dataCollectionEndpoints: DataCollectionEndpoints;\n dataCollectionRuleAssociations: DataCollectionRuleAssociations;\n dataCollectionRules: DataCollectionRules;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/createNotifications\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 201: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 202: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 204: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated3,\n },\n },\n requestBody: Parameters.notificationRequest1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsClientTenantId,\n ],\n mediaType: \"json\",\n serializer,\n };\nconst getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/notificationStatus/{notificationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.notificationId,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.xMsClientTenantId],\n serializer,\n };\n"]}
|
|
@@ -34,7 +34,7 @@ export class MonitorClient extends coreClient.ServiceClient {
|
|
|
34
34
|
requestContentType: "application/json; charset=utf-8",
|
|
35
35
|
credential: credentials,
|
|
36
36
|
};
|
|
37
|
-
const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.
|
|
37
|
+
const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.7`;
|
|
38
38
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
39
39
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
40
40
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitorClient.js","sourceRoot":"","sources":["../../src/monitorClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,8BAA8B,EAC9B,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,mCAAmC,EACnC,wBAAwB,EACxB,8BAA8B,EAC9B,8BAA8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CAAC,iBAAiB,CAAC;IACnE,UAAU;CACX,CAAC","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"./lroImpl.js\";\nimport {\n MetricNamespacesImpl,\n MetricDefinitionsImpl,\n MetricsOperationsImpl,\n AzureMonitorWorkspacesImpl,\n MonitorOperationsImpl,\n AutoscaleSettingsImpl,\n PredictiveMetricImpl,\n OperationsImpl,\n AlertRuleIncidentsImpl,\n AlertRulesImpl,\n LogProfilesImpl,\n DiagnosticSettingsImpl,\n DiagnosticSettingsCategoryImpl,\n ActionGroupsImpl,\n TenantActionGroupsImpl,\n ActivityLogsImpl,\n EventCategoriesImpl,\n TenantActivityLogsImpl,\n BaselinesImpl,\n MetricAlertsImpl,\n MetricAlertsStatusImpl,\n ScheduledQueryRulesImpl,\n VMInsightsImpl,\n PrivateLinkScopesImpl,\n PrivateLinkScopeOperationStatusImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkScopedResourcesImpl,\n ActivityLogAlertsImpl,\n DataCollectionEndpointsImpl,\n DataCollectionRuleAssociationsImpl,\n DataCollectionRulesImpl,\n} from \"./operations/index.js\";\nimport {\n MetricNamespaces,\n MetricDefinitions,\n MetricsOperations,\n AzureMonitorWorkspaces,\n MonitorOperations,\n AutoscaleSettings,\n PredictiveMetric,\n Operations,\n AlertRuleIncidents,\n AlertRules,\n LogProfiles,\n DiagnosticSettings,\n DiagnosticSettingsCategory,\n ActionGroups,\n TenantActionGroups,\n ActivityLogs,\n EventCategories,\n TenantActivityLogs,\n Baselines,\n MetricAlerts,\n MetricAlertsStatus,\n ScheduledQueryRules,\n VMInsights,\n PrivateLinkScopes,\n PrivateLinkScopeOperationStatus,\n PrivateLinkResources,\n PrivateEndpointConnections,\n PrivateLinkScopedResources,\n ActivityLogAlerts,\n DataCollectionEndpoints,\n DataCollectionRuleAssociations,\n DataCollectionRules,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n MonitorClientOptionalParams,\n TenantNotificationRequestBody,\n CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n GetTestNotificationsAtTenantActionGroupResourceLevelResponse,\n} from \"./models/index.js\";\n\nexport class MonitorClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MonitorClient 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?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MonitorClientOptionalParams | string,\n options?: MonitorClientOptionalParams,\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: MonitorClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.6`;\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[] =\n 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.metricNamespaces = new MetricNamespacesImpl(this);\n this.metricDefinitions = new MetricDefinitionsImpl(this);\n this.metricsOperations = new MetricsOperationsImpl(this);\n this.azureMonitorWorkspaces = new AzureMonitorWorkspacesImpl(this);\n this.monitorOperations = new MonitorOperationsImpl(this);\n this.autoscaleSettings = new AutoscaleSettingsImpl(this);\n this.predictiveMetric = new PredictiveMetricImpl(this);\n this.operations = new OperationsImpl(this);\n this.alertRuleIncidents = new AlertRuleIncidentsImpl(this);\n this.alertRules = new AlertRulesImpl(this);\n this.logProfiles = new LogProfilesImpl(this);\n this.diagnosticSettings = new DiagnosticSettingsImpl(this);\n this.diagnosticSettingsCategory = new DiagnosticSettingsCategoryImpl(this);\n this.actionGroups = new ActionGroupsImpl(this);\n this.tenantActionGroups = new TenantActionGroupsImpl(this);\n this.activityLogs = new ActivityLogsImpl(this);\n this.eventCategories = new EventCategoriesImpl(this);\n this.tenantActivityLogs = new TenantActivityLogsImpl(this);\n this.baselines = new BaselinesImpl(this);\n this.metricAlerts = new MetricAlertsImpl(this);\n this.metricAlertsStatus = new MetricAlertsStatusImpl(this);\n this.scheduledQueryRules = new ScheduledQueryRulesImpl(this);\n this.vMInsights = new VMInsightsImpl(this);\n this.privateLinkScopes = new PrivateLinkScopesImpl(this);\n this.privateLinkScopeOperationStatus =\n new PrivateLinkScopeOperationStatusImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkScopedResources = new PrivateLinkScopedResourcesImpl(this);\n this.activityLogAlerts = new ActivityLogAlertsImpl(this);\n this.dataCollectionEndpoints = new DataCollectionEndpointsImpl(this);\n this.dataCollectionRuleAssociations =\n new DataCollectionRuleAssociationsImpl(this);\n this.dataCollectionRules = new DataCollectionRulesImpl(this);\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> => {\n return this.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n },\n spec: createNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n });\n const poller = await createHttpPoller<\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> {\n const poller =\n await this.beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the test notifications by the notification id\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationId The notification id\n * @param options The options parameters.\n */\n getTestNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationId: string,\n options?: GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<GetTestNotificationsAtTenantActionGroupResourceLevelResponse> {\n return this.sendOperationRequest(\n {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationId,\n options,\n },\n getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n );\n }\n\n metricNamespaces: MetricNamespaces;\n metricDefinitions: MetricDefinitions;\n metricsOperations: MetricsOperations;\n azureMonitorWorkspaces: AzureMonitorWorkspaces;\n monitorOperations: MonitorOperations;\n autoscaleSettings: AutoscaleSettings;\n predictiveMetric: PredictiveMetric;\n operations: Operations;\n alertRuleIncidents: AlertRuleIncidents;\n alertRules: AlertRules;\n logProfiles: LogProfiles;\n diagnosticSettings: DiagnosticSettings;\n diagnosticSettingsCategory: DiagnosticSettingsCategory;\n actionGroups: ActionGroups;\n tenantActionGroups: TenantActionGroups;\n activityLogs: ActivityLogs;\n eventCategories: EventCategories;\n tenantActivityLogs: TenantActivityLogs;\n baselines: Baselines;\n metricAlerts: MetricAlerts;\n metricAlertsStatus: MetricAlertsStatus;\n scheduledQueryRules: ScheduledQueryRules;\n vMInsights: VMInsights;\n privateLinkScopes: PrivateLinkScopes;\n privateLinkScopeOperationStatus: PrivateLinkScopeOperationStatus;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkScopedResources: PrivateLinkScopedResources;\n activityLogAlerts: ActivityLogAlerts;\n dataCollectionEndpoints: DataCollectionEndpoints;\n dataCollectionRuleAssociations: DataCollectionRuleAssociations;\n dataCollectionRules: DataCollectionRules;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/createNotifications\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 201: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 202: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 204: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated3,\n },\n },\n requestBody: Parameters.notificationRequest1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsClientTenantId,\n ],\n mediaType: \"json\",\n serializer,\n };\nconst getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/notificationStatus/{notificationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.notificationId,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.xMsClientTenantId],\n serializer,\n };\n"]}
|
|
1
|
+
{"version":3,"file":"monitorClient.js","sourceRoot":"","sources":["../../src/monitorClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,8BAA8B,EAC9B,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,mCAAmC,EACnC,wBAAwB,EACxB,8BAA8B,EAC9B,8BAA8B,EAC9B,qBAAqB,EACrB,2BAA2B,EAC3B,kCAAkC,EAClC,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAmC/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAU/C,MAAM,OAAO,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,CAAS;IACd,cAAc,CAAU;IAiBxB,YACE,WAAqC,EACrC,uBAA8D,EAC9D,OAAqC;QAErC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAA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C,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,iBAAiB;KAC7B;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACJ,MAAM,iEAAiE,GACrE;IACE,IAAI,EAAE,kLAAkL;IACxL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4CAA4C;SACjE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACnE,UAAU;CACX,CAAC","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 * as coreAuth from \"@azure/core-auth\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"./lroImpl.js\";\nimport {\n MetricNamespacesImpl,\n MetricDefinitionsImpl,\n MetricsOperationsImpl,\n AzureMonitorWorkspacesImpl,\n MonitorOperationsImpl,\n AutoscaleSettingsImpl,\n PredictiveMetricImpl,\n OperationsImpl,\n AlertRuleIncidentsImpl,\n AlertRulesImpl,\n LogProfilesImpl,\n DiagnosticSettingsImpl,\n DiagnosticSettingsCategoryImpl,\n ActionGroupsImpl,\n TenantActionGroupsImpl,\n ActivityLogsImpl,\n EventCategoriesImpl,\n TenantActivityLogsImpl,\n BaselinesImpl,\n MetricAlertsImpl,\n MetricAlertsStatusImpl,\n ScheduledQueryRulesImpl,\n VMInsightsImpl,\n PrivateLinkScopesImpl,\n PrivateLinkScopeOperationStatusImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkScopedResourcesImpl,\n ActivityLogAlertsImpl,\n DataCollectionEndpointsImpl,\n DataCollectionRuleAssociationsImpl,\n DataCollectionRulesImpl,\n} from \"./operations/index.js\";\nimport {\n MetricNamespaces,\n MetricDefinitions,\n MetricsOperations,\n AzureMonitorWorkspaces,\n MonitorOperations,\n AutoscaleSettings,\n PredictiveMetric,\n Operations,\n AlertRuleIncidents,\n AlertRules,\n LogProfiles,\n DiagnosticSettings,\n DiagnosticSettingsCategory,\n ActionGroups,\n TenantActionGroups,\n ActivityLogs,\n EventCategories,\n TenantActivityLogs,\n Baselines,\n MetricAlerts,\n MetricAlertsStatus,\n ScheduledQueryRules,\n VMInsights,\n PrivateLinkScopes,\n PrivateLinkScopeOperationStatus,\n PrivateLinkResources,\n PrivateEndpointConnections,\n PrivateLinkScopedResources,\n ActivityLogAlerts,\n DataCollectionEndpoints,\n DataCollectionRuleAssociations,\n DataCollectionRules,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n MonitorClientOptionalParams,\n TenantNotificationRequestBody,\n CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n GetTestNotificationsAtTenantActionGroupResourceLevelResponse,\n} from \"./models/index.js\";\n\nexport class MonitorClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the MonitorClient 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?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MonitorClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: MonitorClientOptionalParams | string,\n options?: MonitorClientOptionalParams,\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: MonitorClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.7`;\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[] =\n 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.metricNamespaces = new MetricNamespacesImpl(this);\n this.metricDefinitions = new MetricDefinitionsImpl(this);\n this.metricsOperations = new MetricsOperationsImpl(this);\n this.azureMonitorWorkspaces = new AzureMonitorWorkspacesImpl(this);\n this.monitorOperations = new MonitorOperationsImpl(this);\n this.autoscaleSettings = new AutoscaleSettingsImpl(this);\n this.predictiveMetric = new PredictiveMetricImpl(this);\n this.operations = new OperationsImpl(this);\n this.alertRuleIncidents = new AlertRuleIncidentsImpl(this);\n this.alertRules = new AlertRulesImpl(this);\n this.logProfiles = new LogProfilesImpl(this);\n this.diagnosticSettings = new DiagnosticSettingsImpl(this);\n this.diagnosticSettingsCategory = new DiagnosticSettingsCategoryImpl(this);\n this.actionGroups = new ActionGroupsImpl(this);\n this.tenantActionGroups = new TenantActionGroupsImpl(this);\n this.activityLogs = new ActivityLogsImpl(this);\n this.eventCategories = new EventCategoriesImpl(this);\n this.tenantActivityLogs = new TenantActivityLogsImpl(this);\n this.baselines = new BaselinesImpl(this);\n this.metricAlerts = new MetricAlertsImpl(this);\n this.metricAlertsStatus = new MetricAlertsStatusImpl(this);\n this.scheduledQueryRules = new ScheduledQueryRulesImpl(this);\n this.vMInsights = new VMInsightsImpl(this);\n this.privateLinkScopes = new PrivateLinkScopesImpl(this);\n this.privateLinkScopeOperationStatus =\n new PrivateLinkScopeOperationStatusImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkScopedResources = new PrivateLinkScopedResourcesImpl(this);\n this.activityLogAlerts = new ActivityLogAlertsImpl(this);\n this.dataCollectionEndpoints = new DataCollectionEndpointsImpl(this);\n this.dataCollectionRuleAssociations =\n new DataCollectionRuleAssociationsImpl(this);\n this.dataCollectionRules = new DataCollectionRulesImpl(this);\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>,\n CreateNotificationsAtTenantActionGroupResourceLevelResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> => {\n return this.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n },\n spec: createNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n });\n const poller = await createHttpPoller<\n CreateNotificationsAtTenantActionGroupResourceLevelResponse,\n OperationState<CreateNotificationsAtTenantActionGroupResourceLevelResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Send test notifications to a set of provided receivers\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationRequest The notification request body which includes the contact details\n * @param options The options parameters.\n */\n async beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationRequest: TenantNotificationRequestBody,\n options?: CreateNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<CreateNotificationsAtTenantActionGroupResourceLevelResponse> {\n const poller =\n await this.beginCreateNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the test notifications by the notification id\n * @param managementGroupId The management group id.\n * @param tenantActionGroupName The name of the action group.\n * @param xMsClientTenantId The tenant ID of the client making the request.\n * @param notificationId The notification id\n * @param options The options parameters.\n */\n getTestNotificationsAtTenantActionGroupResourceLevel(\n managementGroupId: string,\n tenantActionGroupName: string,\n xMsClientTenantId: string,\n notificationId: string,\n options?: GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams,\n ): Promise<GetTestNotificationsAtTenantActionGroupResourceLevelResponse> {\n return this.sendOperationRequest(\n {\n managementGroupId,\n tenantActionGroupName,\n xMsClientTenantId,\n notificationId,\n options,\n },\n getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec,\n );\n }\n\n metricNamespaces: MetricNamespaces;\n metricDefinitions: MetricDefinitions;\n metricsOperations: MetricsOperations;\n azureMonitorWorkspaces: AzureMonitorWorkspaces;\n monitorOperations: MonitorOperations;\n autoscaleSettings: AutoscaleSettings;\n predictiveMetric: PredictiveMetric;\n operations: Operations;\n alertRuleIncidents: AlertRuleIncidents;\n alertRules: AlertRules;\n logProfiles: LogProfiles;\n diagnosticSettings: DiagnosticSettings;\n diagnosticSettingsCategory: DiagnosticSettingsCategory;\n actionGroups: ActionGroups;\n tenantActionGroups: TenantActionGroups;\n activityLogs: ActivityLogs;\n eventCategories: EventCategories;\n tenantActivityLogs: TenantActivityLogs;\n baselines: Baselines;\n metricAlerts: MetricAlerts;\n metricAlertsStatus: MetricAlertsStatus;\n scheduledQueryRules: ScheduledQueryRules;\n vMInsights: VMInsights;\n privateLinkScopes: PrivateLinkScopes;\n privateLinkScopeOperationStatus: PrivateLinkScopeOperationStatus;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkScopedResources: PrivateLinkScopedResources;\n activityLogAlerts: ActivityLogAlerts;\n dataCollectionEndpoints: DataCollectionEndpoints;\n dataCollectionRuleAssociations: DataCollectionRuleAssociations;\n dataCollectionRules: DataCollectionRules;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/createNotifications\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 201: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 202: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n 204: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated3,\n },\n },\n requestBody: Parameters.notificationRequest1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsClientTenantId,\n ],\n mediaType: \"json\",\n serializer,\n };\nconst getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}/notificationStatus/{notificationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.notificationId,\n Parameters.managementGroupId,\n Parameters.tenantActionGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.xMsClientTenantId],\n serializer,\n };\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for MonitorClient.",
|
|
6
|
-
"version": "8.0.0-alpha.
|
|
6
|
+
"version": "8.0.0-alpha.20251007.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.0.0"
|
|
9
9
|
},
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"playwright": "^1.50.1",
|
|
43
43
|
"typescript": "~5.8.3",
|
|
44
44
|
"vitest": "^3.2.3",
|
|
45
|
-
"@azure-tools/test-credential": "^2.1.2",
|
|
46
45
|
"@azure-tools/test-utils-vitest": "^2.0.1",
|
|
46
|
+
"@azure-tools/test-recorder": "^4.1.1",
|
|
47
47
|
"@azure/dev-tool": "^1.0.0",
|
|
48
|
-
"@azure-tools/test-
|
|
48
|
+
"@azure-tools/test-credential": "^2.1.2"
|
|
49
49
|
},
|
|
50
50
|
"repository": "github:Azure/azure-sdk-for-js",
|
|
51
51
|
"bugs": {
|