@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../src/operations/metrics.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;AAItD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;
|
|
1
|
+
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../src/operations/metrics.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;AAItD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IACL,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,WAAmB,EACnB,OAAmC;QAEnC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,iBAAiB,CAClB,CAAC;IACJ,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,qDAAqD;IAC3D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,GAAG;QACd,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,UAAU;KACtB;IACD,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 { Metrics } 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 { MetricsListOptionalParams, MetricsListResponse } from \"../models/index.js\";\n\n/** Class containing Metrics operations. */\nexport class MetricsImpl implements Metrics {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class Metrics 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 values for a resource**.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n list(\n resourceUri: string,\n options?: MetricsListOptionalParams\n ): Promise<MetricsListResponse> {\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/metrics\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Response\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.metricnamespace,\n Parameters.timespan,\n Parameters.interval,\n Parameters.metricnames,\n Parameters.aggregation,\n Parameters.top,\n Parameters.orderby,\n Parameters.filter,\n Parameters.resultType\n ],\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 Operations operations. */
|
|
12
12
|
export class OperationsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Operations class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.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;AAOtD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.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;AAOtD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,OAAsC;QAEtC,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,0CAA0C;IAChD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;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 { Operations } 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 OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models/index.js\";\n\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available operations from Microsoft.Insights provider.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\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/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -684,27 +684,33 @@ exports.DiagnosticSettingsResource = {
|
|
|
684
684
|
type: {
|
|
685
685
|
name: "Composite",
|
|
686
686
|
className: "DiagnosticSettingsResource",
|
|
687
|
-
modelProperties:
|
|
687
|
+
modelProperties: {
|
|
688
|
+
...exports.ProxyOnlyResource.type.modelProperties,
|
|
689
|
+
storageAccountId: {
|
|
688
690
|
serializedName: "properties.storageAccountId",
|
|
689
691
|
type: {
|
|
690
692
|
name: "String"
|
|
691
693
|
}
|
|
692
|
-
},
|
|
694
|
+
},
|
|
695
|
+
serviceBusRuleId: {
|
|
693
696
|
serializedName: "properties.serviceBusRuleId",
|
|
694
697
|
type: {
|
|
695
698
|
name: "String"
|
|
696
699
|
}
|
|
697
|
-
},
|
|
700
|
+
},
|
|
701
|
+
eventHubAuthorizationRuleId: {
|
|
698
702
|
serializedName: "properties.eventHubAuthorizationRuleId",
|
|
699
703
|
type: {
|
|
700
704
|
name: "String"
|
|
701
705
|
}
|
|
702
|
-
},
|
|
706
|
+
},
|
|
707
|
+
eventHubName: {
|
|
703
708
|
serializedName: "properties.eventHubName",
|
|
704
709
|
type: {
|
|
705
710
|
name: "String"
|
|
706
711
|
}
|
|
707
|
-
},
|
|
712
|
+
},
|
|
713
|
+
metrics: {
|
|
708
714
|
serializedName: "properties.metrics",
|
|
709
715
|
type: {
|
|
710
716
|
name: "Sequence",
|
|
@@ -715,7 +721,8 @@ exports.DiagnosticSettingsResource = {
|
|
|
715
721
|
}
|
|
716
722
|
}
|
|
717
723
|
}
|
|
718
|
-
},
|
|
724
|
+
},
|
|
725
|
+
logs: {
|
|
719
726
|
serializedName: "properties.logs",
|
|
720
727
|
type: {
|
|
721
728
|
name: "Sequence",
|
|
@@ -726,30 +733,36 @@ exports.DiagnosticSettingsResource = {
|
|
|
726
733
|
}
|
|
727
734
|
}
|
|
728
735
|
}
|
|
729
|
-
},
|
|
736
|
+
},
|
|
737
|
+
workspaceId: {
|
|
730
738
|
serializedName: "properties.workspaceId",
|
|
731
739
|
type: {
|
|
732
740
|
name: "String"
|
|
733
741
|
}
|
|
734
|
-
},
|
|
742
|
+
},
|
|
743
|
+
logAnalyticsDestinationType: {
|
|
735
744
|
serializedName: "properties.logAnalyticsDestinationType",
|
|
736
745
|
type: {
|
|
737
746
|
name: "String"
|
|
738
747
|
}
|
|
739
|
-
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
740
750
|
}
|
|
741
751
|
};
|
|
742
752
|
exports.DiagnosticSettingsCategoryResource = {
|
|
743
753
|
type: {
|
|
744
754
|
name: "Composite",
|
|
745
755
|
className: "DiagnosticSettingsCategoryResource",
|
|
746
|
-
modelProperties:
|
|
756
|
+
modelProperties: {
|
|
757
|
+
...exports.ProxyOnlyResource.type.modelProperties,
|
|
758
|
+
categoryType: {
|
|
747
759
|
serializedName: "properties.categoryType",
|
|
748
760
|
type: {
|
|
749
761
|
name: "Enum",
|
|
750
762
|
allowedValues: ["Metrics", "Logs"]
|
|
751
763
|
}
|
|
752
|
-
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
753
766
|
}
|
|
754
767
|
};
|
|
755
768
|
//# sourceMappingURL=mappers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,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;AAEW,QAAA,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,mBAA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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;;;AAIU,QAAA,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;AAEW,QAAA,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,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,SAAS,EAAE;gBACT,cAAc,EAAE,WAAW;gBAC3B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,mBAAmB;iBAC/B;aACF;YACD,kBAAkB,EAAE;gBAClB,cAAc,EAAE,oBAAoB;gBACpC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAA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AAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,aAAa;yBACzB;qBACF;iBACF;aACF;YACD,WAAW,EAAE;gBACX,cAAc,EAAE,wBAAwB;gBACxC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,2BAA2B,EAAE;gBAC3B,cAAc,EAAE,wCAAwC;gBACxD,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,kCAAkC,GAA+B;IAC5E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oCAAoC;QAC/C,eAAe,EAAE;YACf,GAAG,yBAAiB,CAAC,IAAI,CAAC,eAAe;YACzC,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"]}
|
|
@@ -13,13 +13,13 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
|
13
13
|
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
14
|
const index_js_1 = require("./operations/index.js");
|
|
15
15
|
class MonitorClient extends coreClient.ServiceClient {
|
|
16
|
+
$host;
|
|
16
17
|
/**
|
|
17
18
|
* Initializes a new instance of the MonitorClient class.
|
|
18
19
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
19
20
|
* @param options The parameter options
|
|
20
21
|
*/
|
|
21
22
|
constructor(credentials, options) {
|
|
22
|
-
var _a, _b, _c;
|
|
23
23
|
if (credentials === undefined) {
|
|
24
24
|
throw new Error("'credentials' cannot be null");
|
|
25
25
|
}
|
|
@@ -35,12 +35,17 @@ class MonitorClient extends coreClient.ServiceClient {
|
|
|
35
35
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
36
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
37
|
: `${packageDetails}`;
|
|
38
|
-
const optionsWithDefaults =
|
|
38
|
+
const optionsWithDefaults = {
|
|
39
|
+
...defaults,
|
|
40
|
+
...options,
|
|
41
|
+
userAgentOptions: {
|
|
39
42
|
userAgentPrefix
|
|
40
|
-
},
|
|
43
|
+
},
|
|
44
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
45
|
+
};
|
|
41
46
|
super(optionsWithDefaults);
|
|
42
47
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
43
|
-
if (
|
|
48
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
49
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
50
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
46
51
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -54,7 +59,8 @@ class MonitorClient extends coreClient.ServiceClient {
|
|
|
54
59
|
});
|
|
55
60
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
56
61
|
credential: credentials,
|
|
57
|
-
scopes:
|
|
62
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
63
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
58
64
|
challengeCallbacks: {
|
|
59
65
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
60
66
|
}
|
|
@@ -69,6 +75,12 @@ class MonitorClient extends coreClient.ServiceClient {
|
|
|
69
75
|
this.eventCategories = new index_js_1.EventCategoriesImpl(this);
|
|
70
76
|
this.operations = new index_js_1.OperationsImpl(this);
|
|
71
77
|
}
|
|
78
|
+
metricDefinitions;
|
|
79
|
+
metrics;
|
|
80
|
+
diagnosticSettings;
|
|
81
|
+
diagnosticSettingsCategory;
|
|
82
|
+
eventCategories;
|
|
83
|
+
operations;
|
|
72
84
|
}
|
|
73
85
|
exports.MonitorClient = MonitorClient;
|
|
74
86
|
//# sourceMappingURL=monitorClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitorClient.js","sourceRoot":"","sources":["../../src/monitorClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,oDAO+B;AAW/B,MAAa,aAAc,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"monitorClient.js","sourceRoot":"","sources":["../../src/monitorClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,oDAO+B;AAW/B,MAAa,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,CAAS;IAEd;;;;OAIG;IACH,YACE,WAAqC,EACrC,OAAqC;QAErC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAgC;YAC5C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,sDAAsD,CAAC;QAC9E,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,GAAG;YAC1B,GAAG,QAAQ;YACX,GAAG,OAAO;YACV,gBAAgB,EAAE;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I,CAAC,OAAO,GAAG,IAAI,sBAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,kBAAkB,GAAG,IAAI,iCAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,0BAA0B,GAAG,IAAI,yCAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,eAAe,GAAG,IAAI,8BAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,IAAI,yBAAc,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;AA1FD,sCA0FC","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"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing DiagnosticSettings operations. */
|
|
16
16
|
class DiagnosticSettingsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class DiagnosticSettings class.
|
|
19
20
|
* @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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,sDAAsD;AACtD,MAAa,sBAAsB;
|
|
1
|
+
{"version":3,"file":"diagnosticSettings.js","sourceRoot":"","sources":["../../../src/operations/diagnosticSettings.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,sDAAsD;AACtD,MAAa,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,EA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C,aAAa;SAClC;KACF;IACD,WAAW,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"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing DiagnosticSettingsCategory operations. */
|
|
16
16
|
class DiagnosticSettingsCategoryImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class DiagnosticSettingsCategory class.
|
|
19
20
|
* @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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAStD,8DAA8D;AAC9D,MAAa,8BAA8B;
|
|
1
|
+
{"version":3,"file":"diagnosticSettingsCategory.js","sourceRoot":"","sources":["../../../src/operations/diagnosticSettingsCategory.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAStD,8DAA8D;AAC9D,MAAa,8BAA8B;IAExB,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,OAAqD;QAErD,OAAO,IAAI,C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AC;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"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing EventCategories operations. */
|
|
17
17
|
class EventCategoriesImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class EventCategories class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -37,39 +38,22 @@ class EventCategoriesImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listPagingPage(options, settings);
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listPagingPage(options, _settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
yield yield tslib_1.__await(result.value || []);
|
|
52
|
-
});
|
|
48
|
+
async *listPagingPage(options, _settings) {
|
|
49
|
+
let result;
|
|
50
|
+
result = await this._list(options);
|
|
51
|
+
yield result.value || [];
|
|
53
52
|
}
|
|
54
|
-
listPagingAll(options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
59
|
-
_c = _f.value;
|
|
60
|
-
_d = false;
|
|
61
|
-
const page = _c;
|
|
62
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
-
finally {
|
|
67
|
-
try {
|
|
68
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
69
|
-
}
|
|
70
|
-
finally { if (e_1) throw e_1.error; }
|
|
71
|
-
}
|
|
72
|
-
});
|
|
53
|
+
async *listPagingAll(options) {
|
|
54
|
+
for await (const page of this.listPagingPage(options)) {
|
|
55
|
+
yield* page;
|
|
56
|
+
}
|
|
73
57
|
}
|
|
74
58
|
/**
|
|
75
59
|
* 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;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"eventCategories.js","sourceRoot":"","sources":["../../../src/operations/eventCategories.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IACb,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,C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3E,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"]}
|