@azure/arm-monitor-profile-2020-09-01-hybrid 2.1.1-alpha.20250618.1 → 2.1.1-alpha.20250718.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/models/mappers.js +24 -11
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/monitorClient.js +17 -5
- package/dist/browser/monitorClient.js.map +1 -1
- package/dist/browser/operations/diagnosticSettings.js +1 -0
- package/dist/browser/operations/diagnosticSettings.js.map +1 -1
- package/dist/browser/operations/diagnosticSettingsCategory.js +1 -0
- package/dist/browser/operations/diagnosticSettingsCategory.js.map +1 -1
- package/dist/browser/operations/eventCategories.js +10 -27
- package/dist/browser/operations/eventCategories.js.map +1 -1
- package/dist/browser/operations/metricDefinitions.js +10 -27
- package/dist/browser/operations/metricDefinitions.js.map +1 -1
- package/dist/browser/operations/metrics.js +1 -0
- package/dist/browser/operations/metrics.js.map +1 -1
- package/dist/browser/operations/operations.js +1 -0
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/models/mappers.js +24 -11
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/monitorClient.js +17 -5
- package/dist/commonjs/monitorClient.js.map +1 -1
- package/dist/commonjs/operations/diagnosticSettings.js +1 -0
- package/dist/commonjs/operations/diagnosticSettings.js.map +1 -1
- package/dist/commonjs/operations/diagnosticSettingsCategory.js +1 -0
- package/dist/commonjs/operations/diagnosticSettingsCategory.js.map +1 -1
- package/dist/commonjs/operations/eventCategories.js +10 -26
- package/dist/commonjs/operations/eventCategories.js.map +1 -1
- package/dist/commonjs/operations/metricDefinitions.js +10 -26
- package/dist/commonjs/operations/metricDefinitions.js.map +1 -1
- package/dist/commonjs/operations/metrics.js +1 -0
- package/dist/commonjs/operations/metrics.js.map +1 -1
- package/dist/commonjs/operations/operations.js +1 -0
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/models/mappers.js +24 -11
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/monitorClient.js +17 -5
- package/dist/esm/monitorClient.js.map +1 -1
- package/dist/esm/operations/diagnosticSettings.js +1 -0
- package/dist/esm/operations/diagnosticSettings.js.map +1 -1
- package/dist/esm/operations/diagnosticSettingsCategory.js +1 -0
- package/dist/esm/operations/diagnosticSettingsCategory.js.map +1 -1
- package/dist/esm/operations/eventCategories.js +10 -27
- package/dist/esm/operations/eventCategories.js.map +1 -1
- package/dist/esm/operations/metricDefinitions.js +10 -27
- package/dist/esm/operations/metricDefinitions.js.map +1 -1
- package/dist/esm/operations/metrics.js +1 -0
- package/dist/esm/operations/metrics.js.map +1 -1
- package/dist/esm/operations/operations.js +1 -0
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/models/mappers.js +24 -11
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/monitorClient.js +17 -5
- package/dist/react-native/monitorClient.js.map +1 -1
- package/dist/react-native/operations/diagnosticSettings.js +1 -0
- package/dist/react-native/operations/diagnosticSettings.js.map +1 -1
- package/dist/react-native/operations/diagnosticSettingsCategory.js +1 -0
- package/dist/react-native/operations/diagnosticSettingsCategory.js.map +1 -1
- package/dist/react-native/operations/eventCategories.js +10 -27
- package/dist/react-native/operations/eventCategories.js.map +1 -1
- package/dist/react-native/operations/metricDefinitions.js +10 -27
- package/dist/react-native/operations/metricDefinitions.js.map +1 -1
- package/dist/react-native/operations/metrics.js +1 -0
- package/dist/react-native/operations/metrics.js.map +1 -1
- package/dist/react-native/operations/operations.js +1 -0
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-monitor-profile-2020-09-01-hybrid.api.md → arm-monitor-profile-2020-09-01-hybrid-node.api.md} +0 -0
|
@@ -681,27 +681,33 @@ export const DiagnosticSettingsResource = {
|
|
|
681
681
|
type: {
|
|
682
682
|
name: "Composite",
|
|
683
683
|
className: "DiagnosticSettingsResource",
|
|
684
|
-
modelProperties:
|
|
684
|
+
modelProperties: {
|
|
685
|
+
...ProxyOnlyResource.type.modelProperties,
|
|
686
|
+
storageAccountId: {
|
|
685
687
|
serializedName: "properties.storageAccountId",
|
|
686
688
|
type: {
|
|
687
689
|
name: "String"
|
|
688
690
|
}
|
|
689
|
-
},
|
|
691
|
+
},
|
|
692
|
+
serviceBusRuleId: {
|
|
690
693
|
serializedName: "properties.serviceBusRuleId",
|
|
691
694
|
type: {
|
|
692
695
|
name: "String"
|
|
693
696
|
}
|
|
694
|
-
},
|
|
697
|
+
},
|
|
698
|
+
eventHubAuthorizationRuleId: {
|
|
695
699
|
serializedName: "properties.eventHubAuthorizationRuleId",
|
|
696
700
|
type: {
|
|
697
701
|
name: "String"
|
|
698
702
|
}
|
|
699
|
-
},
|
|
703
|
+
},
|
|
704
|
+
eventHubName: {
|
|
700
705
|
serializedName: "properties.eventHubName",
|
|
701
706
|
type: {
|
|
702
707
|
name: "String"
|
|
703
708
|
}
|
|
704
|
-
},
|
|
709
|
+
},
|
|
710
|
+
metrics: {
|
|
705
711
|
serializedName: "properties.metrics",
|
|
706
712
|
type: {
|
|
707
713
|
name: "Sequence",
|
|
@@ -712,7 +718,8 @@ export const DiagnosticSettingsResource = {
|
|
|
712
718
|
}
|
|
713
719
|
}
|
|
714
720
|
}
|
|
715
|
-
},
|
|
721
|
+
},
|
|
722
|
+
logs: {
|
|
716
723
|
serializedName: "properties.logs",
|
|
717
724
|
type: {
|
|
718
725
|
name: "Sequence",
|
|
@@ -723,30 +730,36 @@ export const DiagnosticSettingsResource = {
|
|
|
723
730
|
}
|
|
724
731
|
}
|
|
725
732
|
}
|
|
726
|
-
},
|
|
733
|
+
},
|
|
734
|
+
workspaceId: {
|
|
727
735
|
serializedName: "properties.workspaceId",
|
|
728
736
|
type: {
|
|
729
737
|
name: "String"
|
|
730
738
|
}
|
|
731
|
-
},
|
|
739
|
+
},
|
|
740
|
+
logAnalyticsDestinationType: {
|
|
732
741
|
serializedName: "properties.logAnalyticsDestinationType",
|
|
733
742
|
type: {
|
|
734
743
|
name: "String"
|
|
735
744
|
}
|
|
736
|
-
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
737
747
|
}
|
|
738
748
|
};
|
|
739
749
|
export const DiagnosticSettingsCategoryResource = {
|
|
740
750
|
type: {
|
|
741
751
|
name: "Composite",
|
|
742
752
|
className: "DiagnosticSettingsCategoryResource",
|
|
743
|
-
modelProperties:
|
|
753
|
+
modelProperties: {
|
|
754
|
+
...ProxyOnlyResource.type.modelProperties,
|
|
755
|
+
categoryType: {
|
|
744
756
|
serializedName: "properties.categoryType",
|
|
745
757
|
type: {
|
|
746
758
|
name: "Enum",
|
|
747
759
|
allowedValues: ["Metrics", "Logs"]
|
|
748
760
|
}
|
|
749
|
-
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
750
763
|
}
|
|
751
764
|
};
|
|
752
765
|
//# sourceMappingURL=mappers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,0BAA0B,GAA+B;IACpE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,4BAA4B;QACvC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAA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EAAE,QAAQ;iBACf;aACF,EACD,2BAA2B,EAAE;gBAC3B,cAAc,EAAE,wCAAwC;gBACxD,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,GACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAA+B;IAC5E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oCAAoC;QAC/C,eAAe,kCACV,iBAAiB,CAAC,IAAI,CAAC,eAAe,KACzC,YAAY,EAAE;gBACZ,cAAc,EAAE,yBAAyB;gBACzC,IAAI,EAAE;oBACJ,IAAI,EAAE,MAAM;oBACZ,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;iBACnC;aACF,GACF;KACF;CACF,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\";\n\nexport const MetricDefinitionCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricDefinitionCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricDefinition\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MetricDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricDefinition\",\n modelProperties: {\n isDimensionRequired: {\n serializedName: \"isDimensionRequired\",\n type: {\n name: \"Boolean\"\n }\n },\n resourceId: {\n serializedName: \"resourceId\",\n type: {\n name: \"String\"\n }\n },\n namespace: {\n serializedName: \"namespace\",\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n },\n displayDescription: {\n serializedName: \"displayDescription\",\n type: {\n name: \"String\"\n }\n },\n category: {\n serializedName: \"category\",\n type: {\n name: \"String\"\n }\n },\n metricClass: {\n serializedName: \"metricClass\",\n type: {\n name: \"String\"\n }\n },\n unit: {\n serializedName: \"unit\",\n type: {\n name: \"String\"\n }\n },\n primaryAggregationType: {\n serializedName: \"primaryAggregationType\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"None\",\n \"Average\",\n \"Count\",\n \"Minimum\",\n \"Maximum\",\n \"Total\"\n ]\n }\n },\n supportedAggregationTypes: {\n serializedName: \"supportedAggregationTypes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Enum\",\n allowedValues: [\n \"None\",\n \"Average\",\n \"Count\",\n \"Minimum\",\n \"Maximum\",\n \"Total\"\n ]\n }\n }\n }\n },\n metricAvailabilities: {\n serializedName: \"metricAvailabilities\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricAvailability\"\n }\n }\n }\n },\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\"\n }\n },\n dimensions: {\n serializedName: \"dimensions\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const LocalizableString: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LocalizableString\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n localizedValue: {\n serializedName: \"localizedValue\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const MetricAvailability: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricAvailability\",\n modelProperties: {\n timeGrain: {\n serializedName: \"timeGrain\",\n type: {\n name: \"TimeSpan\"\n }\n },\n retention: {\n serializedName: \"retention\",\n type: {\n name: \"TimeSpan\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Response: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Response\",\n modelProperties: {\n cost: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"cost\",\n type: {\n name: \"Number\"\n }\n },\n timespan: {\n serializedName: \"timespan\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n interval: {\n serializedName: \"interval\",\n type: {\n name: \"TimeSpan\"\n }\n },\n namespace: {\n serializedName: \"namespace\",\n type: {\n name: \"String\"\n }\n },\n resourceregion: {\n serializedName: \"resourceregion\",\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Metric\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Metric: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Metric\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n },\n displayDescription: {\n serializedName: \"displayDescription\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"errorCode\",\n type: {\n name: \"String\"\n }\n },\n errorMessage: {\n serializedName: \"errorMessage\",\n type: {\n name: \"String\"\n }\n },\n unit: {\n serializedName: \"unit\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n timeseries: {\n serializedName: \"timeseries\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"TimeSeriesElement\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const TimeSeriesElement: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TimeSeriesElement\",\n modelProperties: {\n metadatavalues: {\n serializedName: \"metadatavalues\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetadataValue\"\n }\n }\n }\n },\n data: {\n serializedName: \"data\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricValue\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MetadataValue: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataValue\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const MetricValue: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricValue\",\n modelProperties: {\n timeStamp: {\n serializedName: \"timeStamp\",\n required: true,\n type: {\n name: \"DateTime\"\n }\n },\n average: {\n serializedName: \"average\",\n type: {\n name: \"Number\"\n }\n },\n minimum: {\n serializedName: \"minimum\",\n type: {\n name: \"Number\"\n }\n },\n maximum: {\n serializedName: \"maximum\",\n type: {\n name: \"Number\"\n }\n },\n total: {\n serializedName: \"total\",\n type: {\n name: \"Number\"\n }\n },\n count: {\n serializedName: \"count\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const MetricSettings: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricSettings\",\n modelProperties: {\n timeGrain: {\n serializedName: \"timeGrain\",\n type: {\n name: \"TimeSpan\"\n }\n },\n category: {\n serializedName: \"category\",\n type: {\n name: \"String\"\n }\n },\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n retentionPolicy: {\n serializedName: \"retentionPolicy\",\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\"\n }\n }\n }\n }\n};\n\nexport const RetentionPolicy: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\",\n modelProperties: {\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n days: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"days\",\n required: true,\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const LogSettings: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LogSettings\",\n modelProperties: {\n category: {\n serializedName: \"category\",\n type: {\n name: \"String\"\n }\n },\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n retentionPolicy: {\n serializedName: \"retentionPolicy\",\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\"\n }\n }\n }\n }\n};\n\nexport const ProxyOnlyResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProxyOnlyResource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsResourceCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsResourceCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsCategoryResourceCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsCategoryResourceCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsCategoryResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const EventCategoryCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EventCategoryCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsResource\",\n modelProperties: {\n ...ProxyOnlyResource.type.modelProperties,\n storageAccountId: {\n serializedName: \"properties.storageAccountId\",\n type: {\n name: \"String\"\n }\n },\n serviceBusRuleId: {\n serializedName: \"properties.serviceBusRuleId\",\n type: {\n name: \"String\"\n }\n },\n eventHubAuthorizationRuleId: {\n serializedName: \"properties.eventHubAuthorizationRuleId\",\n type: {\n name: \"String\"\n }\n },\n eventHubName: {\n serializedName: \"properties.eventHubName\",\n type: {\n name: \"String\"\n }\n },\n metrics: {\n serializedName: \"properties.metrics\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricSettings\"\n }\n }\n }\n },\n logs: {\n serializedName: \"properties.logs\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LogSettings\"\n }\n }\n }\n },\n workspaceId: {\n serializedName: \"properties.workspaceId\",\n type: {\n name: \"String\"\n }\n },\n logAnalyticsDestinationType: {\n serializedName: \"properties.logAnalyticsDestinationType\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsCategoryResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsCategoryResource\",\n modelProperties: {\n ...ProxyOnlyResource.type.modelProperties,\n categoryType: {\n serializedName: \"properties.categoryType\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Metrics\", \"Logs\"]\n }\n }\n }\n }\n};\n"]}
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,0BAA0B,GAA+B;IACpE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,4BAA4B;QACvC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,kBAAkB;yBAC9B;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,mBAAmB,EAAE;gBACnB,cAAc,EAAE,qBAAqB;gBACrC,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,UAAU,EA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ACzC,YAAY,EAAE;gBACZ,cAAc,EAAE,yBAAyB;gBACzC,IAAI,EAAE;oBACJ,IAAI,EAAE,MAAM;oBACZ,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;iBACnC;aACF;SACF;KACF;CACF,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\";\n\nexport const MetricDefinitionCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricDefinitionCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricDefinition\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MetricDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricDefinition\",\n modelProperties: {\n isDimensionRequired: {\n serializedName: \"isDimensionRequired\",\n type: {\n name: \"Boolean\"\n }\n },\n resourceId: {\n serializedName: \"resourceId\",\n type: {\n name: \"String\"\n }\n },\n namespace: {\n serializedName: \"namespace\",\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n },\n displayDescription: {\n serializedName: \"displayDescription\",\n type: {\n name: \"String\"\n }\n },\n category: {\n serializedName: \"category\",\n type: {\n name: \"String\"\n }\n },\n metricClass: {\n serializedName: \"metricClass\",\n type: {\n name: \"String\"\n }\n },\n unit: {\n serializedName: \"unit\",\n type: {\n name: \"String\"\n }\n },\n primaryAggregationType: {\n serializedName: \"primaryAggregationType\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"None\",\n \"Average\",\n \"Count\",\n \"Minimum\",\n \"Maximum\",\n \"Total\"\n ]\n }\n },\n supportedAggregationTypes: {\n serializedName: \"supportedAggregationTypes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Enum\",\n allowedValues: [\n \"None\",\n \"Average\",\n \"Count\",\n \"Minimum\",\n \"Maximum\",\n \"Total\"\n ]\n }\n }\n }\n },\n metricAvailabilities: {\n serializedName: \"metricAvailabilities\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricAvailability\"\n }\n }\n }\n },\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\"\n }\n },\n dimensions: {\n serializedName: \"dimensions\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const LocalizableString: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LocalizableString\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n localizedValue: {\n serializedName: \"localizedValue\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const MetricAvailability: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricAvailability\",\n modelProperties: {\n timeGrain: {\n serializedName: \"timeGrain\",\n type: {\n name: \"TimeSpan\"\n }\n },\n retention: {\n serializedName: \"retention\",\n type: {\n name: \"TimeSpan\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Response: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Response\",\n modelProperties: {\n cost: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"cost\",\n type: {\n name: \"Number\"\n }\n },\n timespan: {\n serializedName: \"timespan\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n interval: {\n serializedName: \"interval\",\n type: {\n name: \"TimeSpan\"\n }\n },\n namespace: {\n serializedName: \"namespace\",\n type: {\n name: \"String\"\n }\n },\n resourceregion: {\n serializedName: \"resourceregion\",\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Metric\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Metric: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Metric\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n },\n displayDescription: {\n serializedName: \"displayDescription\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"errorCode\",\n type: {\n name: \"String\"\n }\n },\n errorMessage: {\n serializedName: \"errorMessage\",\n type: {\n name: \"String\"\n }\n },\n unit: {\n serializedName: \"unit\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n timeseries: {\n serializedName: \"timeseries\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"TimeSeriesElement\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const TimeSeriesElement: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TimeSeriesElement\",\n modelProperties: {\n metadatavalues: {\n serializedName: \"metadatavalues\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetadataValue\"\n }\n }\n }\n },\n data: {\n serializedName: \"data\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricValue\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MetadataValue: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataValue\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const MetricValue: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricValue\",\n modelProperties: {\n timeStamp: {\n serializedName: \"timeStamp\",\n required: true,\n type: {\n name: \"DateTime\"\n }\n },\n average: {\n serializedName: \"average\",\n type: {\n name: \"Number\"\n }\n },\n minimum: {\n serializedName: \"minimum\",\n type: {\n name: \"Number\"\n }\n },\n maximum: {\n serializedName: \"maximum\",\n type: {\n name: \"Number\"\n }\n },\n total: {\n serializedName: \"total\",\n type: {\n name: \"Number\"\n }\n },\n count: {\n serializedName: \"count\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const MetricSettings: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricSettings\",\n modelProperties: {\n timeGrain: {\n serializedName: \"timeGrain\",\n type: {\n name: \"TimeSpan\"\n }\n },\n category: {\n serializedName: \"category\",\n type: {\n name: \"String\"\n }\n },\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n retentionPolicy: {\n serializedName: \"retentionPolicy\",\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\"\n }\n }\n }\n }\n};\n\nexport const RetentionPolicy: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\",\n modelProperties: {\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n days: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"days\",\n required: true,\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const LogSettings: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LogSettings\",\n modelProperties: {\n category: {\n serializedName: \"category\",\n type: {\n name: \"String\"\n }\n },\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n retentionPolicy: {\n serializedName: \"retentionPolicy\",\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\"\n }\n }\n }\n }\n};\n\nexport const ProxyOnlyResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProxyOnlyResource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsResourceCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsResourceCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsCategoryResourceCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsCategoryResourceCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsCategoryResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const EventCategoryCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EventCategoryCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsResource\",\n modelProperties: {\n ...ProxyOnlyResource.type.modelProperties,\n storageAccountId: {\n serializedName: \"properties.storageAccountId\",\n type: {\n name: \"String\"\n }\n },\n serviceBusRuleId: {\n serializedName: \"properties.serviceBusRuleId\",\n type: {\n name: \"String\"\n }\n },\n eventHubAuthorizationRuleId: {\n serializedName: \"properties.eventHubAuthorizationRuleId\",\n type: {\n name: \"String\"\n }\n },\n eventHubName: {\n serializedName: \"properties.eventHubName\",\n type: {\n name: \"String\"\n }\n },\n metrics: {\n serializedName: \"properties.metrics\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricSettings\"\n }\n }\n }\n },\n logs: {\n serializedName: \"properties.logs\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LogSettings\"\n }\n }\n }\n },\n workspaceId: {\n serializedName: \"properties.workspaceId\",\n type: {\n name: \"String\"\n }\n },\n logAnalyticsDestinationType: {\n serializedName: \"properties.logAnalyticsDestinationType\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsCategoryResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsCategoryResource\",\n modelProperties: {\n ...ProxyOnlyResource.type.modelProperties,\n categoryType: {\n serializedName: \"properties.categoryType\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Metrics\", \"Logs\"]\n }\n }\n }\n }\n};\n"]}
|
|
@@ -9,13 +9,13 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { MetricDefinitionsImpl, MetricsImpl, DiagnosticSettingsImpl, DiagnosticSettingsCategoryImpl, EventCategoriesImpl, OperationsImpl } from "./operations/index.js";
|
|
11
11
|
export class MonitorClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
12
13
|
/**
|
|
13
14
|
* Initializes a new instance of the MonitorClient class.
|
|
14
15
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
15
16
|
* @param options The parameter options
|
|
16
17
|
*/
|
|
17
18
|
constructor(credentials, options) {
|
|
18
|
-
var _a, _b, _c;
|
|
19
19
|
if (credentials === undefined) {
|
|
20
20
|
throw new Error("'credentials' cannot be null");
|
|
21
21
|
}
|
|
@@ -31,12 +31,17 @@ export class MonitorClient extends coreClient.ServiceClient {
|
|
|
31
31
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
32
32
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
33
33
|
: `${packageDetails}`;
|
|
34
|
-
const optionsWithDefaults =
|
|
34
|
+
const optionsWithDefaults = {
|
|
35
|
+
...defaults,
|
|
36
|
+
...options,
|
|
37
|
+
userAgentOptions: {
|
|
35
38
|
userAgentPrefix
|
|
36
|
-
},
|
|
39
|
+
},
|
|
40
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
41
|
+
};
|
|
37
42
|
super(optionsWithDefaults);
|
|
38
43
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
39
|
-
if (
|
|
44
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
40
45
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
41
46
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
42
47
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -50,7 +55,8 @@ export class MonitorClient extends coreClient.ServiceClient {
|
|
|
50
55
|
});
|
|
51
56
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
52
57
|
credential: credentials,
|
|
53
|
-
scopes:
|
|
58
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
59
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
54
60
|
challengeCallbacks: {
|
|
55
61
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
56
62
|
}
|
|
@@ -65,5 +71,11 @@ export class MonitorClient extends coreClient.ServiceClient {
|
|
|
65
71
|
this.eventCategories = new EventCategoriesImpl(this);
|
|
66
72
|
this.operations = new OperationsImpl(this);
|
|
67
73
|
}
|
|
74
|
+
metricDefinitions;
|
|
75
|
+
metrics;
|
|
76
|
+
diagnosticSettings;
|
|
77
|
+
diagnosticSettingsCategory;
|
|
78
|
+
eventCategories;
|
|
79
|
+
operations;
|
|
68
80
|
}
|
|
69
81
|
//# sourceMappingURL=monitorClient.js.map
|
|
@@ -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,EACL,qBAAqB,EACrB,WAAW,EACX,sBAAsB,EACtB,8BAA8B,EAC9B,mBAAmB,EACnB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAW/B,MA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AAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,iBAAiB,CAAoB;IACrC,OAAO,CAAU;IACjB,kBAAkB,CAAqB;IACvC,0BAA0B,CAA6B;IACvD,eAAe,CAAkB;IACjC,UAAU,CAAa;CACxB","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 MetricDefinitionsImpl,\n MetricsImpl,\n DiagnosticSettingsImpl,\n DiagnosticSettingsCategoryImpl,\n EventCategoriesImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport {\n MetricDefinitions,\n Metrics,\n DiagnosticSettings,\n DiagnosticSettingsCategory,\n EventCategories,\n Operations\n} from \"./operationsInterfaces/index.js\";\nimport { MonitorClientOptionalParams } from \"./models/index.js\";\n\nexport class MonitorClient extends coreClient.ServiceClient {\n $host: string;\n\n /**\n * Initializes a new instance of the MonitorClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MonitorClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\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-profile-2020-09-01-hybrid/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.metricDefinitions = new MetricDefinitionsImpl(this);\n this.metrics = new MetricsImpl(this);\n this.diagnosticSettings = new DiagnosticSettingsImpl(this);\n this.diagnosticSettingsCategory = new DiagnosticSettingsCategoryImpl(this);\n this.eventCategories = new EventCategoriesImpl(this);\n this.operations = new OperationsImpl(this);\n }\n\n metricDefinitions: MetricDefinitions;\n metrics: Metrics;\n diagnosticSettings: DiagnosticSettings;\n diagnosticSettingsCategory: DiagnosticSettingsCategory;\n eventCategories: EventCategories;\n operations: Operations;\n}\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing DiagnosticSettings operations. */
|
|
12
12
|
export class DiagnosticSettingsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class DiagnosticSettings class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnosticSettings.js","sourceRoot":"","sources":["../../../src/operations/diagnosticSettings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,sDAAsD;AACtD,MAAM,OAAO,sBAAsB;
|
|
1
|
+
{"version":3,"file":"diagnosticSettings.js","sourceRoot":"","sources":["../../../src/operations/diagnosticSettings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,sDAAsD;AACtD,MAAM,OAAO,sBAAsB;IAChB,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,WAAmB,EACnB,IAAY,EACZ,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,EAC9B,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,cAAc,CACZ,WAAmB,EACnB,IAAY,EACZ,UAAsC,EACtC,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE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EAAE,UAAU,CAAC,UAAU;IAClC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,CAAC;IAC1E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,uEAAuE;IAC7E,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,CAAC;IAC1E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,gEAAgE;IACtE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oCAAoC;SACzD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { DiagnosticSettings } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MonitorClient } from \"../monitorClient.js\";\nimport {\n DiagnosticSettingsGetOptionalParams,\n DiagnosticSettingsGetResponse,\n DiagnosticSettingsResource,\n DiagnosticSettingsCreateOrUpdateOptionalParams,\n DiagnosticSettingsCreateOrUpdateResponse,\n DiagnosticSettingsDeleteOptionalParams,\n DiagnosticSettingsListOptionalParams,\n DiagnosticSettingsListResponse\n} from \"../models/index.js\";\n\n/** Class containing DiagnosticSettings operations. */\nexport class DiagnosticSettingsImpl implements DiagnosticSettings {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class DiagnosticSettings class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Gets the active diagnostic settings for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param name The name of the diagnostic setting.\n * @param options The options parameters.\n */\n get(\n resourceUri: string,\n name: string,\n options?: DiagnosticSettingsGetOptionalParams\n ): Promise<DiagnosticSettingsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates diagnostic settings for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param name The name of the diagnostic setting.\n * @param parameters Parameters supplied to the operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceUri: string,\n name: string,\n parameters: DiagnosticSettingsResource,\n options?: DiagnosticSettingsCreateOrUpdateOptionalParams\n ): Promise<DiagnosticSettingsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, name, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes existing diagnostic settings for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param name The name of the diagnostic setting.\n * @param options The options parameters.\n */\n delete(\n resourceUri: string,\n name: string,\n options?: DiagnosticSettingsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceUri, name, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Gets the active diagnostic settings list for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n list(\n resourceUri: string,\n options?: DiagnosticSettingsListOptionalParams\n ): Promise<DiagnosticSettingsListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticSettingsResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticSettingsResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticSettingsResourceCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing DiagnosticSettingsCategory operations. */
|
|
12
12
|
export class DiagnosticSettingsCategoryImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class DiagnosticSettingsCategory class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnosticSettingsCategory.js","sourceRoot":"","sources":["../../../src/operations/diagnosticSettingsCategory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;
|
|
1
|
+
{"version":3,"file":"diagnosticSettingsCategory.js","sourceRoot":"","sources":["../../../src/operations/diagnosticSettingsCategory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAExB,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,I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,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { DiagnosticSettingsCategory } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MonitorClient } from \"../monitorClient.js\";\nimport {\n DiagnosticSettingsCategoryGetOptionalParams,\n DiagnosticSettingsCategoryGetResponse,\n DiagnosticSettingsCategoryListOptionalParams,\n DiagnosticSettingsCategoryListResponse\n} from \"../models/index.js\";\n\n/** Class containing DiagnosticSettingsCategory operations. */\nexport class DiagnosticSettingsCategoryImpl\n implements DiagnosticSettingsCategory {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class DiagnosticSettingsCategory class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Gets the diagnostic settings category for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param name The name of the diagnostic setting.\n * @param options The options parameters.\n */\n get(\n resourceUri: string,\n name: string,\n options?: DiagnosticSettingsCategoryGetOptionalParams\n ): Promise<DiagnosticSettingsCategoryGetResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Lists the diagnostic settings categories for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n list(\n resourceUri: string,\n options?: DiagnosticSettingsCategoryListOptionalParams\n ): Promise<DiagnosticSettingsCategoryListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticSettingsCategoryResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticSettingsCategoryResourceCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
12
11
|
/// <reference lib="esnext.asynciterable" />
|
|
13
12
|
/** Class containing EventCategories operations. */
|
|
14
13
|
export class EventCategoriesImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class EventCategories class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -34,39 +34,22 @@ export class EventCategoriesImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(options, settings);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(options, _settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
yield yield __await(result.value || []);
|
|
49
|
-
});
|
|
44
|
+
async *listPagingPage(options, _settings) {
|
|
45
|
+
let result;
|
|
46
|
+
result = await this._list(options);
|
|
47
|
+
yield result.value || [];
|
|
50
48
|
}
|
|
51
|
-
listPagingAll(options) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
56
|
-
_c = _f.value;
|
|
57
|
-
_d = false;
|
|
58
|
-
const page = _c;
|
|
59
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
63
|
-
finally {
|
|
64
|
-
try {
|
|
65
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
66
|
-
}
|
|
67
|
-
finally { if (e_1) throw e_1.error; }
|
|
68
|
-
}
|
|
69
|
-
});
|
|
49
|
+
async *listPagingAll(options) {
|
|
50
|
+
for await (const page of this.listPagingPage(options)) {
|
|
51
|
+
yield* page;
|
|
52
|
+
}
|
|
70
53
|
}
|
|
71
54
|
/**
|
|
72
55
|
* Get the list of available event categories supported in the Activity Logs Service.<br>The current
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventCategories.js","sourceRoot":"","sources":["../../../src/operations/eventCategories.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"eventCategories.js","sourceRoot":"","sources":["../../../src/operations/eventCategories.ts"],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IACH,CAAC;IAED;;;;OAIG;IACK,KAAK,CACX,OAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,+CAA+C;IACrD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { EventCategories } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MonitorClient } from \"../monitorClient.js\";\nimport {\n LocalizableString,\n EventCategoriesListOptionalParams,\n EventCategoriesListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EventCategories operations. */\nexport class EventCategoriesImpl implements EventCategories {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class EventCategories class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Get the list of available event categories supported in the Activity Logs Service.<br>The current\n * list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.\n * @param options The options parameters.\n */\n public list(\n options?: EventCategoriesListOptionalParams\n ): PagedAsyncIterableIterator<LocalizableString> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: EventCategoriesListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<LocalizableString[]> {\n let result: EventCategoriesListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: EventCategoriesListOptionalParams\n ): AsyncIterableIterator<LocalizableString> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get the list of available event categories supported in the Activity Logs Service.<br>The current\n * list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.\n * @param options The options parameters.\n */\n private _list(\n options?: EventCategoriesListOptionalParams\n ): Promise<EventCategoriesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Insights/eventcategories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventCategoryCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
12
11
|
/// <reference lib="esnext.asynciterable" />
|
|
13
12
|
/** Class containing MetricDefinitions operations. */
|
|
14
13
|
export class MetricDefinitionsImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class MetricDefinitions class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -34,39 +34,22 @@ export class MetricDefinitionsImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(resourceUri, options, settings);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(resourceUri, options, _settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
yield yield __await(result.value || []);
|
|
49
|
-
});
|
|
44
|
+
async *listPagingPage(resourceUri, options, _settings) {
|
|
45
|
+
let result;
|
|
46
|
+
result = await this._list(resourceUri, options);
|
|
47
|
+
yield result.value || [];
|
|
50
48
|
}
|
|
51
|
-
listPagingAll(resourceUri, options) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceUri, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
56
|
-
_c = _f.value;
|
|
57
|
-
_d = false;
|
|
58
|
-
const page = _c;
|
|
59
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
63
|
-
finally {
|
|
64
|
-
try {
|
|
65
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
66
|
-
}
|
|
67
|
-
finally { if (e_1) throw e_1.error; }
|
|
68
|
-
}
|
|
69
|
-
});
|
|
49
|
+
async *listPagingAll(resourceUri, options) {
|
|
50
|
+
for await (const page of this.listPagingPage(resourceUri, options)) {
|
|
51
|
+
yield* page;
|
|
52
|
+
}
|
|
70
53
|
}
|
|
71
54
|
/**
|
|
72
55
|
* Lists the metric definitions for the resource.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metricDefinitions.js","sourceRoot":"","sources":["../../../src/operations/metricDefinitions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"metricDefinitions.js","sourceRoot":"","sources":["../../../src/operations/metricDefinitions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IACf,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,WAAmB,EACnB,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACtD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW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,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { MetricDefinitions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MonitorClient } from \"../monitorClient.js\";\nimport {\n MetricDefinition,\n MetricDefinitionsListOptionalParams,\n MetricDefinitionsListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing MetricDefinitions operations. */\nexport class MetricDefinitionsImpl implements MetricDefinitions {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class MetricDefinitions class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Lists the metric definitions for the resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n public list(\n resourceUri: string,\n options?: MetricDefinitionsListOptionalParams\n ): PagedAsyncIterableIterator<MetricDefinition> {\n const iter = this.listPagingAll(resourceUri, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceUri, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceUri: string,\n options?: MetricDefinitionsListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<MetricDefinition[]> {\n let result: MetricDefinitionsListResponse;\n result = await this._list(resourceUri, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceUri: string,\n options?: MetricDefinitionsListOptionalParams\n ): AsyncIterableIterator<MetricDefinition> {\n for await (const page of this.listPagingPage(resourceUri, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the metric definitions for the resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n private _list(\n resourceUri: string,\n options?: MetricDefinitionsListOptionalParams\n ): Promise<MetricDefinitionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/metricDefinitions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MetricDefinitionCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.metricnamespace],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Metrics operations. */
|
|
12
12
|
export class MetricsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Metrics class.
|
|
15
16
|
* @param client Reference to the service client
|