@azure/arm-resourcegraph 5.0.0-beta.5 → 5.0.0
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/README.md +1 -1
- package/dist/browser/api/graphQuery/operations.js.map +1 -1
- package/dist/browser/api/graphQuery/options.js.map +1 -1
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/operations.js.map +1 -1
- package/dist/browser/api/options.js.map +1 -1
- package/dist/browser/api/resourceGraphContext.js +3 -3
- package/dist/browser/api/resourceGraphContext.js.map +1 -1
- package/dist/browser/classic/graphQuery/index.js.map +1 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/models/graphQueryApi/models.d.ts +0 -4
- package/dist/browser/models/graphQueryApi/models.js +6 -0
- package/dist/browser/models/graphQueryApi/models.js.map +1 -1
- package/dist/browser/models/models.d.ts +0 -4
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/models/resourceChanges/models.d.ts +0 -4
- package/dist/browser/models/resourceChanges/models.js.map +1 -1
- package/dist/browser/models/resourceGraphApi/models.d.ts +0 -4
- package/dist/browser/models/resourceGraphApi/models.js.map +1 -1
- package/dist/browser/models/resourceGraphCommon/models.d.ts +0 -4
- package/dist/browser/models/resourceGraphCommon/models.js +6 -0
- package/dist/browser/models/resourceGraphCommon/models.js.map +1 -1
- package/dist/browser/models/resourceHistory/models.d.ts +0 -4
- package/dist/browser/models/resourceHistory/models.js.map +1 -1
- package/dist/browser/resourceGraphClient.js +1 -8
- package/dist/browser/resourceGraphClient.js.map +1 -1
- package/dist/commonjs/api/graphQuery/operations.js.map +2 -2
- package/dist/commonjs/api/graphQuery/options.js.map +1 -1
- package/dist/commonjs/api/operations/operations.js.map +2 -2
- package/dist/commonjs/api/operations.js.map +2 -2
- package/dist/commonjs/api/options.js.map +1 -1
- package/dist/commonjs/api/resourceGraphContext.js +2 -2
- package/dist/commonjs/api/resourceGraphContext.js.map +2 -2
- package/dist/commonjs/classic/graphQuery/index.js.map +2 -2
- package/dist/commonjs/classic/operations/index.js.map +2 -2
- package/dist/commonjs/models/graphQueryApi/models.d.ts +0 -4
- package/dist/commonjs/models/graphQueryApi/models.js.map +2 -2
- package/dist/commonjs/models/models.d.ts +0 -4
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/models/resourceChanges/models.d.ts +0 -4
- package/dist/commonjs/models/resourceChanges/models.js.map +1 -1
- package/dist/commonjs/models/resourceGraphApi/models.d.ts +0 -4
- package/dist/commonjs/models/resourceGraphApi/models.js.map +2 -2
- package/dist/commonjs/models/resourceGraphCommon/models.d.ts +0 -4
- package/dist/commonjs/models/resourceGraphCommon/models.js.map +2 -2
- package/dist/commonjs/models/resourceHistory/models.d.ts +0 -4
- package/dist/commonjs/models/resourceHistory/models.js.map +2 -2
- package/dist/commonjs/resourceGraphClient.js +1 -6
- package/dist/commonjs/resourceGraphClient.js.map +2 -2
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/graphQuery/operations.js.map +1 -1
- package/dist/esm/api/graphQuery/options.js.map +1 -1
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/operations.js.map +1 -1
- package/dist/esm/api/options.js.map +1 -1
- package/dist/esm/api/resourceGraphContext.js +3 -3
- package/dist/esm/api/resourceGraphContext.js.map +1 -1
- package/dist/esm/classic/graphQuery/index.js.map +1 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/models/graphQueryApi/models.d.ts +0 -4
- package/dist/esm/models/graphQueryApi/models.js +6 -0
- package/dist/esm/models/graphQueryApi/models.js.map +1 -1
- package/dist/esm/models/models.d.ts +0 -4
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/models/resourceChanges/models.d.ts +0 -4
- package/dist/esm/models/resourceChanges/models.js.map +1 -1
- package/dist/esm/models/resourceGraphApi/models.d.ts +0 -4
- package/dist/esm/models/resourceGraphApi/models.js.map +1 -1
- package/dist/esm/models/resourceGraphCommon/models.d.ts +0 -4
- package/dist/esm/models/resourceGraphCommon/models.js +6 -0
- package/dist/esm/models/resourceGraphCommon/models.js.map +1 -1
- package/dist/esm/models/resourceHistory/models.d.ts +0 -4
- package/dist/esm/models/resourceHistory/models.js.map +1 -1
- package/dist/esm/resourceGraphClient.js +1 -8
- package/dist/esm/resourceGraphClient.js.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/graphQueryApi/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AAElG,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AA0BtD,MAAM,UAAU,4BAA4B,CAAC,IAAwB;IACnE,OAAO;QACL,UAAU,EAAE,oBAAoB,CAAC,IAAI,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YAC9D,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,uCAAuC,CAAC,IAAI,CAAC;QACjD,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;KACnB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS;IACtD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACrB,CAAC,CAAC,IAAI,CAA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,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;AACpE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { areAllPropsUndefined } from \"../../static-helpers/serialization/check-prop-undefined.js\";\nimport type { ProxyResource } from \"../models.js\";\nimport { systemDataDeserializer } from \"../models.js\";\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** Graph Query entity definition. */\nexport interface GraphQueryResource extends ProxyResource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The location of the resource */\n location?: string;\n /** This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict. */\n etag?: string;\n /** Date and time in UTC of the last modification that was made to this graph query definition. */\n readonly timeModified?: Date;\n /** The description of a graph query. */\n description?: string;\n /** KQL query that will be graph. */\n query?: string;\n /** Enum indicating a type of graph query. */\n readonly resultKind?: ResultKind;\n}\n\nexport function graphQueryResourceSerializer(item: GraphQueryResource): any {\n return {\n properties: areAllPropsUndefined(item, [\"description\", \"query\"])\n ? undefined\n : _graphQueryResourcePropertiesSerializer(item),\n tags: item[\"tags\"],\n location: item[\"location\"],\n etag: item[\"etag\"],\n };\n}\n\nexport function graphQueryResourceDeserializer(item: any): GraphQueryResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _graphQueryResourcePropertiesDeserializer(item[\"properties\"])),\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n location: item[\"location\"],\n etag: item[\"etag\"],\n };\n}\n\n/** Properties that contain a graph query. */\nexport interface GraphQueryProperties {\n /** Date and time in UTC of the last modification that was made to this graph query definition. */\n readonly timeModified?: Date;\n /** The description of a graph query. */\n description?: string;\n /** KQL query that will be graph. */\n query: string;\n /** Enum indicating a type of graph query. */\n readonly resultKind?: ResultKind;\n}\n\nexport function graphQueryPropertiesSerializer(item: GraphQueryProperties): any {\n return { description: item[\"description\"], query: item[\"query\"] };\n}\n\nexport function graphQueryPropertiesDeserializer(item: any): GraphQueryProperties {\n return {\n timeModified: !item[\"timeModified\"] ? item[\"timeModified\"] : new Date(item[\"timeModified\"]),\n description: item[\"description\"],\n query: item[\"query\"],\n resultKind: item[\"resultKind\"],\n };\n}\n\n/** Enum indicating a type of graph query. */\nexport enum KnownResultKind {\n /** basic */\n Basic = \"basic\",\n}\n\n/**\n * Enum indicating a type of graph query. \\\n * {@link KnownResultKind} can be used interchangeably with ResultKind,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **basic**: basic\n */\nexport type ResultKind = string;\n\n/** Error message body that will indicate why the operation failed. */\nexport interface GraphQueryError {\n /** The error object. */\n error?: GraphQueryErrorError;\n}\n\nexport function graphQueryErrorDeserializer(item: any): GraphQueryError {\n return {\n error: !item[\"error\"] ? item[\"error\"] : graphQueryErrorErrorDeserializer(item[\"error\"]),\n };\n}\n\n/** The error object. */\nexport interface GraphQueryErrorError {\n /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */\n code?: string;\n /** Human-readable representation of the error. */\n message?: string;\n /** The list of invalid fields send in request, in case of validation error. */\n details?: ErrorFieldContract[];\n}\n\nexport function graphQueryErrorErrorDeserializer(item: any): GraphQueryErrorError {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n details: !item[\"details\"]\n ? item[\"details\"]\n : errorFieldContractArrayDeserializer(item[\"details\"]),\n };\n}\n\nexport function errorFieldContractArrayDeserializer(result: Array<ErrorFieldContract>): any[] {\n return result.map((item) => {\n return errorFieldContractDeserializer(item);\n });\n}\n\n/** Error Field contract. */\nexport interface ErrorFieldContract {\n /** Property level error code. */\n code?: string;\n /** Human-readable representation of property-level error. */\n message?: string;\n /** Property name. */\n target?: string;\n}\n\nexport function errorFieldContractDeserializer(item: any): ErrorFieldContract {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n };\n}\n\n/** The parameters that can be provided when updating workbook properties properties. */\nexport interface GraphQueryUpdateParameters {\n /** Resource tags */\n tags?: Record<string, string>;\n /** This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict. */\n etag?: string;\n /** The description of a graph query. */\n description?: string;\n /** KQL query that will be graph. */\n query?: string;\n}\n\nexport function graphQueryUpdateParametersSerializer(item: GraphQueryUpdateParameters): any {\n return {\n tags: item[\"tags\"],\n etag: item[\"etag\"],\n properties: areAllPropsUndefined(item, [\"description\", \"query\"])\n ? undefined\n : _graphQueryUpdateParametersPropertiesSerializer(item),\n };\n}\n\n/** Properties that contain a workbook for PATCH operation. */\nexport interface GraphQueryPropertiesUpdateParameters {\n /** The description of a graph query. */\n description?: string;\n /** KQL query that will be graph. */\n query?: string;\n}\n\nexport function graphQueryPropertiesUpdateParametersSerializer(\n item: GraphQueryPropertiesUpdateParameters,\n): any {\n return { description: item[\"description\"], query: item[\"query\"] };\n}\n\n/** Graph query list result. */\nexport interface _GraphQueryListResult {\n /** The GraphQueryResource items on this page */\n value: GraphQueryResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _graphQueryListResultDeserializer(item: any): _GraphQueryListResult {\n return {\n value: graphQueryResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function graphQueryResourceArraySerializer(result: Array<GraphQueryResource>): any[] {\n return result.map((item) => {\n return graphQueryResourceSerializer(item);\n });\n}\n\nexport function graphQueryResourceArrayDeserializer(result: Array<GraphQueryResource>): any[] {\n return result.map((item) => {\n return graphQueryResourceDeserializer(item);\n });\n}\n\nexport function _graphQueryResourcePropertiesSerializer(item: GraphQueryResource): any {\n return { description: item[\"description\"], query: item[\"query\"] };\n}\n\nexport function _graphQueryResourcePropertiesDeserializer(item: any) {\n return {\n timeModified: !item[\"timeModified\"] ? item[\"timeModified\"] : new Date(item[\"timeModified\"]),\n description: item[\"description\"],\n query: item[\"query\"],\n resultKind: item[\"resultKind\"],\n };\n}\n\nexport function _graphQueryUpdateParametersPropertiesSerializer(\n item: GraphQueryUpdateParameters,\n): any {\n return { description: item[\"description\"], query: item[\"query\"] };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/graphQueryApi/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,yDAAyD;AACzD,sEAAsE;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AAElG,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAoBtD,MAAM,UAAU,4BAA4B,CAAC,IAAwB;IACnE,OAAO;QACL,UAAU,EAAE,oBAAoB,CAAC,IAAI,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YAC9D,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,uCAAuC,CAAC,IAAI,CAAC;QACjD,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;KACnB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS;IACtD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY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,UAAU,+CAA+C,CAC7D,IAAgC;IAEhC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;AACpE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/*\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport { areAllPropsUndefined } from \"../../static-helpers/serialization/check-prop-undefined.js\";\nimport type { ProxyResource } from \"../models.js\";\nimport { systemDataDeserializer } from \"../models.js\";\n\n/** Graph Query entity definition. */\nexport interface GraphQueryResource extends ProxyResource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The location of the resource */\n location?: string;\n /** This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict. */\n etag?: string;\n /** Date and time in UTC of the last modification that was made to this graph query definition. */\n readonly timeModified?: Date;\n /** The description of a graph query. */\n description?: string;\n /** KQL query that will be graph. */\n query?: string;\n /** Enum indicating a type of graph query. */\n readonly resultKind?: ResultKind;\n}\n\nexport function graphQueryResourceSerializer(item: GraphQueryResource): any {\n return {\n properties: areAllPropsUndefined(item, [\"description\", \"query\"])\n ? undefined\n : _graphQueryResourcePropertiesSerializer(item),\n tags: item[\"tags\"],\n location: item[\"location\"],\n etag: item[\"etag\"],\n };\n}\n\nexport function graphQueryResourceDeserializer(item: any): GraphQueryResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _graphQueryResourcePropertiesDeserializer(item[\"properties\"])),\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n location: item[\"location\"],\n etag: item[\"etag\"],\n };\n}\n\n/** Properties that contain a graph query. */\nexport interface GraphQueryProperties {\n /** Date and time in UTC of the last modification that was made to this graph query definition. */\n readonly timeModified?: Date;\n /** The description of a graph query. */\n description?: string;\n /** KQL query that will be graph. */\n query: string;\n /** Enum indicating a type of graph query. */\n readonly resultKind?: ResultKind;\n}\n\nexport function graphQueryPropertiesSerializer(item: GraphQueryProperties): any {\n return { description: item[\"description\"], query: item[\"query\"] };\n}\n\nexport function graphQueryPropertiesDeserializer(item: any): GraphQueryProperties {\n return {\n timeModified: !item[\"timeModified\"] ? item[\"timeModified\"] : new Date(item[\"timeModified\"]),\n description: item[\"description\"],\n query: item[\"query\"],\n resultKind: item[\"resultKind\"],\n };\n}\n\n/** Enum indicating a type of graph query. */\nexport enum KnownResultKind {\n /** basic */\n Basic = \"basic\",\n}\n\n/**\n * Enum indicating a type of graph query. \\\n * {@link KnownResultKind} can be used interchangeably with ResultKind,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **basic**: basic\n */\nexport type ResultKind = string;\n\n/** Error message body that will indicate why the operation failed. */\nexport interface GraphQueryError {\n /** The error object. */\n error?: GraphQueryErrorError;\n}\n\nexport function graphQueryErrorDeserializer(item: any): GraphQueryError {\n return {\n error: !item[\"error\"] ? item[\"error\"] : graphQueryErrorErrorDeserializer(item[\"error\"]),\n };\n}\n\n/** The error object. */\nexport interface GraphQueryErrorError {\n /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */\n code?: string;\n /** Human-readable representation of the error. */\n message?: string;\n /** The list of invalid fields send in request, in case of validation error. */\n details?: ErrorFieldContract[];\n}\n\nexport function graphQueryErrorErrorDeserializer(item: any): GraphQueryErrorError {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n details: !item[\"details\"]\n ? item[\"details\"]\n : errorFieldContractArrayDeserializer(item[\"details\"]),\n };\n}\n\nexport function errorFieldContractArrayDeserializer(result: Array<ErrorFieldContract>): any[] {\n return result.map((item) => {\n return errorFieldContractDeserializer(item);\n });\n}\n\n/** Error Field contract. */\nexport interface ErrorFieldContract {\n /** Property level error code. */\n code?: string;\n /** Human-readable representation of property-level error. */\n message?: string;\n /** Property name. */\n target?: string;\n}\n\nexport function errorFieldContractDeserializer(item: any): ErrorFieldContract {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n };\n}\n\n/** The parameters that can be provided when updating workbook properties properties. */\nexport interface GraphQueryUpdateParameters {\n /** Resource tags */\n tags?: Record<string, string>;\n /** This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict. */\n etag?: string;\n /** The description of a graph query. */\n description?: string;\n /** KQL query that will be graph. */\n query?: string;\n}\n\nexport function graphQueryUpdateParametersSerializer(item: GraphQueryUpdateParameters): any {\n return {\n tags: item[\"tags\"],\n etag: item[\"etag\"],\n properties: areAllPropsUndefined(item, [\"description\", \"query\"])\n ? undefined\n : _graphQueryUpdateParametersPropertiesSerializer(item),\n };\n}\n\n/** Properties that contain a workbook for PATCH operation. */\nexport interface GraphQueryPropertiesUpdateParameters {\n /** The description of a graph query. */\n description?: string;\n /** KQL query that will be graph. */\n query?: string;\n}\n\nexport function graphQueryPropertiesUpdateParametersSerializer(\n item: GraphQueryPropertiesUpdateParameters,\n): any {\n return { description: item[\"description\"], query: item[\"query\"] };\n}\n\n/** Graph query list result. */\nexport interface _GraphQueryListResult {\n /** The GraphQueryResource items on this page */\n value: GraphQueryResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _graphQueryListResultDeserializer(item: any): _GraphQueryListResult {\n return {\n value: graphQueryResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function graphQueryResourceArraySerializer(result: Array<GraphQueryResource>): any[] {\n return result.map((item) => {\n return graphQueryResourceSerializer(item);\n });\n}\n\nexport function graphQueryResourceArrayDeserializer(result: Array<GraphQueryResource>): any[] {\n return result.map((item) => {\n return graphQueryResourceDeserializer(item);\n });\n}\n\nexport function _graphQueryResourcePropertiesSerializer(item: GraphQueryResource): any {\n return { description: item[\"description\"], query: item[\"query\"] };\n}\n\nexport function _graphQueryResourcePropertiesDeserializer(item: any) {\n return {\n timeModified: !item[\"timeModified\"] ? item[\"timeModified\"] : new Date(item[\"timeModified\"]),\n description: item[\"description\"],\n query: item[\"query\"],\n resultKind: item[\"resultKind\"],\n };\n}\n\nexport function _graphQueryUpdateParametersPropertiesSerializer(\n item: GraphQueryUpdateParameters,\n): any {\n return { description: item[\"description\"], query: item[\"query\"] };\n}\n"]}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains only generated model types and their (de)serializers.
|
|
3
|
-
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
|
|
4
|
-
*/
|
|
5
1
|
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
6
2
|
export interface ProxyResource extends Resource {
|
|
7
3
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,MAAM,UAAU,uBAAuB,CAAC,KAAoB;IAC1D,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IACjD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KAC/C,CAAC;AACJ,CAAC;AAcD,MAAM,UAAU,kBAAkB,CA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// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,MAAM,UAAU,uBAAuB,CAAC,KAAoB;IAC1D,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IACjD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KAC/C,CAAC;AACJ,CAAC;AAcD,MAAM,UAAU,kBAAkB,CAAC,KAAe;IAChD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC5C,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KAC/C,CAAC;AACJ,CAAC;AAkBD,MAAM,UAAU,sBAAsB,CAAC,IAAS;IAC9C,OAAO;QACL,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;QACpC,SAAS,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC/E,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACtC,kBAAkB,EAAE,IAAI,CAAC,oBAAoB,CAAC;QAC9C,cAAc,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACrC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACxB,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;KACrC,CAAC;AACJ,CAAC;AAED,oDAAoD;AACpD,MAAM,CAAN,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,wCAAwC;IACxC,mCAAa,CAAA;IACb,gDAAgD;IAChD,iDAA2B,CAAA;IAC3B,oDAAoD;IACpD,yDAAmC,CAAA;IACnC,uCAAuC;IACvC,iCAAW,CAAA;AACb,CAAC,EATW,kBAAkB,KAAlB,kBAAkB,QAS7B","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/*\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(_item: ProxyResource): any {\n return {};\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(_item: Resource): any {\n return {};\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\nexport type ResourcesHistoryResponse = { body: any };\n"]}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { DateTimeInterval } from "../resourceGraphCommon/models.js";
|
|
2
|
-
/**
|
|
3
|
-
* This file contains only generated model types and their (de)serializers.
|
|
4
|
-
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
|
|
5
|
-
*/
|
|
6
2
|
/** The parameters for a specific changes request. */
|
|
7
3
|
export interface ResourceChangesRequestParameters {
|
|
8
4
|
/** Specifies the list of resources for a changes request. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/resourceChanges/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA8BlC,MAAM,UAAU,0CAA0C,CACxD,IAAsC;IAEtC,OAAO;QACL,WAAW,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC;YAC/B,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;YACrB,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBACjC,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;QACN,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACtC,QAAQ,EAAE,kDAAkD,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC9E,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;QAC7B,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;QACjB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;QACpB,oBAAoB,EAAE,IAAI,CAAC,sBAAsB,CAAC;QAClD,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;KACvC,CAAC;AACJ,CAAC;AAKD,MAAM,UAAU,kDAAkD,CAChE,IAA8C;IAE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AC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;YAC1C,OAAO,CAAC,CAAC;QACX,CAAC,CAAC;KACH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { DateTimeInterval } from \"../resourceGraphCommon/models.js\";\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** The parameters for a specific changes request. */\nexport interface ResourceChangesRequestParameters {\n /** Specifies the list of resources for a changes request. */\n resourceIds?: string[];\n /** The subscription id of resources to query the changes from. */\n subscriptionId?: string;\n /** Specifies the date and time interval for a changes request. */\n interval: ResourceChangesRequestParametersInterval;\n /** Acts as the continuation token for paged responses. */\n skipToken?: string;\n /** The maximum number of changes the client can accept in a paged response. */\n top?: number;\n /** The table name to query resources from. */\n table?: string;\n /** The flag if set to true will fetch property changes */\n fetchPropertyChanges?: boolean;\n /** The flag if set to true will fetch change snapshots */\n fetchSnapshots?: boolean;\n}\n\nexport function resourceChangesRequestParametersSerializer(\n item: ResourceChangesRequestParameters,\n): any {\n return {\n resourceIds: !item[\"resourceIds\"]\n ? item[\"resourceIds\"]\n : item[\"resourceIds\"].map((p: any) => {\n return p;\n }),\n subscriptionId: item[\"subscriptionId\"],\n interval: resourceChangesRequestParametersIntervalSerializer(item[\"interval\"]),\n $skipToken: item[\"skipToken\"],\n $top: item[\"top\"],\n table: item[\"table\"],\n fetchPropertyChanges: item[\"fetchPropertyChanges\"],\n fetchSnapshots: item[\"fetchSnapshots\"],\n };\n}\n\n/** Specifies the date and time interval for a changes request. */\nexport interface ResourceChangesRequestParametersInterval extends DateTimeInterval {}\n\nexport function resourceChangesRequestParametersIntervalSerializer(\n item: ResourceChangesRequestParametersInterval,\n): any {\n return { start: item[\"start\"].toISOString(), end: item[\"end\"].toISOString() };\n}\n\n/** A list of changes associated with a resource over a specific time interval. */\nexport interface ResourceChangeList {\n /**\n * The pageable value returned by the operation, i.e. a list of changes to the resource.\n *\n * - The list is ordered from the most recent changes to the least recent changes.\n * - This list will be empty if there were no changes during the requested interval.\n * - The `Before` snapshot timestamp value of the oldest change can be outside of the specified time interval.\n */\n changes?: ResourceChangeData[];\n /** Skip token that encodes the skip information while executing the current request */\n skipToken?: any;\n}\n\nexport function resourceChangeListDeserializer(item: any): ResourceChangeList {\n return {\n changes: !item[\"changes\"]\n ? item[\"changes\"]\n : resourceChangeDataArrayDeserializer(item[\"changes\"]),\n skipToken: item[\"$skipToken\"],\n };\n}\n\nexport function resourceChangeDataArrayDeserializer(result: Array<ResourceChangeData>): any[] {\n return result.map((item) => {\n return resourceChangeDataDeserializer(item);\n });\n}\n\n/** Data on a specific change, represented by a pair of before and after resource snapshots. */\nexport interface ResourceChangeData {\n /** The resource for a change. */\n resourceId?: string;\n /** The change ID. Valid and unique within the specified resource only. */\n changeId: string;\n /** The snapshot before the change. */\n beforeSnapshot: ResourceChangeDataBeforeSnapshot;\n /** The snapshot after the change. */\n afterSnapshot: ResourceChangeDataAfterSnapshot;\n /** The change type for snapshot. PropertyChanges will be provided in case of Update change type */\n changeType?: ChangeType;\n /** An array of resource property change */\n propertyChanges?: ResourcePropertyChange[];\n}\n\nexport function resourceChangeDataDeserializer(item: any): ResourceChangeData {\n return {\n resourceId: item[\"resourceId\"],\n changeId: item[\"changeId\"],\n beforeSnapshot: resourceChangeDataBeforeSnapshotDeserializer(item[\"beforeSnapshot\"]),\n afterSnapshot: resourceChangeDataAfterSnapshotDeserializer(item[\"afterSnapshot\"]),\n changeType: item[\"changeType\"],\n propertyChanges: !item[\"propertyChanges\"]\n ? item[\"propertyChanges\"]\n : resourcePropertyChangeArrayDeserializer(item[\"propertyChanges\"]),\n };\n}\n\n/** The snapshot before the change. */\nexport interface ResourceChangeDataBeforeSnapshot extends ResourceSnapshotData {}\n\nexport function resourceChangeDataBeforeSnapshotDeserializer(\n item: any,\n): ResourceChangeDataBeforeSnapshot {\n return {\n snapshotId: item[\"snapshotId\"],\n timestamp: new Date(item[\"timestamp\"]),\n content: item[\"content\"],\n };\n}\n\n/** The snapshot after the change. */\nexport interface ResourceChangeDataAfterSnapshot extends ResourceSnapshotData {}\n\nexport function resourceChangeDataAfterSnapshotDeserializer(\n item: any,\n): ResourceChangeDataAfterSnapshot {\n return {\n snapshotId: item[\"snapshotId\"],\n timestamp: new Date(item[\"timestamp\"]),\n content: item[\"content\"],\n };\n}\n\n/** The change type for snapshot. PropertyChanges will be provided in case of Update change type */\nexport type ChangeType = \"Create\" | \"Update\" | \"Delete\";\n\nexport function resourcePropertyChangeArrayDeserializer(\n result: Array<ResourcePropertyChange>,\n): any[] {\n return result.map((item) => {\n return resourcePropertyChangeDeserializer(item);\n });\n}\n\n/** The resource property change */\nexport interface ResourcePropertyChange {\n /** The property name */\n propertyName: string;\n /** The property value in before snapshot */\n beforeValue?: string;\n /** The property value in after snapshot */\n afterValue?: string;\n /** The change category. */\n changeCategory: ChangeCategory;\n /** The property change Type */\n propertyChangeType: PropertyChangeType;\n}\n\nexport function resourcePropertyChangeDeserializer(item: any): ResourcePropertyChange {\n return {\n propertyName: item[\"propertyName\"],\n beforeValue: item[\"beforeValue\"],\n afterValue: item[\"afterValue\"],\n changeCategory: item[\"changeCategory\"],\n propertyChangeType: item[\"propertyChangeType\"],\n };\n}\n\n/** The change category. */\nexport type ChangeCategory = \"User\" | \"System\";\n/** The property change Type */\nexport type PropertyChangeType = \"Insert\" | \"Update\" | \"Remove\";\n\n/** Data on a specific resource snapshot. */\nexport interface ResourceSnapshotData {\n /** The ID of the snapshot. */\n snapshotId?: string;\n /**\n * The time when the snapshot was created.\n * The snapshot timestamp provides an approximation as to when a modification to a resource was detected. There can be a difference between the actual modification time and the detection time. This is due to differences in how operations that modify a resource are processed, versus how operation that record resource snapshots are processed.\n */\n timestamp: Date;\n /** The resource snapshot content (in resourceChangeDetails response only). */\n content?: any;\n}\n\nexport function resourceSnapshotDataDeserializer(item: any): ResourceSnapshotData {\n return {\n snapshotId: item[\"snapshotId\"],\n timestamp: new Date(item[\"timestamp\"]),\n content: item[\"content\"],\n };\n}\n\n/** The parameters for a specific change details request. */\nexport interface ResourceChangeDetailsRequestParameters {\n /** Specifies the list of resources for a change details request. */\n resourceIds: string[];\n /** Specifies the list of change IDs for a change details request. */\n changeIds: string[];\n}\n\nexport function resourceChangeDetailsRequestParametersSerializer(\n item: ResourceChangeDetailsRequestParameters,\n): any {\n return {\n resourceIds: item[\"resourceIds\"].map((p: any) => {\n return p;\n }),\n changeIds: item[\"changeIds\"].map((p: any) => {\n return p;\n }),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/resourceChanges/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA8BlC,MAAM,UAAU,0CAA0C,CACxD,IAAsC;IAEtC,OAAO;QACL,WAAW,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC;YAC/B,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;YACrB,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBACjC,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;QACN,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACtC,QAAQ,EAAE,kDAAkD,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC9E,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;QAC7B,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;QACjB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;QACpB,oBAAoB,EAAE,IAAI,CAAC,sBAAsB,CAAC;QAClD,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;KACvC,CAAC;AACJ,CAAC;AAKD,MAAM,UAAU,kDAAkD,CAChE,IAA8C;IAE9C,OA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AC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;YAC1C,OAAO,CAAC,CAAC;QACX,CAAC,CAAC;KACH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/*\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport type { DateTimeInterval } from \"../resourceGraphCommon/models.js\";\n\n/** The parameters for a specific changes request. */\nexport interface ResourceChangesRequestParameters {\n /** Specifies the list of resources for a changes request. */\n resourceIds?: string[];\n /** The subscription id of resources to query the changes from. */\n subscriptionId?: string;\n /** Specifies the date and time interval for a changes request. */\n interval: ResourceChangesRequestParametersInterval;\n /** Acts as the continuation token for paged responses. */\n skipToken?: string;\n /** The maximum number of changes the client can accept in a paged response. */\n top?: number;\n /** The table name to query resources from. */\n table?: string;\n /** The flag if set to true will fetch property changes */\n fetchPropertyChanges?: boolean;\n /** The flag if set to true will fetch change snapshots */\n fetchSnapshots?: boolean;\n}\n\nexport function resourceChangesRequestParametersSerializer(\n item: ResourceChangesRequestParameters,\n): any {\n return {\n resourceIds: !item[\"resourceIds\"]\n ? item[\"resourceIds\"]\n : item[\"resourceIds\"].map((p: any) => {\n return p;\n }),\n subscriptionId: item[\"subscriptionId\"],\n interval: resourceChangesRequestParametersIntervalSerializer(item[\"interval\"]),\n $skipToken: item[\"skipToken\"],\n $top: item[\"top\"],\n table: item[\"table\"],\n fetchPropertyChanges: item[\"fetchPropertyChanges\"],\n fetchSnapshots: item[\"fetchSnapshots\"],\n };\n}\n\n/** Specifies the date and time interval for a changes request. */\nexport interface ResourceChangesRequestParametersInterval extends DateTimeInterval {}\n\nexport function resourceChangesRequestParametersIntervalSerializer(\n item: ResourceChangesRequestParametersInterval,\n): any {\n return { start: item[\"start\"].toISOString(), end: item[\"end\"].toISOString() };\n}\n\n/** A list of changes associated with a resource over a specific time interval. */\nexport interface ResourceChangeList {\n /**\n * The pageable value returned by the operation, i.e. a list of changes to the resource.\n *\n * - The list is ordered from the most recent changes to the least recent changes.\n * - This list will be empty if there were no changes during the requested interval.\n * - The `Before` snapshot timestamp value of the oldest change can be outside of the specified time interval.\n */\n changes?: ResourceChangeData[];\n /** Skip token that encodes the skip information while executing the current request */\n skipToken?: any;\n}\n\nexport function resourceChangeListDeserializer(item: any): ResourceChangeList {\n return {\n changes: !item[\"changes\"]\n ? item[\"changes\"]\n : resourceChangeDataArrayDeserializer(item[\"changes\"]),\n skipToken: item[\"$skipToken\"],\n };\n}\n\nexport function resourceChangeDataArrayDeserializer(result: Array<ResourceChangeData>): any[] {\n return result.map((item) => {\n return resourceChangeDataDeserializer(item);\n });\n}\n\n/** Data on a specific change, represented by a pair of before and after resource snapshots. */\nexport interface ResourceChangeData {\n /** The resource for a change. */\n resourceId?: string;\n /** The change ID. Valid and unique within the specified resource only. */\n changeId: string;\n /** The snapshot before the change. */\n beforeSnapshot: ResourceChangeDataBeforeSnapshot;\n /** The snapshot after the change. */\n afterSnapshot: ResourceChangeDataAfterSnapshot;\n /** The change type for snapshot. PropertyChanges will be provided in case of Update change type */\n changeType?: ChangeType;\n /** An array of resource property change */\n propertyChanges?: ResourcePropertyChange[];\n}\n\nexport function resourceChangeDataDeserializer(item: any): ResourceChangeData {\n return {\n resourceId: item[\"resourceId\"],\n changeId: item[\"changeId\"],\n beforeSnapshot: resourceChangeDataBeforeSnapshotDeserializer(item[\"beforeSnapshot\"]),\n afterSnapshot: resourceChangeDataAfterSnapshotDeserializer(item[\"afterSnapshot\"]),\n changeType: item[\"changeType\"],\n propertyChanges: !item[\"propertyChanges\"]\n ? item[\"propertyChanges\"]\n : resourcePropertyChangeArrayDeserializer(item[\"propertyChanges\"]),\n };\n}\n\n/** The snapshot before the change. */\nexport interface ResourceChangeDataBeforeSnapshot extends ResourceSnapshotData {}\n\nexport function resourceChangeDataBeforeSnapshotDeserializer(\n item: any,\n): ResourceChangeDataBeforeSnapshot {\n return {\n snapshotId: item[\"snapshotId\"],\n timestamp: new Date(item[\"timestamp\"]),\n content: item[\"content\"],\n };\n}\n\n/** The snapshot after the change. */\nexport interface ResourceChangeDataAfterSnapshot extends ResourceSnapshotData {}\n\nexport function resourceChangeDataAfterSnapshotDeserializer(\n item: any,\n): ResourceChangeDataAfterSnapshot {\n return {\n snapshotId: item[\"snapshotId\"],\n timestamp: new Date(item[\"timestamp\"]),\n content: item[\"content\"],\n };\n}\n\n/** The change type for snapshot. PropertyChanges will be provided in case of Update change type */\nexport type ChangeType = \"Create\" | \"Update\" | \"Delete\";\n\nexport function resourcePropertyChangeArrayDeserializer(\n result: Array<ResourcePropertyChange>,\n): any[] {\n return result.map((item) => {\n return resourcePropertyChangeDeserializer(item);\n });\n}\n\n/** The resource property change */\nexport interface ResourcePropertyChange {\n /** The property name */\n propertyName: string;\n /** The property value in before snapshot */\n beforeValue?: string;\n /** The property value in after snapshot */\n afterValue?: string;\n /** The change category. */\n changeCategory: ChangeCategory;\n /** The property change Type */\n propertyChangeType: PropertyChangeType;\n}\n\nexport function resourcePropertyChangeDeserializer(item: any): ResourcePropertyChange {\n return {\n propertyName: item[\"propertyName\"],\n beforeValue: item[\"beforeValue\"],\n afterValue: item[\"afterValue\"],\n changeCategory: item[\"changeCategory\"],\n propertyChangeType: item[\"propertyChangeType\"],\n };\n}\n\n/** The change category. */\nexport type ChangeCategory = \"User\" | \"System\";\n/** The property change Type */\nexport type PropertyChangeType = \"Insert\" | \"Update\" | \"Remove\";\n\n/** Data on a specific resource snapshot. */\nexport interface ResourceSnapshotData {\n /** The ID of the snapshot. */\n snapshotId?: string;\n /**\n * The time when the snapshot was created.\n * The snapshot timestamp provides an approximation as to when a modification to a resource was detected. There can be a difference between the actual modification time and the detection time. This is due to differences in how operations that modify a resource are processed, versus how operation that record resource snapshots are processed.\n */\n timestamp: Date;\n /** The resource snapshot content (in resourceChangeDetails response only). */\n content?: any;\n}\n\nexport function resourceSnapshotDataDeserializer(item: any): ResourceSnapshotData {\n return {\n snapshotId: item[\"snapshotId\"],\n timestamp: new Date(item[\"timestamp\"]),\n content: item[\"content\"],\n };\n}\n\n/** The parameters for a specific change details request. */\nexport interface ResourceChangeDetailsRequestParameters {\n /** Specifies the list of resources for a change details request. */\n resourceIds: string[];\n /** Specifies the list of change IDs for a change details request. */\n changeIds: string[];\n}\n\nexport function resourceChangeDetailsRequestParametersSerializer(\n item: ResourceChangeDetailsRequestParameters,\n): any {\n return {\n resourceIds: item[\"resourceIds\"].map((p: any) => {\n return p;\n }),\n changeIds: item[\"changeIds\"].map((p: any) => {\n return p;\n }),\n };\n}\n"]}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { ErrorDetails, ResultFormat } from "../resourceGraphCommon/models.js";
|
|
2
|
-
/**
|
|
3
|
-
* This file contains only generated model types and their (de)serializers.
|
|
4
|
-
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
|
|
5
|
-
*/
|
|
6
2
|
/** Describes a query to be executed. */
|
|
7
3
|
export interface QueryRequest {
|
|
8
4
|
/** Azure subscriptions against which to execute the query. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/resourceGraphApi/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAsBjF,MAAM,UAAU,sBAAsB,CAAC,IAAkB;IACvD,OAAO;QACL,aAAa,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;YACnC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBACnC,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;QACN,gBAAgB,EAAE,CAAC,IAAI,C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AAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3F,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;KACvB,CAAC;AACJ,CAAC;AAcD,MAAM,UAAU,4BAA4B,CAAC,IAAS;IACpD,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;KACjC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ErrorDetails, ResultFormat } from \"../resourceGraphCommon/models.js\";\nimport { errorDetailsArrayDeserializer } from \"../resourceGraphCommon/models.js\";\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** Describes a query to be executed. */\nexport interface QueryRequest {\n /** Azure subscriptions against which to execute the query. */\n subscriptions?: string[];\n /** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */\n managementGroups?: string[];\n /** The resources query. */\n query: string;\n /** The query evaluation options */\n options?: QueryRequestOptions;\n /** An array of facet requests to be computed against the query result. */\n facets?: FacetRequest[];\n}\n\nexport function queryRequestSerializer(item: QueryRequest): any {\n return {\n subscriptions: !item[\"subscriptions\"]\n ? item[\"subscriptions\"]\n : item[\"subscriptions\"].map((p: any) => {\n return p;\n }),\n managementGroups: !item[\"managementGroups\"]\n ? item[\"managementGroups\"]\n : item[\"managementGroups\"].map((p: any) => {\n return p;\n }),\n query: item[\"query\"],\n options: !item[\"options\"] ? item[\"options\"] : queryRequestOptionsSerializer(item[\"options\"]),\n facets: !item[\"facets\"] ? item[\"facets\"] : facetRequestArraySerializer(item[\"facets\"]),\n };\n}\n\n/** The options for query evaluation */\nexport interface QueryRequestOptions {\n /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */\n skipToken?: string;\n /** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */\n top?: number;\n /** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */\n skip?: number;\n /** Defines in which format query result returned. */\n resultFormat?: ResultFormat;\n /** Only applicable for tenant and management group level queries to decide whether to allow partial scopes for result in case the number of subscriptions exceed allowed limits. */\n allowPartialScopes?: boolean;\n /** Defines what level of authorization resources should be returned based on the which subscriptions and management groups are passed as scopes. */\n authorizationScopeFilter?: AuthorizationScopeFilter;\n}\n\nexport function queryRequestOptionsSerializer(item: QueryRequestOptions): any {\n return {\n $skipToken: item[\"skipToken\"],\n $top: item[\"top\"],\n $skip: item[\"skip\"],\n resultFormat: item[\"resultFormat\"],\n allowPartialScopes: item[\"allowPartialScopes\"],\n authorizationScopeFilter: item[\"authorizationScopeFilter\"],\n };\n}\n\n/** Defines what level of authorization resources should be returned based on the which subscriptions and management groups are passed as scopes. */\nexport type AuthorizationScopeFilter =\n | \"AtScopeAndBelow\"\n | \"AtScopeAndAbove\"\n | \"AtScopeExact\"\n | \"AtScopeAboveAndBelow\";\n\nexport function facetRequestArraySerializer(result: Array<FacetRequest>): any[] {\n return result.map((item) => {\n return facetRequestSerializer(item);\n });\n}\n\n/** A request to compute additional statistics (facets) over the query results. */\nexport interface FacetRequest {\n /** The column or list of columns to summarize by */\n expression: string;\n /** The options for facet evaluation */\n options?: FacetRequestOptions;\n}\n\nexport function facetRequestSerializer(item: FacetRequest): any {\n return {\n expression: item[\"expression\"],\n options: !item[\"options\"] ? item[\"options\"] : facetRequestOptionsSerializer(item[\"options\"]),\n };\n}\n\n/** The options for facet evaluation */\nexport interface FacetRequestOptions {\n /** The column name or query expression to sort on. Defaults to count if not present. */\n sortBy?: string;\n /** The sorting order by the selected column (count by default). */\n sortOrder?: FacetSortOrder;\n /** Specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting. */\n filter?: string;\n /** The maximum number of facet rows that should be returned. */\n top?: number;\n}\n\nexport function facetRequestOptionsSerializer(item: FacetRequestOptions): any {\n return {\n sortBy: item[\"sortBy\"],\n sortOrder: item[\"sortOrder\"],\n filter: item[\"filter\"],\n $top: item[\"top\"],\n };\n}\n\n/** The sorting order by the selected column (count by default). */\nexport type FacetSortOrder = \"asc\" | \"desc\";\n\n/** Query result. */\nexport interface QueryResponse {\n /** Number of total records matching the query. */\n totalRecords: number;\n /** Number of records returned in the current response. In the case of paging, this is the number of records in the current page. */\n count: number;\n /** Indicates whether the query results are truncated. */\n resultTruncated: ResultTruncated;\n /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */\n skipToken?: string;\n /** Query output in JObject array or Table format. */\n data: any;\n /** Query facets. */\n facets?: FacetUnion[];\n}\n\nexport function queryResponseDeserializer(item: any): QueryResponse {\n return {\n totalRecords: item[\"totalRecords\"],\n count: item[\"count\"],\n resultTruncated: item[\"resultTruncated\"],\n skipToken: item[\"$skipToken\"],\n data: item[\"data\"],\n facets: !item[\"facets\"] ? item[\"facets\"] : facetUnionArrayDeserializer(item[\"facets\"]),\n };\n}\n\n/** Indicates whether the query results are truncated. */\nexport type ResultTruncated = \"true\" | \"false\";\n\nexport function facetUnionArrayDeserializer(result: Array<FacetUnion>): any[] {\n return result.map((item) => {\n return facetUnionDeserializer(item);\n });\n}\n\n/** A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError. */\nexport interface Facet {\n /** Facet expression, same as in the corresponding facet request. */\n expression: string;\n /** Result type */\n /** The discriminator possible values: FacetResult, FacetError */\n resultType: string;\n}\n\nexport function facetDeserializer(item: any): Facet {\n return {\n expression: item[\"expression\"],\n resultType: item[\"resultType\"],\n };\n}\n\n/** Alias for FacetUnion */\nexport type FacetUnion = FacetResult | FacetError | Facet;\n\nexport function facetUnionDeserializer(item: any): FacetUnion {\n switch (item[\"resultType\"]) {\n case \"FacetResult\":\n return facetResultDeserializer(item as FacetResult);\n\n case \"FacetError\":\n return facetErrorDeserializer(item as FacetError);\n\n default:\n return facetDeserializer(item);\n }\n}\n\n/** Successfully executed facet containing additional statistics on the response of a query. */\nexport interface FacetResult extends Facet {\n /** Number of total records in the facet results. */\n totalRecords: number;\n /** Number of records returned in the facet response. */\n count: number;\n /** A JObject array or Table containing the desired facets. Only present if the facet is valid. */\n data: any;\n /** Result type */\n resultType: \"FacetResult\";\n}\n\nexport function facetResultDeserializer(item: any): FacetResult {\n return {\n expression: item[\"expression\"],\n resultType: item[\"resultType\"],\n totalRecords: item[\"totalRecords\"],\n count: item[\"count\"],\n data: item[\"data\"],\n };\n}\n\n/** A facet whose execution resulted in an error. */\nexport interface FacetError extends Facet {\n /** An array containing detected facet errors with details. */\n errors: ErrorDetails[];\n /** Result type */\n resultType: \"FacetError\";\n}\n\nexport function facetErrorDeserializer(item: any): FacetError {\n return {\n expression: item[\"expression\"],\n resultType: item[\"resultType\"],\n errors: errorDetailsArrayDeserializer(item[\"errors\"]),\n };\n}\n\n/** Paged collection of Operation items */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Resource Graph REST API operation definition. */\nexport interface Operation {\n /** Operation name: {provider}/{resource}/{operation} */\n name?: string;\n /** Display metadata associated with the operation. */\n display?: OperationDisplay;\n /** The origin of operations. */\n origin?: string;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n };\n}\n\n/** Display metadata associated with the operation. */\nexport interface OperationDisplay {\n /** Service provider: Microsoft Resource Graph. */\n provider?: string;\n /** Resource on which the operation is performed etc. */\n resource?: string;\n /** Type of operation: get, read, delete, etc. */\n operation?: string;\n /** Description for the operation. */\n description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/resourceGraphApi/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAgBjF,MAAM,UAAU,sBAAsB,CAAC,IAAkB;IACvD,OAAO;QACL,aAAa,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;YACnC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBACnC,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;QACN,gBAAgB,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC;YACzC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC;YAC1B,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBACtC,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;QACN,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5F,MAAM,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,C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) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/*\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport type { ErrorDetails, ResultFormat } from \"../resourceGraphCommon/models.js\";\nimport { errorDetailsArrayDeserializer } from \"../resourceGraphCommon/models.js\";\n\n/** Describes a query to be executed. */\nexport interface QueryRequest {\n /** Azure subscriptions against which to execute the query. */\n subscriptions?: string[];\n /** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */\n managementGroups?: string[];\n /** The resources query. */\n query: string;\n /** The query evaluation options */\n options?: QueryRequestOptions;\n /** An array of facet requests to be computed against the query result. */\n facets?: FacetRequest[];\n}\n\nexport function queryRequestSerializer(item: QueryRequest): any {\n return {\n subscriptions: !item[\"subscriptions\"]\n ? item[\"subscriptions\"]\n : item[\"subscriptions\"].map((p: any) => {\n return p;\n }),\n managementGroups: !item[\"managementGroups\"]\n ? item[\"managementGroups\"]\n : item[\"managementGroups\"].map((p: any) => {\n return p;\n }),\n query: item[\"query\"],\n options: !item[\"options\"] ? item[\"options\"] : queryRequestOptionsSerializer(item[\"options\"]),\n facets: !item[\"facets\"] ? item[\"facets\"] : facetRequestArraySerializer(item[\"facets\"]),\n };\n}\n\n/** The options for query evaluation */\nexport interface QueryRequestOptions {\n /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */\n skipToken?: string;\n /** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */\n top?: number;\n /** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */\n skip?: number;\n /** Defines in which format query result returned. */\n resultFormat?: ResultFormat;\n /** Only applicable for tenant and management group level queries to decide whether to allow partial scopes for result in case the number of subscriptions exceed allowed limits. */\n allowPartialScopes?: boolean;\n /** Defines what level of authorization resources should be returned based on the which subscriptions and management groups are passed as scopes. */\n authorizationScopeFilter?: AuthorizationScopeFilter;\n}\n\nexport function queryRequestOptionsSerializer(item: QueryRequestOptions): any {\n return {\n $skipToken: item[\"skipToken\"],\n $top: item[\"top\"],\n $skip: item[\"skip\"],\n resultFormat: item[\"resultFormat\"],\n allowPartialScopes: item[\"allowPartialScopes\"],\n authorizationScopeFilter: item[\"authorizationScopeFilter\"],\n };\n}\n\n/** Defines what level of authorization resources should be returned based on the which subscriptions and management groups are passed as scopes. */\nexport type AuthorizationScopeFilter =\n \"AtScopeAndBelow\" | \"AtScopeAndAbove\" | \"AtScopeExact\" | \"AtScopeAboveAndBelow\";\n\nexport function facetRequestArraySerializer(result: Array<FacetRequest>): any[] {\n return result.map((item) => {\n return facetRequestSerializer(item);\n });\n}\n\n/** A request to compute additional statistics (facets) over the query results. */\nexport interface FacetRequest {\n /** The column or list of columns to summarize by */\n expression: string;\n /** The options for facet evaluation */\n options?: FacetRequestOptions;\n}\n\nexport function facetRequestSerializer(item: FacetRequest): any {\n return {\n expression: item[\"expression\"],\n options: !item[\"options\"] ? item[\"options\"] : facetRequestOptionsSerializer(item[\"options\"]),\n };\n}\n\n/** The options for facet evaluation */\nexport interface FacetRequestOptions {\n /** The column name or query expression to sort on. Defaults to count if not present. */\n sortBy?: string;\n /** The sorting order by the selected column (count by default). */\n sortOrder?: FacetSortOrder;\n /** Specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting. */\n filter?: string;\n /** The maximum number of facet rows that should be returned. */\n top?: number;\n}\n\nexport function facetRequestOptionsSerializer(item: FacetRequestOptions): any {\n return {\n sortBy: item[\"sortBy\"],\n sortOrder: item[\"sortOrder\"],\n filter: item[\"filter\"],\n $top: item[\"top\"],\n };\n}\n\n/** The sorting order by the selected column (count by default). */\nexport type FacetSortOrder = \"asc\" | \"desc\";\n\n/** Query result. */\nexport interface QueryResponse {\n /** Number of total records matching the query. */\n totalRecords: number;\n /** Number of records returned in the current response. In the case of paging, this is the number of records in the current page. */\n count: number;\n /** Indicates whether the query results are truncated. */\n resultTruncated: ResultTruncated;\n /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */\n skipToken?: string;\n /** Query output in JObject array or Table format. */\n data: any;\n /** Query facets. */\n facets?: FacetUnion[];\n}\n\nexport function queryResponseDeserializer(item: any): QueryResponse {\n return {\n totalRecords: item[\"totalRecords\"],\n count: item[\"count\"],\n resultTruncated: item[\"resultTruncated\"],\n skipToken: item[\"$skipToken\"],\n data: item[\"data\"],\n facets: !item[\"facets\"] ? item[\"facets\"] : facetUnionArrayDeserializer(item[\"facets\"]),\n };\n}\n\n/** Indicates whether the query results are truncated. */\nexport type ResultTruncated = \"true\" | \"false\";\n\nexport function facetUnionArrayDeserializer(result: Array<FacetUnion>): any[] {\n return result.map((item) => {\n return facetUnionDeserializer(item);\n });\n}\n\n/** A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError. */\nexport interface Facet {\n /** Facet expression, same as in the corresponding facet request. */\n expression: string;\n /** Result type */\n /** The discriminator possible values: FacetResult, FacetError */\n resultType: string;\n}\n\nexport function facetDeserializer(item: any): Facet {\n return {\n expression: item[\"expression\"],\n resultType: item[\"resultType\"],\n };\n}\n\n/** Alias for FacetUnion */\nexport type FacetUnion = FacetResult | FacetError | Facet;\n\nexport function facetUnionDeserializer(item: any): FacetUnion {\n switch (item[\"resultType\"]) {\n case \"FacetResult\":\n return facetResultDeserializer(item as FacetResult);\n\n case \"FacetError\":\n return facetErrorDeserializer(item as FacetError);\n\n default:\n return facetDeserializer(item);\n }\n}\n\n/** Successfully executed facet containing additional statistics on the response of a query. */\nexport interface FacetResult extends Facet {\n /** Number of total records in the facet results. */\n totalRecords: number;\n /** Number of records returned in the facet response. */\n count: number;\n /** A JObject array or Table containing the desired facets. Only present if the facet is valid. */\n data: any;\n /** Result type */\n resultType: \"FacetResult\";\n}\n\nexport function facetResultDeserializer(item: any): FacetResult {\n return {\n expression: item[\"expression\"],\n resultType: item[\"resultType\"],\n totalRecords: item[\"totalRecords\"],\n count: item[\"count\"],\n data: item[\"data\"],\n };\n}\n\n/** A facet whose execution resulted in an error. */\nexport interface FacetError extends Facet {\n /** An array containing detected facet errors with details. */\n errors: ErrorDetails[];\n /** Result type */\n resultType: \"FacetError\";\n}\n\nexport function facetErrorDeserializer(item: any): FacetError {\n return {\n expression: item[\"expression\"],\n resultType: item[\"resultType\"],\n errors: errorDetailsArrayDeserializer(item[\"errors\"]),\n };\n}\n\n/** Paged collection of Operation items */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Resource Graph REST API operation definition. */\nexport interface Operation {\n /** Operation name: {provider}/{resource}/{operation} */\n name?: string;\n /** Display metadata associated with the operation. */\n display?: OperationDisplay;\n /** The origin of operations. */\n origin?: string;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n };\n}\n\n/** Display metadata associated with the operation. */\nexport interface OperationDisplay {\n /** Service provider: Microsoft Resource Graph. */\n provider?: string;\n /** Resource on which the operation is performed etc. */\n resource?: string;\n /** Type of operation: get, read, delete, etc. */\n operation?: string;\n /** Description for the operation. */\n description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n"]}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains only generated model types and their (de)serializers.
|
|
3
|
-
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
|
|
4
|
-
*/
|
|
5
1
|
/** An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. `[start, end)`. */
|
|
6
2
|
export interface DateTimeInterval {
|
|
7
3
|
/** A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error. */
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
+
/*
|
|
4
|
+
* This file contains only generated model types and their (de)serializers.
|
|
5
|
+
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
|
|
6
|
+
*/
|
|
7
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
8
|
+
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
3
9
|
import { serializeRecord } from "../../static-helpers/serialization/serialize-record.js";
|
|
4
10
|
export function dateTimeIntervalSerializer(item) {
|
|
5
11
|
return { start: item["start"].toISOString(), end: item["end"].toISOString() };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/resourceGraphCommon/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/resourceGraphCommon/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,yDAAyD;AACzD,sEAAsE;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;AAUzF,MAAM,UAAU,0BAA0B,CAAC,IAAsB;IAC/D,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;AAChF,CAAC;AAQD,MAAM,UAAU,yBAAyB,CAAC,IAAS;IACjD,OAAO;QACL,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACxC,CAAC;AACJ,CAAC;AAYD,MAAM,UAAU,iBAAiB,CAAC,IAAS;IACzC,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC7F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,MAA2B;IACvE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC;AAYD,MAAM,UAAU,wBAAwB,CAAC,IAAS;IAChD,OAAO;QACL,oBAAoB,EAAE,eAAe,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAChE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;KACzB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/*\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport { serializeRecord } from \"../../static-helpers/serialization/serialize-record.js\";\n\n/** An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. `[start, end)`. */\nexport interface DateTimeInterval {\n /** A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error. */\n start: Date;\n /** A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error. */\n end: Date;\n}\n\nexport function dateTimeIntervalSerializer(item: DateTimeInterval): any {\n return { start: item[\"start\"].toISOString(), end: item[\"end\"].toISOString() };\n}\n\n/** An error response from the API. */\nexport interface ErrorResponse {\n /** Error information. */\n error: ErrorModel;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: errorDeserializer(item[\"error\"]),\n };\n}\n\n/** Error details. */\nexport interface ErrorModel {\n /** Error code identifying the specific error. */\n code: string;\n /** A human readable error message. */\n message: string;\n /** Error details */\n details?: ErrorDetails[];\n}\n\nexport function errorDeserializer(item: any): ErrorModel {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailsArrayDeserializer(item[\"details\"]),\n };\n}\n\nexport function errorDetailsArrayDeserializer(result: Array<ErrorDetails>): any[] {\n return result.map((item) => {\n return errorDetailsDeserializer(item);\n });\n}\n\n/** Error details. */\nexport interface ErrorDetails {\n /** Error code identifying the specific error. */\n code: string;\n /** A human readable error message. */\n message: string;\n /** Additional properties */\n additionalProperties?: Record<string, any>;\n}\n\nexport function errorDetailsDeserializer(item: any): ErrorDetails {\n return {\n additionalProperties: serializeRecord(item, [\"code\", \"message\"]),\n code: item[\"code\"],\n message: item[\"message\"],\n };\n}\n\n/** Defines in which format query result returned. */\nexport type ResultFormat = \"table\" | \"objectArray\";\n"]}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { DateTimeInterval, ResultFormat } from "../resourceGraphCommon/models.js";
|
|
2
|
-
/**
|
|
3
|
-
* This file contains only generated model types and their (de)serializers.
|
|
4
|
-
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
|
|
5
|
-
*/
|
|
6
2
|
/** Describes a history request to be executed. */
|
|
7
3
|
export interface ResourcesHistoryRequest {
|
|
8
4
|
/** Azure subscriptions against which to execute the query. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/resourceHistory/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/resourceHistory/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAc9E,MAAM,UAAU,iCAAiC,CAAC,IAA6B;IAC7E,OAAO;QACL,aAAa,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;YACnC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBACnC,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;QACN,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;YACjB,CAAC,CAAC,wCAAwC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7D,gBAAgB,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC;YACzC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC;YAC1B,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;gBACtC,OAAO,CAAC,CAAC;YACX,CAAC,CAAC;KACP,CAAC;AACJ,CAAC;AAgBD,MAAM,UAAU,wCAAwC,CACtD,IAAoC;IAEpC,OAAO;QACL,QAAQ,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC7F,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;QACjB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC;QACnB,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;QAC7B,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;KACnC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/*\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport type { DateTimeInterval, ResultFormat } from \"../resourceGraphCommon/models.js\";\nimport { dateTimeIntervalSerializer } from \"../resourceGraphCommon/models.js\";\n\n/** Describes a history request to be executed. */\nexport interface ResourcesHistoryRequest {\n /** Azure subscriptions against which to execute the query. */\n subscriptions?: string[];\n /** The resources query. */\n query?: string;\n /** The history request evaluation options */\n options?: ResourcesHistoryRequestOptions;\n /** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */\n managementGroups?: string[];\n}\n\nexport function resourcesHistoryRequestSerializer(item: ResourcesHistoryRequest): any {\n return {\n subscriptions: !item[\"subscriptions\"]\n ? item[\"subscriptions\"]\n : item[\"subscriptions\"].map((p: any) => {\n return p;\n }),\n query: item[\"query\"],\n options: !item[\"options\"]\n ? item[\"options\"]\n : resourcesHistoryRequestOptionsSerializer(item[\"options\"]),\n managementGroups: !item[\"managementGroups\"]\n ? item[\"managementGroups\"]\n : item[\"managementGroups\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The options for history request evaluation */\nexport interface ResourcesHistoryRequestOptions {\n /** The time interval used to fetch history. */\n interval?: DateTimeInterval;\n /** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */\n top?: number;\n /** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */\n skip?: number;\n /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */\n skipToken?: string;\n /** Defines in which format query result returned. */\n resultFormat?: ResultFormat;\n}\n\nexport function resourcesHistoryRequestOptionsSerializer(\n item: ResourcesHistoryRequestOptions,\n): any {\n return {\n interval: !item[\"interval\"] ? item[\"interval\"] : dateTimeIntervalSerializer(item[\"interval\"]),\n $top: item[\"top\"],\n $skip: item[\"skip\"],\n $skipToken: item[\"skipToken\"],\n resultFormat: item[\"resultFormat\"],\n };\n}\n"]}
|
|
@@ -17,14 +17,7 @@ export class ResourceGraphClient {
|
|
|
17
17
|
options = subscriptionIdOrOptions;
|
|
18
18
|
}
|
|
19
19
|
options = options ?? {};
|
|
20
|
-
|
|
21
|
-
const userAgentPrefix = prefixFromOptions
|
|
22
|
-
? `${prefixFromOptions} azsdk-js-client`
|
|
23
|
-
: `azsdk-js-client`;
|
|
24
|
-
this._client = createResourceGraph(credential, subscriptionId ?? "", {
|
|
25
|
-
...options,
|
|
26
|
-
userAgentOptions: { userAgentPrefix },
|
|
27
|
-
});
|
|
20
|
+
this._client = createResourceGraph(credential, subscriptionId ?? "", options);
|
|
28
21
|
this.pipeline = this._client.pipeline;
|
|
29
22
|
this.graphQuery = _getGraphQueryOperations(this._client);
|
|
30
23
|
this.operations = _getOperationsOperations(this._client);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceGraphClient.js","sourceRoot":"","sources":["../../src/resourceGraphClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,qBAAqB,EACrB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BA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I,EAAE,EAAE,OAAO,CAAC,CAAC;QAC9E,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,kEAAkE;IAClE,gBAAgB,CACd,OAAgC,EAChC,UAA0C,EAAE,cAAc,EAAE,EAAE,EAAE;QAEhE,OAAO,gBAAgB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED,mGAAmG;IACnG,SAAS,CACP,KAAmB,EACnB,UAAmC,EAAE,cAAc,EAAE,EAAE,EAAE;QAEzD,OAAO,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,mCAAmC;IACnC,qBAAqB,CACnB,UAAkD,EAClD,UAA+C,EAAE,cAAc,EAAE,EAAE,EAAE;QAErE,OAAO,qBAAqB,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,4DAA4D;IAC5D,eAAe,CACb,UAA4C,EAC5C,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;QAE/D,OAAO,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,0CAA0C;IAC1B,UAAU,CAAuB;IACjD,0CAA0C;IAC1B,UAAU,CAAuB;CAClD","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceGraphContext, ResourceGraphClientOptionalParams } from \"./api/index.js\";\nimport { createResourceGraph } from \"./api/index.js\";\nimport {\n resourcesHistory,\n resources,\n resourceChangeDetails,\n resourceChanges,\n} from \"./api/operations.js\";\nimport type {\n ResourcesHistoryOptionalParams,\n ResourcesOptionalParams,\n ResourceChangeDetailsOptionalParams,\n ResourceChangesOptionalParams,\n} from \"./api/options.js\";\nimport type { GraphQueryOperations } from \"./classic/graphQuery/index.js\";\nimport { _getGraphQueryOperations } from \"./classic/graphQuery/index.js\";\nimport type { OperationsOperations } from \"./classic/operations/index.js\";\nimport { _getOperationsOperations } from \"./classic/operations/index.js\";\nimport type { ResourcesHistoryResponse } from \"./models/models.js\";\nimport type {\n ResourceChangesRequestParameters,\n ResourceChangeList,\n ResourceChangeData,\n ResourceChangeDetailsRequestParameters,\n} from \"./models/resourceChanges/models.js\";\nimport type { QueryRequest, QueryResponse } from \"./models/resourceGraphApi/models.js\";\nimport type { ResourcesHistoryRequest } from \"./models/resourceHistory/models.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport type { ResourceGraphClientOptionalParams } from \"./api/resourceGraphContext.js\";\n\nexport class ResourceGraphClient {\n private _client: ResourceGraphContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(credential: TokenCredential, options?: ResourceGraphClientOptionalParams);\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options?: ResourceGraphClientOptionalParams,\n );\n constructor(\n credential: TokenCredential,\n subscriptionIdOrOptions?: string | ResourceGraphClientOptionalParams,\n options?: ResourceGraphClientOptionalParams,\n ) {\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n options = options ?? {};\n this._client = createResourceGraph(credential, subscriptionId ?? \"\", options);\n this.pipeline = this._client.pipeline;\n this.graphQuery = _getGraphQueryOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** List all snapshots of a resource for a given time interval. */\n resourcesHistory(\n request: ResourcesHistoryRequest,\n options: ResourcesHistoryOptionalParams = { requestOptions: {} },\n ): Promise<ResourcesHistoryResponse> {\n return resourcesHistory(this._client, request, options);\n }\n\n /** Queries the resources managed by Azure Resource Manager for scopes specified in the request. */\n resources(\n query: QueryRequest,\n options: ResourcesOptionalParams = { requestOptions: {} },\n ): Promise<QueryResponse> {\n return resources(this._client, query, options);\n }\n\n /** Get resource change details. */\n resourceChangeDetails(\n parameters: ResourceChangeDetailsRequestParameters,\n options: ResourceChangeDetailsOptionalParams = { requestOptions: {} },\n ): Promise<ResourceChangeData[]> {\n return resourceChangeDetails(this._client, parameters, options);\n }\n\n /** List changes to a resource for a given time interval. */\n resourceChanges(\n parameters: ResourceChangesRequestParameters,\n options: ResourceChangesOptionalParams = { requestOptions: {} },\n ): Promise<ResourceChangeList> {\n return resourceChanges(this._client, parameters, options);\n }\n\n /** The operation groups for graphQuery */\n public readonly graphQuery: GraphQueryOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/arm-resourcegraph",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "A generated SDK for ResourceGraphClient.",
|
|
5
5
|
"engines": {
|
|
6
|
-
"node": ">=
|
|
6
|
+
"node": ">=22.0.0"
|
|
7
7
|
},
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"autoPublish": false,
|
|
@@ -178,10 +178,10 @@
|
|
|
178
178
|
},
|
|
179
179
|
"devDependencies": {
|
|
180
180
|
"@azure/identity": "4.13.0",
|
|
181
|
-
"@types/node": "^
|
|
181
|
+
"@types/node": "^22.0.0",
|
|
182
182
|
"cross-env": "^10.1.0",
|
|
183
|
-
"eslint": "^
|
|
184
|
-
"prettier": "^3.
|
|
183
|
+
"eslint": "^10.8.0",
|
|
184
|
+
"prettier": "^3.9.1",
|
|
185
185
|
"rimraf": "^6.1.0",
|
|
186
186
|
"@vitest/browser-playwright": "^4.1.2",
|
|
187
187
|
"@vitest/coverage-istanbul": "^4.1.2",
|
|
@@ -191,8 +191,8 @@
|
|
|
191
191
|
"vitest": "^4.1.2",
|
|
192
192
|
"@azure-tools/test-credential": "^2.1.2",
|
|
193
193
|
"@azure-tools/test-recorder": "^4.1.1",
|
|
194
|
-
"@azure/dev-tool": "^1.0.0",
|
|
195
194
|
"@azure-tools/test-utils-vitest": "^2.0.1",
|
|
195
|
+
"@azure/dev-tool": "^1.0.0",
|
|
196
196
|
"@azure/eslint-plugin-azure-sdk": "^3.0.0"
|
|
197
197
|
},
|
|
198
198
|
"//sampleConfiguration": {
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"azure"
|
|
202
202
|
],
|
|
203
203
|
"disableDocsMs": true,
|
|
204
|
-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-resourcegraph
|
|
204
|
+
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-resourcegraph"
|
|
205
205
|
},
|
|
206
206
|
"scripts": {
|
|
207
207
|
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|