@azure/arm-monitor 8.0.0-beta.2 → 8.0.0-beta.3
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 +6 -2
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +456 -223
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsGetSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js +10 -2
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js +10 -2
- package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js +10 -2
- package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js +19 -9
- package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsGetSample.js +11 -3
- package/dist-esm/samples-dev/activityLogAlertsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js +10 -2
- package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogsListSample.js +13 -4
- package/dist-esm/samples-dev/activityLogsListSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRuleIncidentsGetSample.js +11 -3
- package/dist-esm/samples-dev/alertRuleIncidentsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.js +11 -3
- package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/alertRulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesGetSample.js +11 -3
- package/dist-esm/samples-dev/alertRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/alertRulesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsGetSample.js +11 -3
- package/dist-esm/samples-dev/autoscaleSettingsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/baselinesListSample.js +10 -2
- package/dist-esm/samples-dev/baselinesListSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesCreateSample.js +16 -8
- package/dist-esm/samples-dev/dataCollectionRulesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesGetSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.js +10 -2
- package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.js +10 -2
- package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.js +13 -4
- package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.js +10 -2
- package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsGetSample.js +13 -4
- package/dist-esm/samples-dev/diagnosticSettingsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsListSample.js +13 -4
- package/dist-esm/samples-dev/diagnosticSettingsListSample.js.map +1 -1
- package/dist-esm/samples-dev/eventCategoriesListSample.js +10 -2
- package/dist-esm/samples-dev/eventCategoriesListSample.js.map +1 -1
- package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.js +10 -2
- package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/logProfilesDeleteSample.js +10 -2
- package/dist-esm/samples-dev/logProfilesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/logProfilesGetSample.js +10 -2
- package/dist-esm/samples-dev/logProfilesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/logProfilesListSample.js +10 -2
- package/dist-esm/samples-dev/logProfilesListSample.js.map +1 -1
- package/dist-esm/samples-dev/logProfilesUpdateSample.js +10 -2
- package/dist-esm/samples-dev/logProfilesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.js +40 -25
- package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/metricAlertsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsGetSample.js +35 -21
- package/dist-esm/samples-dev/metricAlertsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.js +11 -3
- package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsStatusListSample.js +11 -3
- package/dist-esm/samples-dev/metricAlertsStatusListSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/metricAlertsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/metricDefinitionsListSample.js +16 -6
- package/dist-esm/samples-dev/metricDefinitionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/metricNamespacesListSample.js +10 -2
- package/dist-esm/samples-dev/metricNamespacesListSample.js.map +1 -1
- package/dist-esm/samples-dev/metricsListSample.js +16 -6
- package/dist-esm/samples-dev/metricsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +10 -2
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/predictiveMetricGetSample.js +11 -3
- package/dist-esm/samples-dev/predictiveMetricGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.js +15 -6
- package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesGetSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesListSample.js +10 -2
- package/dist-esm/samples-dev/privateLinkScopesListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.js +10 -3
- package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js +19 -9
- package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js +11 -3
- package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js +10 -3
- package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/tenantActivityLogsListSample.js +19 -8
- package/dist-esm/samples-dev/tenantActivityLogsListSample.js.map +1 -1
- package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.js +22 -10
- package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +0 -6
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/monitorClient.d.ts.map +1 -1
- package/dist-esm/src/monitorClient.js +4 -7
- package/dist-esm/src/monitorClient.js.map +1 -1
- package/dist-esm/src/operations/actionGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/actionGroups.js +16 -8
- package/dist-esm/src/operations/actionGroups.js.map +1 -1
- package/dist-esm/src/operations/activityLogAlerts.d.ts.map +1 -1
- package/dist-esm/src/operations/activityLogAlerts.js +37 -16
- package/dist-esm/src/operations/activityLogAlerts.js.map +1 -1
- package/dist-esm/src/operations/activityLogs.d.ts +0 -13
- package/dist-esm/src/operations/activityLogs.d.ts.map +1 -1
- package/dist-esm/src/operations/activityLogs.js +22 -28
- package/dist-esm/src/operations/activityLogs.js.map +1 -1
- package/dist-esm/src/operations/alertRuleIncidents.d.ts.map +1 -1
- package/dist-esm/src/operations/alertRuleIncidents.js +8 -4
- package/dist-esm/src/operations/alertRuleIncidents.js.map +1 -1
- package/dist-esm/src/operations/alertRules.d.ts.map +1 -1
- package/dist-esm/src/operations/alertRules.js +16 -8
- package/dist-esm/src/operations/alertRules.js.map +1 -1
- package/dist-esm/src/operations/autoscaleSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/autoscaleSettings.js +37 -16
- package/dist-esm/src/operations/autoscaleSettings.js.map +1 -1
- package/dist-esm/src/operations/baselines.d.ts.map +1 -1
- package/dist-esm/src/operations/baselines.js +8 -4
- package/dist-esm/src/operations/baselines.js.map +1 -1
- package/dist-esm/src/operations/dataCollectionEndpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/dataCollectionEndpoints.js +37 -16
- package/dist-esm/src/operations/dataCollectionEndpoints.js.map +1 -1
- package/dist-esm/src/operations/dataCollectionRuleAssociations.d.ts.map +1 -1
- package/dist-esm/src/operations/dataCollectionRuleAssociations.js +55 -24
- package/dist-esm/src/operations/dataCollectionRuleAssociations.js.map +1 -1
- package/dist-esm/src/operations/dataCollectionRules.d.ts.map +1 -1
- package/dist-esm/src/operations/dataCollectionRules.js +37 -16
- package/dist-esm/src/operations/dataCollectionRules.js.map +1 -1
- package/dist-esm/src/operations/diagnosticSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/diagnosticSettings.js +8 -4
- package/dist-esm/src/operations/diagnosticSettings.js.map +1 -1
- package/dist-esm/src/operations/diagnosticSettingsCategory.d.ts.map +1 -1
- package/dist-esm/src/operations/diagnosticSettingsCategory.js +8 -4
- package/dist-esm/src/operations/diagnosticSettingsCategory.js.map +1 -1
- package/dist-esm/src/operations/eventCategories.d.ts.map +1 -1
- package/dist-esm/src/operations/eventCategories.js +8 -4
- package/dist-esm/src/operations/eventCategories.js.map +1 -1
- package/dist-esm/src/operations/logProfiles.d.ts.map +1 -1
- package/dist-esm/src/operations/logProfiles.js +8 -4
- package/dist-esm/src/operations/logProfiles.js.map +1 -1
- package/dist-esm/src/operations/metricAlerts.d.ts.map +1 -1
- package/dist-esm/src/operations/metricAlerts.js +16 -8
- package/dist-esm/src/operations/metricAlerts.js.map +1 -1
- package/dist-esm/src/operations/metricDefinitions.d.ts.map +1 -1
- package/dist-esm/src/operations/metricDefinitions.js +8 -4
- package/dist-esm/src/operations/metricDefinitions.js.map +1 -1
- package/dist-esm/src/operations/metricNamespaces.d.ts.map +1 -1
- package/dist-esm/src/operations/metricNamespaces.js +8 -4
- package/dist-esm/src/operations/metricNamespaces.js.map +1 -1
- package/dist-esm/src/operations/privateLinkScopedResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkScopedResources.js +19 -8
- package/dist-esm/src/operations/privateLinkScopedResources.js.map +1 -1
- package/dist-esm/src/operations/privateLinkScopes.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkScopes.js +37 -16
- package/dist-esm/src/operations/privateLinkScopes.js.map +1 -1
- package/dist-esm/src/operations/scheduledQueryRules.d.ts.map +1 -1
- package/dist-esm/src/operations/scheduledQueryRules.js +16 -8
- package/dist-esm/src/operations/scheduledQueryRules.js.map +1 -1
- package/dist-esm/src/operations/tenantActivityLogs.d.ts.map +1 -1
- package/dist-esm/src/operations/tenantActivityLogs.js +19 -12
- package/dist-esm/src/operations/tenantActivityLogs.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/package.json +8 -6
- package/review/arm-monitor.api.md +3 -3
- package/src/index.ts +1 -0
- package/src/models/index.ts +2 -10
- package/src/monitorClient.ts +5 -6
- package/src/operations/actionGroups.ts +25 -11
- package/src/operations/activityLogAlerts.ts +46 -19
- package/src/operations/activityLogs.ts +23 -29
- package/src/operations/alertRuleIncidents.ts +13 -11
- package/src/operations/alertRules.ts +26 -12
- package/src/operations/autoscaleSettings.ts +46 -19
- package/src/operations/baselines.ts +10 -5
- package/src/operations/dataCollectionEndpoints.ts +45 -18
- package/src/operations/dataCollectionRuleAssociations.ts +71 -35
- package/src/operations/dataCollectionRules.ts +45 -18
- package/src/operations/diagnosticSettings.ts +12 -7
- package/src/operations/diagnosticSettingsCategory.ts +12 -7
- package/src/operations/eventCategories.ts +10 -5
- package/src/operations/logProfiles.ts +12 -7
- package/src/operations/metricAlerts.ts +24 -10
- package/src/operations/metricDefinitions.ts +10 -5
- package/src/operations/metricNamespaces.ts +10 -5
- package/src/operations/privateLinkScopedResources.ts +27 -14
- package/src/operations/privateLinkScopes.ts +45 -18
- package/src/operations/scheduledQueryRules.ts +26 -12
- package/src/operations/tenantActivityLogs.ts +21 -13
- package/src/pagingHelper.ts +39 -0
- package/types/arm-monitor.d.ts +9 -6
- package/types/tsdoc-metadata.json +1 -1
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { DataCollectionEndpoints } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,9 +17,9 @@ import {
|
|
|
16
17
|
DataCollectionEndpointResource,
|
|
17
18
|
DataCollectionEndpointsListByResourceGroupNextOptionalParams,
|
|
18
19
|
DataCollectionEndpointsListByResourceGroupOptionalParams,
|
|
20
|
+
DataCollectionEndpointsListByResourceGroupResponse,
|
|
19
21
|
DataCollectionEndpointsListBySubscriptionNextOptionalParams,
|
|
20
22
|
DataCollectionEndpointsListBySubscriptionOptionalParams,
|
|
21
|
-
DataCollectionEndpointsListByResourceGroupResponse,
|
|
22
23
|
DataCollectionEndpointsListBySubscriptionResponse,
|
|
23
24
|
DataCollectionEndpointsGetOptionalParams,
|
|
24
25
|
DataCollectionEndpointsGetResponse,
|
|
@@ -61,19 +62,33 @@ export class DataCollectionEndpointsImpl implements DataCollectionEndpoints {
|
|
|
61
62
|
[Symbol.asyncIterator]() {
|
|
62
63
|
return this;
|
|
63
64
|
},
|
|
64
|
-
byPage: () => {
|
|
65
|
-
|
|
65
|
+
byPage: (settings?: PageSettings) => {
|
|
66
|
+
if (settings?.maxPageSize) {
|
|
67
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
68
|
+
}
|
|
69
|
+
return this.listByResourceGroupPagingPage(
|
|
70
|
+
resourceGroupName,
|
|
71
|
+
options,
|
|
72
|
+
settings
|
|
73
|
+
);
|
|
66
74
|
}
|
|
67
75
|
};
|
|
68
76
|
}
|
|
69
77
|
|
|
70
78
|
private async *listByResourceGroupPagingPage(
|
|
71
79
|
resourceGroupName: string,
|
|
72
|
-
options?: DataCollectionEndpointsListByResourceGroupOptionalParams
|
|
80
|
+
options?: DataCollectionEndpointsListByResourceGroupOptionalParams,
|
|
81
|
+
settings?: PageSettings
|
|
73
82
|
): AsyncIterableIterator<DataCollectionEndpointResource[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
|
|
83
|
+
let result: DataCollectionEndpointsListByResourceGroupResponse;
|
|
84
|
+
let continuationToken = settings?.continuationToken;
|
|
85
|
+
if (!continuationToken) {
|
|
86
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
87
|
+
let page = result.value || [];
|
|
88
|
+
continuationToken = result.nextLink;
|
|
89
|
+
setContinuationToken(page, continuationToken);
|
|
90
|
+
yield page;
|
|
91
|
+
}
|
|
77
92
|
while (continuationToken) {
|
|
78
93
|
result = await this._listByResourceGroupNext(
|
|
79
94
|
resourceGroupName,
|
|
@@ -81,7 +96,9 @@ export class DataCollectionEndpointsImpl implements DataCollectionEndpoints {
|
|
|
81
96
|
options
|
|
82
97
|
);
|
|
83
98
|
continuationToken = result.nextLink;
|
|
84
|
-
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
85
102
|
}
|
|
86
103
|
}
|
|
87
104
|
|
|
@@ -112,22 +129,34 @@ export class DataCollectionEndpointsImpl implements DataCollectionEndpoints {
|
|
|
112
129
|
[Symbol.asyncIterator]() {
|
|
113
130
|
return this;
|
|
114
131
|
},
|
|
115
|
-
byPage: () => {
|
|
116
|
-
|
|
132
|
+
byPage: (settings?: PageSettings) => {
|
|
133
|
+
if (settings?.maxPageSize) {
|
|
134
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
135
|
+
}
|
|
136
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
117
137
|
}
|
|
118
138
|
};
|
|
119
139
|
}
|
|
120
140
|
|
|
121
141
|
private async *listBySubscriptionPagingPage(
|
|
122
|
-
options?: DataCollectionEndpointsListBySubscriptionOptionalParams
|
|
142
|
+
options?: DataCollectionEndpointsListBySubscriptionOptionalParams,
|
|
143
|
+
settings?: PageSettings
|
|
123
144
|
): AsyncIterableIterator<DataCollectionEndpointResource[]> {
|
|
124
|
-
let result
|
|
125
|
-
|
|
126
|
-
|
|
145
|
+
let result: DataCollectionEndpointsListBySubscriptionResponse;
|
|
146
|
+
let continuationToken = settings?.continuationToken;
|
|
147
|
+
if (!continuationToken) {
|
|
148
|
+
result = await this._listBySubscription(options);
|
|
149
|
+
let page = result.value || [];
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
127
154
|
while (continuationToken) {
|
|
128
155
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
129
156
|
continuationToken = result.nextLink;
|
|
130
|
-
|
|
157
|
+
let page = result.value || [];
|
|
158
|
+
setContinuationToken(page, continuationToken);
|
|
159
|
+
yield page;
|
|
131
160
|
}
|
|
132
161
|
}
|
|
133
162
|
|
|
@@ -417,7 +446,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
417
446
|
bodyMapper: Mappers.ErrorResponseCommonV2
|
|
418
447
|
}
|
|
419
448
|
},
|
|
420
|
-
queryParameters: [Parameters.apiVersion13],
|
|
421
449
|
urlParameters: [
|
|
422
450
|
Parameters.$host,
|
|
423
451
|
Parameters.resourceGroupName,
|
|
@@ -438,7 +466,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
438
466
|
bodyMapper: Mappers.ErrorResponseCommonV2
|
|
439
467
|
}
|
|
440
468
|
},
|
|
441
|
-
queryParameters: [Parameters.apiVersion13],
|
|
442
469
|
urlParameters: [
|
|
443
470
|
Parameters.$host,
|
|
444
471
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { DataCollectionRuleAssociations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,12 +17,12 @@ import {
|
|
|
16
17
|
DataCollectionRuleAssociationProxyOnlyResource,
|
|
17
18
|
DataCollectionRuleAssociationsListByResourceNextOptionalParams,
|
|
18
19
|
DataCollectionRuleAssociationsListByResourceOptionalParams,
|
|
20
|
+
DataCollectionRuleAssociationsListByResourceResponse,
|
|
19
21
|
DataCollectionRuleAssociationsListByRuleNextOptionalParams,
|
|
20
22
|
DataCollectionRuleAssociationsListByRuleOptionalParams,
|
|
23
|
+
DataCollectionRuleAssociationsListByRuleResponse,
|
|
21
24
|
DataCollectionRuleAssociationsListByDataCollectionEndpointNextOptionalParams,
|
|
22
25
|
DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,
|
|
23
|
-
DataCollectionRuleAssociationsListByResourceResponse,
|
|
24
|
-
DataCollectionRuleAssociationsListByRuleResponse,
|
|
25
26
|
DataCollectionRuleAssociationsListByDataCollectionEndpointResponse,
|
|
26
27
|
DataCollectionRuleAssociationsGetOptionalParams,
|
|
27
28
|
DataCollectionRuleAssociationsGetResponse,
|
|
@@ -66,19 +67,29 @@ export class DataCollectionRuleAssociationsImpl
|
|
|
66
67
|
[Symbol.asyncIterator]() {
|
|
67
68
|
return this;
|
|
68
69
|
},
|
|
69
|
-
byPage: () => {
|
|
70
|
-
|
|
70
|
+
byPage: (settings?: PageSettings) => {
|
|
71
|
+
if (settings?.maxPageSize) {
|
|
72
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
73
|
+
}
|
|
74
|
+
return this.listByResourcePagingPage(resourceUri, options, settings);
|
|
71
75
|
}
|
|
72
76
|
};
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
private async *listByResourcePagingPage(
|
|
76
80
|
resourceUri: string,
|
|
77
|
-
options?: DataCollectionRuleAssociationsListByResourceOptionalParams
|
|
81
|
+
options?: DataCollectionRuleAssociationsListByResourceOptionalParams,
|
|
82
|
+
settings?: PageSettings
|
|
78
83
|
): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource[]> {
|
|
79
|
-
let result
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
let result: DataCollectionRuleAssociationsListByResourceResponse;
|
|
85
|
+
let continuationToken = settings?.continuationToken;
|
|
86
|
+
if (!continuationToken) {
|
|
87
|
+
result = await this._listByResource(resourceUri, options);
|
|
88
|
+
let page = result.value || [];
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
setContinuationToken(page, continuationToken);
|
|
91
|
+
yield page;
|
|
92
|
+
}
|
|
82
93
|
while (continuationToken) {
|
|
83
94
|
result = await this._listByResourceNext(
|
|
84
95
|
resourceUri,
|
|
@@ -86,7 +97,9 @@ export class DataCollectionRuleAssociationsImpl
|
|
|
86
97
|
options
|
|
87
98
|
);
|
|
88
99
|
continuationToken = result.nextLink;
|
|
89
|
-
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
90
103
|
}
|
|
91
104
|
}
|
|
92
105
|
|
|
@@ -127,11 +140,15 @@ export class DataCollectionRuleAssociationsImpl
|
|
|
127
140
|
[Symbol.asyncIterator]() {
|
|
128
141
|
return this;
|
|
129
142
|
},
|
|
130
|
-
byPage: () => {
|
|
143
|
+
byPage: (settings?: PageSettings) => {
|
|
144
|
+
if (settings?.maxPageSize) {
|
|
145
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
146
|
+
}
|
|
131
147
|
return this.listByRulePagingPage(
|
|
132
148
|
resourceGroupName,
|
|
133
149
|
dataCollectionRuleName,
|
|
134
|
-
options
|
|
150
|
+
options,
|
|
151
|
+
settings
|
|
135
152
|
);
|
|
136
153
|
}
|
|
137
154
|
};
|
|
@@ -140,15 +157,22 @@ export class DataCollectionRuleAssociationsImpl
|
|
|
140
157
|
private async *listByRulePagingPage(
|
|
141
158
|
resourceGroupName: string,
|
|
142
159
|
dataCollectionRuleName: string,
|
|
143
|
-
options?: DataCollectionRuleAssociationsListByRuleOptionalParams
|
|
160
|
+
options?: DataCollectionRuleAssociationsListByRuleOptionalParams,
|
|
161
|
+
settings?: PageSettings
|
|
144
162
|
): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource[]> {
|
|
145
|
-
let result
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
163
|
+
let result: DataCollectionRuleAssociationsListByRuleResponse;
|
|
164
|
+
let continuationToken = settings?.continuationToken;
|
|
165
|
+
if (!continuationToken) {
|
|
166
|
+
result = await this._listByRule(
|
|
167
|
+
resourceGroupName,
|
|
168
|
+
dataCollectionRuleName,
|
|
169
|
+
options
|
|
170
|
+
);
|
|
171
|
+
let page = result.value || [];
|
|
172
|
+
continuationToken = result.nextLink;
|
|
173
|
+
setContinuationToken(page, continuationToken);
|
|
174
|
+
yield page;
|
|
175
|
+
}
|
|
152
176
|
while (continuationToken) {
|
|
153
177
|
result = await this._listByRuleNext(
|
|
154
178
|
resourceGroupName,
|
|
@@ -157,7 +181,9 @@ export class DataCollectionRuleAssociationsImpl
|
|
|
157
181
|
options
|
|
158
182
|
);
|
|
159
183
|
continuationToken = result.nextLink;
|
|
160
|
-
|
|
184
|
+
let page = result.value || [];
|
|
185
|
+
setContinuationToken(page, continuationToken);
|
|
186
|
+
yield page;
|
|
161
187
|
}
|
|
162
188
|
}
|
|
163
189
|
|
|
@@ -201,11 +227,15 @@ export class DataCollectionRuleAssociationsImpl
|
|
|
201
227
|
[Symbol.asyncIterator]() {
|
|
202
228
|
return this;
|
|
203
229
|
},
|
|
204
|
-
byPage: () => {
|
|
230
|
+
byPage: (settings?: PageSettings) => {
|
|
231
|
+
if (settings?.maxPageSize) {
|
|
232
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
233
|
+
}
|
|
205
234
|
return this.listByDataCollectionEndpointPagingPage(
|
|
206
235
|
resourceGroupName,
|
|
207
236
|
dataCollectionEndpointName,
|
|
208
|
-
options
|
|
237
|
+
options,
|
|
238
|
+
settings
|
|
209
239
|
);
|
|
210
240
|
}
|
|
211
241
|
};
|
|
@@ -214,15 +244,22 @@ export class DataCollectionRuleAssociationsImpl
|
|
|
214
244
|
private async *listByDataCollectionEndpointPagingPage(
|
|
215
245
|
resourceGroupName: string,
|
|
216
246
|
dataCollectionEndpointName: string,
|
|
217
|
-
options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams
|
|
247
|
+
options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,
|
|
248
|
+
settings?: PageSettings
|
|
218
249
|
): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource[]> {
|
|
219
|
-
let result
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
250
|
+
let result: DataCollectionRuleAssociationsListByDataCollectionEndpointResponse;
|
|
251
|
+
let continuationToken = settings?.continuationToken;
|
|
252
|
+
if (!continuationToken) {
|
|
253
|
+
result = await this._listByDataCollectionEndpoint(
|
|
254
|
+
resourceGroupName,
|
|
255
|
+
dataCollectionEndpointName,
|
|
256
|
+
options
|
|
257
|
+
);
|
|
258
|
+
let page = result.value || [];
|
|
259
|
+
continuationToken = result.nextLink;
|
|
260
|
+
setContinuationToken(page, continuationToken);
|
|
261
|
+
yield page;
|
|
262
|
+
}
|
|
226
263
|
while (continuationToken) {
|
|
227
264
|
result = await this._listByDataCollectionEndpointNext(
|
|
228
265
|
resourceGroupName,
|
|
@@ -231,7 +268,9 @@ export class DataCollectionRuleAssociationsImpl
|
|
|
231
268
|
options
|
|
232
269
|
);
|
|
233
270
|
continuationToken = result.nextLink;
|
|
234
|
-
|
|
271
|
+
let page = result.value || [];
|
|
272
|
+
setContinuationToken(page, continuationToken);
|
|
273
|
+
yield page;
|
|
235
274
|
}
|
|
236
275
|
}
|
|
237
276
|
|
|
@@ -557,7 +596,6 @@ const listByResourceNextOperationSpec: coreClient.OperationSpec = {
|
|
|
557
596
|
bodyMapper: Mappers.ErrorResponseCommonV2
|
|
558
597
|
}
|
|
559
598
|
},
|
|
560
|
-
queryParameters: [Parameters.apiVersion13],
|
|
561
599
|
urlParameters: [
|
|
562
600
|
Parameters.$host,
|
|
563
601
|
Parameters.nextLink,
|
|
@@ -578,7 +616,6 @@ const listByRuleNextOperationSpec: coreClient.OperationSpec = {
|
|
|
578
616
|
bodyMapper: Mappers.ErrorResponseCommonV2
|
|
579
617
|
}
|
|
580
618
|
},
|
|
581
|
-
queryParameters: [Parameters.apiVersion13],
|
|
582
619
|
urlParameters: [
|
|
583
620
|
Parameters.$host,
|
|
584
621
|
Parameters.resourceGroupName,
|
|
@@ -601,7 +638,6 @@ const listByDataCollectionEndpointNextOperationSpec: coreClient.OperationSpec =
|
|
|
601
638
|
bodyMapper: Mappers.ErrorResponseCommonV2
|
|
602
639
|
}
|
|
603
640
|
},
|
|
604
|
-
queryParameters: [Parameters.apiVersion13],
|
|
605
641
|
urlParameters: [
|
|
606
642
|
Parameters.$host,
|
|
607
643
|
Parameters.resourceGroupName,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { DataCollectionRules } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,9 +17,9 @@ import {
|
|
|
16
17
|
DataCollectionRuleResource,
|
|
17
18
|
DataCollectionRulesListByResourceGroupNextOptionalParams,
|
|
18
19
|
DataCollectionRulesListByResourceGroupOptionalParams,
|
|
20
|
+
DataCollectionRulesListByResourceGroupResponse,
|
|
19
21
|
DataCollectionRulesListBySubscriptionNextOptionalParams,
|
|
20
22
|
DataCollectionRulesListBySubscriptionOptionalParams,
|
|
21
|
-
DataCollectionRulesListByResourceGroupResponse,
|
|
22
23
|
DataCollectionRulesListBySubscriptionResponse,
|
|
23
24
|
DataCollectionRulesGetOptionalParams,
|
|
24
25
|
DataCollectionRulesGetResponse,
|
|
@@ -61,19 +62,33 @@ export class DataCollectionRulesImpl implements DataCollectionRules {
|
|
|
61
62
|
[Symbol.asyncIterator]() {
|
|
62
63
|
return this;
|
|
63
64
|
},
|
|
64
|
-
byPage: () => {
|
|
65
|
-
|
|
65
|
+
byPage: (settings?: PageSettings) => {
|
|
66
|
+
if (settings?.maxPageSize) {
|
|
67
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
68
|
+
}
|
|
69
|
+
return this.listByResourceGroupPagingPage(
|
|
70
|
+
resourceGroupName,
|
|
71
|
+
options,
|
|
72
|
+
settings
|
|
73
|
+
);
|
|
66
74
|
}
|
|
67
75
|
};
|
|
68
76
|
}
|
|
69
77
|
|
|
70
78
|
private async *listByResourceGroupPagingPage(
|
|
71
79
|
resourceGroupName: string,
|
|
72
|
-
options?: DataCollectionRulesListByResourceGroupOptionalParams
|
|
80
|
+
options?: DataCollectionRulesListByResourceGroupOptionalParams,
|
|
81
|
+
settings?: PageSettings
|
|
73
82
|
): AsyncIterableIterator<DataCollectionRuleResource[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
|
|
83
|
+
let result: DataCollectionRulesListByResourceGroupResponse;
|
|
84
|
+
let continuationToken = settings?.continuationToken;
|
|
85
|
+
if (!continuationToken) {
|
|
86
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
87
|
+
let page = result.value || [];
|
|
88
|
+
continuationToken = result.nextLink;
|
|
89
|
+
setContinuationToken(page, continuationToken);
|
|
90
|
+
yield page;
|
|
91
|
+
}
|
|
77
92
|
while (continuationToken) {
|
|
78
93
|
result = await this._listByResourceGroupNext(
|
|
79
94
|
resourceGroupName,
|
|
@@ -81,7 +96,9 @@ export class DataCollectionRulesImpl implements DataCollectionRules {
|
|
|
81
96
|
options
|
|
82
97
|
);
|
|
83
98
|
continuationToken = result.nextLink;
|
|
84
|
-
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
85
102
|
}
|
|
86
103
|
}
|
|
87
104
|
|
|
@@ -112,22 +129,34 @@ export class DataCollectionRulesImpl implements DataCollectionRules {
|
|
|
112
129
|
[Symbol.asyncIterator]() {
|
|
113
130
|
return this;
|
|
114
131
|
},
|
|
115
|
-
byPage: () => {
|
|
116
|
-
|
|
132
|
+
byPage: (settings?: PageSettings) => {
|
|
133
|
+
if (settings?.maxPageSize) {
|
|
134
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
135
|
+
}
|
|
136
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
117
137
|
}
|
|
118
138
|
};
|
|
119
139
|
}
|
|
120
140
|
|
|
121
141
|
private async *listBySubscriptionPagingPage(
|
|
122
|
-
options?: DataCollectionRulesListBySubscriptionOptionalParams
|
|
142
|
+
options?: DataCollectionRulesListBySubscriptionOptionalParams,
|
|
143
|
+
settings?: PageSettings
|
|
123
144
|
): AsyncIterableIterator<DataCollectionRuleResource[]> {
|
|
124
|
-
let result
|
|
125
|
-
|
|
126
|
-
|
|
145
|
+
let result: DataCollectionRulesListBySubscriptionResponse;
|
|
146
|
+
let continuationToken = settings?.continuationToken;
|
|
147
|
+
if (!continuationToken) {
|
|
148
|
+
result = await this._listBySubscription(options);
|
|
149
|
+
let page = result.value || [];
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
127
154
|
while (continuationToken) {
|
|
128
155
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
129
156
|
continuationToken = result.nextLink;
|
|
130
|
-
|
|
157
|
+
let page = result.value || [];
|
|
158
|
+
setContinuationToken(page, continuationToken);
|
|
159
|
+
yield page;
|
|
131
160
|
}
|
|
132
161
|
}
|
|
133
162
|
|
|
@@ -413,7 +442,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
413
442
|
bodyMapper: Mappers.ErrorResponseCommonV2
|
|
414
443
|
}
|
|
415
444
|
},
|
|
416
|
-
queryParameters: [Parameters.apiVersion13],
|
|
417
445
|
urlParameters: [
|
|
418
446
|
Parameters.$host,
|
|
419
447
|
Parameters.resourceGroupName,
|
|
@@ -434,7 +462,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
434
462
|
bodyMapper: Mappers.ErrorResponseCommonV2
|
|
435
463
|
}
|
|
436
464
|
},
|
|
437
|
-
queryParameters: [Parameters.apiVersion13],
|
|
438
465
|
urlParameters: [
|
|
439
466
|
Parameters.$host,
|
|
440
467
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { DiagnosticSettings } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -15,12 +15,12 @@ import { MonitorClient } from "../monitorClient";
|
|
|
15
15
|
import {
|
|
16
16
|
DiagnosticSettingsResource,
|
|
17
17
|
DiagnosticSettingsListOptionalParams,
|
|
18
|
+
DiagnosticSettingsListResponse,
|
|
18
19
|
DiagnosticSettingsGetOptionalParams,
|
|
19
20
|
DiagnosticSettingsGetResponse,
|
|
20
21
|
DiagnosticSettingsCreateOrUpdateOptionalParams,
|
|
21
22
|
DiagnosticSettingsCreateOrUpdateResponse,
|
|
22
|
-
DiagnosticSettingsDeleteOptionalParams
|
|
23
|
-
DiagnosticSettingsListResponse
|
|
23
|
+
DiagnosticSettingsDeleteOptionalParams
|
|
24
24
|
} from "../models";
|
|
25
25
|
|
|
26
26
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -53,17 +53,22 @@ export class DiagnosticSettingsImpl implements DiagnosticSettings {
|
|
|
53
53
|
[Symbol.asyncIterator]() {
|
|
54
54
|
return this;
|
|
55
55
|
},
|
|
56
|
-
byPage: () => {
|
|
57
|
-
|
|
56
|
+
byPage: (settings?: PageSettings) => {
|
|
57
|
+
if (settings?.maxPageSize) {
|
|
58
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
59
|
+
}
|
|
60
|
+
return this.listPagingPage(resourceUri, options, settings);
|
|
58
61
|
}
|
|
59
62
|
};
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
private async *listPagingPage(
|
|
63
66
|
resourceUri: string,
|
|
64
|
-
options?: DiagnosticSettingsListOptionalParams
|
|
67
|
+
options?: DiagnosticSettingsListOptionalParams,
|
|
68
|
+
_settings?: PageSettings
|
|
65
69
|
): AsyncIterableIterator<DiagnosticSettingsResource[]> {
|
|
66
|
-
let result
|
|
70
|
+
let result: DiagnosticSettingsListResponse;
|
|
71
|
+
result = await this._list(resourceUri, options);
|
|
67
72
|
yield result.value || [];
|
|
68
73
|
}
|
|
69
74
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { DiagnosticSettingsCategory } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -15,9 +15,9 @@ import { MonitorClient } from "../monitorClient";
|
|
|
15
15
|
import {
|
|
16
16
|
DiagnosticSettingsCategoryResource,
|
|
17
17
|
DiagnosticSettingsCategoryListOptionalParams,
|
|
18
|
+
DiagnosticSettingsCategoryListResponse,
|
|
18
19
|
DiagnosticSettingsCategoryGetOptionalParams,
|
|
19
|
-
DiagnosticSettingsCategoryGetResponse
|
|
20
|
-
DiagnosticSettingsCategoryListResponse
|
|
20
|
+
DiagnosticSettingsCategoryGetResponse
|
|
21
21
|
} from "../models";
|
|
22
22
|
|
|
23
23
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -51,17 +51,22 @@ export class DiagnosticSettingsCategoryImpl
|
|
|
51
51
|
[Symbol.asyncIterator]() {
|
|
52
52
|
return this;
|
|
53
53
|
},
|
|
54
|
-
byPage: () => {
|
|
55
|
-
|
|
54
|
+
byPage: (settings?: PageSettings) => {
|
|
55
|
+
if (settings?.maxPageSize) {
|
|
56
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
57
|
+
}
|
|
58
|
+
return this.listPagingPage(resourceUri, options, settings);
|
|
56
59
|
}
|
|
57
60
|
};
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
private async *listPagingPage(
|
|
61
64
|
resourceUri: string,
|
|
62
|
-
options?: DiagnosticSettingsCategoryListOptionalParams
|
|
65
|
+
options?: DiagnosticSettingsCategoryListOptionalParams,
|
|
66
|
+
_settings?: PageSettings
|
|
63
67
|
): AsyncIterableIterator<DiagnosticSettingsCategoryResource[]> {
|
|
64
|
-
let result
|
|
68
|
+
let result: DiagnosticSettingsCategoryListResponse;
|
|
69
|
+
result = await this._list(resourceUri, options);
|
|
65
70
|
yield result.value || [];
|
|
66
71
|
}
|
|
67
72
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { EventCategories } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -47,16 +47,21 @@ export class EventCategoriesImpl implements EventCategories {
|
|
|
47
47
|
[Symbol.asyncIterator]() {
|
|
48
48
|
return this;
|
|
49
49
|
},
|
|
50
|
-
byPage: () => {
|
|
51
|
-
|
|
50
|
+
byPage: (settings?: PageSettings) => {
|
|
51
|
+
if (settings?.maxPageSize) {
|
|
52
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
53
|
+
}
|
|
54
|
+
return this.listPagingPage(options, settings);
|
|
52
55
|
}
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
private async *listPagingPage(
|
|
57
|
-
options?: EventCategoriesListOptionalParams
|
|
60
|
+
options?: EventCategoriesListOptionalParams,
|
|
61
|
+
_settings?: PageSettings
|
|
58
62
|
): AsyncIterableIterator<LocalizableString[]> {
|
|
59
|
-
let result
|
|
63
|
+
let result: EventCategoriesListResponse;
|
|
64
|
+
result = await this._list(options);
|
|
60
65
|
yield result.value || [];
|
|
61
66
|
}
|
|
62
67
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { LogProfiles } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -15,6 +15,7 @@ import { MonitorClient } from "../monitorClient";
|
|
|
15
15
|
import {
|
|
16
16
|
LogProfileResource,
|
|
17
17
|
LogProfilesListOptionalParams,
|
|
18
|
+
LogProfilesListResponse,
|
|
18
19
|
LogProfilesDeleteOptionalParams,
|
|
19
20
|
LogProfilesGetOptionalParams,
|
|
20
21
|
LogProfilesGetResponse,
|
|
@@ -22,8 +23,7 @@ import {
|
|
|
22
23
|
LogProfilesCreateOrUpdateResponse,
|
|
23
24
|
LogProfileResourcePatch,
|
|
24
25
|
LogProfilesUpdateOptionalParams,
|
|
25
|
-
LogProfilesUpdateResponse
|
|
26
|
-
LogProfilesListResponse
|
|
26
|
+
LogProfilesUpdateResponse
|
|
27
27
|
} from "../models";
|
|
28
28
|
|
|
29
29
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -54,16 +54,21 @@ export class LogProfilesImpl implements LogProfiles {
|
|
|
54
54
|
[Symbol.asyncIterator]() {
|
|
55
55
|
return this;
|
|
56
56
|
},
|
|
57
|
-
byPage: () => {
|
|
58
|
-
|
|
57
|
+
byPage: (settings?: PageSettings) => {
|
|
58
|
+
if (settings?.maxPageSize) {
|
|
59
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
60
|
+
}
|
|
61
|
+
return this.listPagingPage(options, settings);
|
|
59
62
|
}
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
private async *listPagingPage(
|
|
64
|
-
options?: LogProfilesListOptionalParams
|
|
67
|
+
options?: LogProfilesListOptionalParams,
|
|
68
|
+
_settings?: PageSettings
|
|
65
69
|
): AsyncIterableIterator<LogProfileResource[]> {
|
|
66
|
-
let result
|
|
70
|
+
let result: LogProfilesListResponse;
|
|
71
|
+
result = await this._list(options);
|
|
67
72
|
yield result.value || [];
|
|
68
73
|
}
|
|
69
74
|
|