@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
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Key links:
|
|
|
8
8
|
|
|
9
9
|
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcegraph/arm-resourcegraph)
|
|
10
10
|
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-resourcegraph)
|
|
11
|
-
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-resourcegraph
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-resourcegraph)
|
|
12
12
|
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcegraph/arm-resourcegraph/samples)
|
|
13
13
|
|
|
14
14
|
## Getting started
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/graphQuery/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,2BAA2B,EAC3B,oCAAoC,EACpC,iCAAiC,GAClC,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAUxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,uBAAuB,CACrC,OAAe,EACf,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5E,MAAM,IAAI,GAAG,iBAAiB,CAC5B,2FAA2F,EAC3F;QACE,cA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,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,2BAA2B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3D,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,8BAA8B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACrD,CAAC;AAED,oDAAoD;AACpD,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,YAAoB,EACpB,UAAuC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IACjF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceGraphContext as Client } from \"../index.js\";\nimport type {\n GraphQueryResource,\n GraphQueryUpdateParameters,\n _GraphQueryListResult,\n} from \"../../models/graphQueryApi/models.js\";\nimport {\n graphQueryResourceSerializer,\n graphQueryResourceDeserializer,\n graphQueryErrorDeserializer,\n graphQueryUpdateParametersSerializer,\n _graphQueryListResultDeserializer,\n} from \"../../models/graphQueryApi/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n GraphQueryListBySubscriptionOptionalParams,\n GraphQueryListOptionalParams,\n GraphQueryDeleteOptionalParams,\n GraphQueryUpdateOptionalParams,\n GraphQueryCreateOrUpdateOptionalParams,\n GraphQueryGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: GraphQueryListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceGraph/queries{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_GraphQueryListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _graphQueryListResultDeserializer(result.body);\n}\n\n/** Get all graph queries defined within a specified subscription. */\nexport function listBySubscription(\n context: Client,\n options: GraphQueryListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<GraphQueryResource> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: \"2024-04-01\" },\n );\n}\n\nexport function _listSend(\n context: Client,\n resourceGroupName: string,\n options: GraphQueryListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_GraphQueryListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _graphQueryListResultDeserializer(result.body);\n}\n\n/** Get all graph queries defined within a specified subscription and resource group. */\nexport function list(\n context: Client,\n resourceGroupName: string,\n options: GraphQueryListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<GraphQueryResource> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceGroupName, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: \"2024-04-01\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: GraphQueryDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Delete a graph query. */\nexport async function $delete(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: GraphQueryDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, resourceGroupName, resourceName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n body: GraphQueryUpdateParameters,\n options: GraphQueryUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: graphQueryUpdateParametersSerializer(body),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<GraphQueryResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return graphQueryResourceDeserializer(result.body);\n}\n\n/** Updates a graph query that has already been added. */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n body: GraphQueryUpdateParameters,\n options: GraphQueryUpdateOptionalParams = { requestOptions: {} },\n): Promise<GraphQueryResource> {\n const result = await _updateSend(context, resourceGroupName, resourceName, body, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n properties: GraphQueryResource,\n options: GraphQueryCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: graphQueryResourceSerializer(properties),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<GraphQueryResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return graphQueryResourceDeserializer(result.body);\n}\n\n/** Create a new graph query. */\nexport async function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n properties: GraphQueryResource,\n options: GraphQueryCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<GraphQueryResource> {\n const result = await _createOrUpdateSend(\n context,\n resourceGroupName,\n resourceName,\n properties,\n options,\n );\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: GraphQueryGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<GraphQueryResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return graphQueryResourceDeserializer(result.body);\n}\n\n/** Get a single graph query by its resourceName. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: GraphQueryGetOptionalParams = { requestOptions: {} },\n): Promise<GraphQueryResource> {\n const result = await _getSend(context, resourceGroupName, resourceName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/graphQuery/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,2BAA2B,EAC3B,oCAAoC,EACpC,iCAAiC,GAClC,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAUxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,uBAAuB,CACrC,OAAe,EACf,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5E,MAAM,IAAI,GAAG,iBAAiB,CAC5B,2FAA2F,EAC3F;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,YAAY;KAC9B,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,MAA6B;IAE7B,MAAM,gBAAgB,GAA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AAE,EAAE,EAAE;IAE7D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IACjF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceGraphContext as Client } from \"../index.js\";\nimport type {\n GraphQueryResource,\n GraphQueryUpdateParameters,\n _GraphQueryListResult,\n} from \"../../models/graphQueryApi/models.js\";\nimport {\n graphQueryResourceSerializer,\n graphQueryResourceDeserializer,\n graphQueryErrorDeserializer,\n graphQueryUpdateParametersSerializer,\n _graphQueryListResultDeserializer,\n} from \"../../models/graphQueryApi/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n GraphQueryListBySubscriptionOptionalParams,\n GraphQueryListOptionalParams,\n GraphQueryDeleteOptionalParams,\n GraphQueryUpdateOptionalParams,\n GraphQueryCreateOrUpdateOptionalParams,\n GraphQueryGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: GraphQueryListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceGraph/queries{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_GraphQueryListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _graphQueryListResultDeserializer(result.body);\n}\n/** Get all graph queries defined within a specified subscription. */\nexport function listBySubscription(\n context: Client,\n options: GraphQueryListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<GraphQueryResource> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: \"2024-04-01\" },\n );\n}\n\nexport function _listSend(\n context: Client,\n resourceGroupName: string,\n options: GraphQueryListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_GraphQueryListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _graphQueryListResultDeserializer(result.body);\n}\n/** Get all graph queries defined within a specified subscription and resource group. */\nexport function list(\n context: Client,\n resourceGroupName: string,\n options: GraphQueryListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<GraphQueryResource> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceGroupName, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: \"2024-04-01\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: GraphQueryDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n/** Delete a graph query. */\nexport async function $delete(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: GraphQueryDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, resourceGroupName, resourceName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n body: GraphQueryUpdateParameters,\n options: GraphQueryUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: graphQueryUpdateParametersSerializer(body),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<GraphQueryResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return graphQueryResourceDeserializer(result.body);\n}\n/** Updates a graph query that has already been added. */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n body: GraphQueryUpdateParameters,\n options: GraphQueryUpdateOptionalParams = { requestOptions: {} },\n): Promise<GraphQueryResource> {\n const result = await _updateSend(context, resourceGroupName, resourceName, body, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n properties: GraphQueryResource,\n options: GraphQueryCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: graphQueryResourceSerializer(properties),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<GraphQueryResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return graphQueryResourceDeserializer(result.body);\n}\n/** Create a new graph query. */\nexport async function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n properties: GraphQueryResource,\n options: GraphQueryCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<GraphQueryResource> {\n const result = await _createOrUpdateSend(\n context,\n resourceGroupName,\n resourceName,\n properties,\n options,\n );\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: GraphQueryGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n resourceName: resourceName,\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<GraphQueryResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = graphQueryErrorDeserializer(result.body);\n }\n\n throw error;\n }\n\n return graphQueryResourceDeserializer(result.body);\n}\n/** Get a single graph query by its resourceName. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n resourceName: string,\n options: GraphQueryGetOptionalParams = { requestOptions: {} },\n): Promise<GraphQueryResource> {\n const result = await _getSend(context, resourceGroupName, resourceName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/graphQuery/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface GraphQueryListBySubscriptionOptionalParams extends OperationOptions {}\n
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/graphQuery/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface GraphQueryListBySubscriptionOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface GraphQueryListOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface GraphQueryDeleteOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface GraphQueryUpdateOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface GraphQueryCreateOrUpdateOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface GraphQueryGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAC3F,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,+DAA+D,EAC/D;QACE,eAAe,EAAE,YAAY;KAC9B,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc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,CAC5B,+DAA+D,EAC/D;QACE,eAAe,EAAE,YAAY;KAC9B,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AACD,2CAA2C;AAC3C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,CAC1E,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceGraphContext as Client } from \"../index.js\";\nimport type { _OperationListResult, Operation } from \"../../models/resourceGraphApi/models.js\";\nimport { _operationListResultDeserializer } from \"../../models/resourceGraphApi/models.js\";\nimport { errorResponseDeserializer } from \"../../models/resourceGraphCommon/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { OperationsListOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ResourceGraph/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: \"2024-04-01\" },\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/api/operations.ts"],"names":[],"mappings":"AAAA,uCA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,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,8BAA8B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACrD,CAAC;AAED,4DAA4D;AAC5D,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,OAAe,EACf,UAA4C,EAC5C,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/D,MAAM,MAAM,GAAG,MAAM,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACxE,OAAO,2BAA2B,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceGraphContext as Client } from \"./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 {\n resourceChangesRequestParametersSerializer,\n resourceChangeListDeserializer,\n resourceChangeDataArrayDeserializer,\n resourceChangeDetailsRequestParametersSerializer,\n} from \"../models/resourceChanges/models.js\";\nimport type { QueryRequest, QueryResponse } from \"../models/resourceGraphApi/models.js\";\nimport {\n queryRequestSerializer,\n queryResponseDeserializer,\n} from \"../models/resourceGraphApi/models.js\";\nimport { errorResponseDeserializer } from \"../models/resourceGraphCommon/models.js\";\nimport type { ResourcesHistoryRequest } from \"../models/resourceHistory/models.js\";\nimport { resourcesHistoryRequestSerializer } from \"../models/resourceHistory/models.js\";\nimport { expandUrlTemplate } from \"../static-helpers/urlTemplate.js\";\nimport type {\n ResourcesHistoryOptionalParams,\n ResourcesOptionalParams,\n ResourceChangeDetailsOptionalParams,\n ResourceChangesOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _resourcesHistorySend(\n context: Client,\n request: ResourcesHistoryRequest,\n options: ResourcesHistoryOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ResourceGraph/resourcesHistory{?api%2Dversion}\",\n {\n \"api%2Dversion\": \"2021-06-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: resourcesHistoryRequestSerializer(request),\n });\n}\n\nexport async function _resourcesHistoryDeserialize(\n result: PathUncheckedResponse,\n): Promise<ResourcesHistoryResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return { body: result.body };\n}\n\n/** List all snapshots of a resource for a given time interval. */\nexport async function resourcesHistory(\n context: Client,\n request: ResourcesHistoryRequest,\n options: ResourcesHistoryOptionalParams = { requestOptions: {} },\n): Promise<ResourcesHistoryResponse> {\n const result = await _resourcesHistorySend(context, request, options);\n return _resourcesHistoryDeserialize(result);\n}\n\nexport function _resourcesSend(\n context: Client,\n query: QueryRequest,\n options: ResourcesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ResourceGraph/resources{?api%2Dversion}\",\n {\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: queryRequestSerializer(query),\n });\n}\n\nexport async function _resourcesDeserialize(result: PathUncheckedResponse): Promise<QueryResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return queryResponseDeserializer(result.body);\n}\n\n/** Queries the resources managed by Azure Resource Manager for scopes specified in the request. */\nexport async function resources(\n context: Client,\n query: QueryRequest,\n options: ResourcesOptionalParams = { requestOptions: {} },\n): Promise<QueryResponse> {\n const result = await _resourcesSend(context, query, options);\n return _resourcesDeserialize(result);\n}\n\nexport function _resourceChangeDetailsSend(\n context: Client,\n parameters: ResourceChangeDetailsRequestParameters,\n options: ResourceChangeDetailsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ResourceGraph/resourceChangeDetails{?api%2Dversion}\",\n {\n \"api%2Dversion\": \"2020-09-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: resourceChangeDetailsRequestParametersSerializer(parameters),\n });\n}\n\nexport async function _resourceChangeDetailsDeserialize(\n result: PathUncheckedResponse,\n): Promise<ResourceChangeData[]> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return resourceChangeDataArrayDeserializer(result.body);\n}\n\n/** Get resource change details. */\nexport async function resourceChangeDetails(\n context: Client,\n parameters: ResourceChangeDetailsRequestParameters,\n options: ResourceChangeDetailsOptionalParams = { requestOptions: {} },\n): Promise<ResourceChangeData[]> {\n const result = await _resourceChangeDetailsSend(context, parameters, options);\n return _resourceChangeDetailsDeserialize(result);\n}\n\nexport function _resourceChangesSend(\n context: Client,\n parameters: ResourceChangesRequestParameters,\n options: ResourceChangesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ResourceGraph/resourceChanges{?api%2Dversion}\",\n {\n \"api%2Dversion\": \"2020-09-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: resourceChangesRequestParametersSerializer(parameters),\n });\n}\n\nexport async function _resourceChangesDeserialize(\n result: PathUncheckedResponse,\n): Promise<ResourceChangeList> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return resourceChangeListDeserializer(result.body);\n}\n\n/** List changes to a resource for a given time interval. */\nexport async function resourceChanges(\n context: Client,\n parameters: ResourceChangesRequestParameters,\n options: ResourceChangesOptionalParams = { requestOptions: {} },\n): Promise<ResourceChangeList> {\n const result = await _resourceChangesSend(context, parameters, options);\n return _resourceChangesDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/api/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EACL,0CAA0C,EAC1C,8BAA8B,EAC9B,mCAAmC,EACnC,gDAAgD,GACjD,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAEpF,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,iBAAiB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CAAC,IAAI,CAAC,CAAC;AACrD,CAAC;AACD,4DAA4D;AAC5D,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,OAAe,EACf,UAA4C,EAC5C,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/D,MAAM,MAAM,GAAG,MAAM,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACxE,OAAO,2BAA2B,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceGraphContext as Client } from \"./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 {\n resourceChangesRequestParametersSerializer,\n resourceChangeListDeserializer,\n resourceChangeDataArrayDeserializer,\n resourceChangeDetailsRequestParametersSerializer,\n} from \"../models/resourceChanges/models.js\";\nimport type { QueryRequest, QueryResponse } from \"../models/resourceGraphApi/models.js\";\nimport {\n queryRequestSerializer,\n queryResponseDeserializer,\n} from \"../models/resourceGraphApi/models.js\";\nimport { errorResponseDeserializer } from \"../models/resourceGraphCommon/models.js\";\nimport type { ResourcesHistoryRequest } from \"../models/resourceHistory/models.js\";\nimport { resourcesHistoryRequestSerializer } from \"../models/resourceHistory/models.js\";\nimport { expandUrlTemplate } from \"../static-helpers/urlTemplate.js\";\nimport type {\n ResourcesHistoryOptionalParams,\n ResourcesOptionalParams,\n ResourceChangeDetailsOptionalParams,\n ResourceChangesOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _resourcesHistorySend(\n context: Client,\n request: ResourcesHistoryRequest,\n options: ResourcesHistoryOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ResourceGraph/resourcesHistory{?api%2Dversion}\",\n {\n \"api%2Dversion\": \"2021-06-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: resourcesHistoryRequestSerializer(request),\n });\n}\n\nexport async function _resourcesHistoryDeserialize(\n result: PathUncheckedResponse,\n): Promise<ResourcesHistoryResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return { body: result.body };\n}\n/** List all snapshots of a resource for a given time interval. */\nexport async function resourcesHistory(\n context: Client,\n request: ResourcesHistoryRequest,\n options: ResourcesHistoryOptionalParams = { requestOptions: {} },\n): Promise<ResourcesHistoryResponse> {\n const result = await _resourcesHistorySend(context, request, options);\n return _resourcesHistoryDeserialize(result);\n}\n\nexport function _resourcesSend(\n context: Client,\n query: QueryRequest,\n options: ResourcesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ResourceGraph/resources{?api%2Dversion}\",\n {\n \"api%2Dversion\": \"2024-04-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: queryRequestSerializer(query),\n });\n}\n\nexport async function _resourcesDeserialize(result: PathUncheckedResponse): Promise<QueryResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return queryResponseDeserializer(result.body);\n}\n/** Queries the resources managed by Azure Resource Manager for scopes specified in the request. */\nexport async function resources(\n context: Client,\n query: QueryRequest,\n options: ResourcesOptionalParams = { requestOptions: {} },\n): Promise<QueryResponse> {\n const result = await _resourcesSend(context, query, options);\n return _resourcesDeserialize(result);\n}\n\nexport function _resourceChangeDetailsSend(\n context: Client,\n parameters: ResourceChangeDetailsRequestParameters,\n options: ResourceChangeDetailsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ResourceGraph/resourceChangeDetails{?api%2Dversion}\",\n {\n \"api%2Dversion\": \"2020-09-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: resourceChangeDetailsRequestParametersSerializer(parameters),\n });\n}\n\nexport async function _resourceChangeDetailsDeserialize(\n result: PathUncheckedResponse,\n): Promise<ResourceChangeData[]> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return resourceChangeDataArrayDeserializer(result.body);\n}\n/** Get resource change details. */\nexport async function resourceChangeDetails(\n context: Client,\n parameters: ResourceChangeDetailsRequestParameters,\n options: ResourceChangeDetailsOptionalParams = { requestOptions: {} },\n): Promise<ResourceChangeData[]> {\n const result = await _resourceChangeDetailsSend(context, parameters, options);\n return _resourceChangeDetailsDeserialize(result);\n}\n\nexport function _resourceChangesSend(\n context: Client,\n parameters: ResourceChangesRequestParameters,\n options: ResourceChangesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ResourceGraph/resourceChanges{?api%2Dversion}\",\n {\n \"api%2Dversion\": \"2020-09-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: resourceChangesRequestParametersSerializer(parameters),\n });\n}\n\nexport async function _resourceChangesDeserialize(\n result: PathUncheckedResponse,\n): Promise<ResourceChangeList> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return resourceChangeListDeserializer(result.body);\n}\n/** List changes to a resource for a given time interval. */\nexport async function resourceChanges(\n context: Client,\n parameters: ResourceChangesRequestParameters,\n options: ResourceChangesOptionalParams = { requestOptions: {} },\n): Promise<ResourceChangeList> {\n const result = await _resourceChangesSend(context, parameters, options);\n return _resourceChangesDeserialize(result);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/api/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface ResourcesHistoryOptionalParams extends OperationOptions {}\n
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/api/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface ResourcesHistoryOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface ResourcesOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface ResourceChangeDetailsOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface ResourceChangesOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -6,10 +6,10 @@ import { getClient } from "@azure-rest/core-client";
|
|
|
6
6
|
export function createResourceGraph(credential, subscriptionId, options = {}) {
|
|
7
7
|
const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
|
|
8
8
|
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
9
|
-
const userAgentInfo = `azsdk-js-arm-resourcegraph/5.0.0
|
|
9
|
+
const userAgentInfo = `azsdk-js-arm-resourcegraph/5.0.0`;
|
|
10
10
|
const userAgentPrefix = prefixFromOptions
|
|
11
|
-
? `${prefixFromOptions}
|
|
12
|
-
:
|
|
11
|
+
? `${prefixFromOptions} ${userAgentInfo}`
|
|
12
|
+
: `${userAgentInfo}`;
|
|
13
13
|
const { apiVersion: _, ...updatedOptions } = {
|
|
14
14
|
...options,
|
|
15
15
|
userAgentOptions: { userAgentPrefix },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceGraphContext.js","sourceRoot":"","sources":["../../../src/api/resourceGraphContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAcpD,MAAM,UAAU,mBAAmB,CACjC,UAA2B,EAC3B,cAAsB,EACtB,UAA6C,EAAE;IAE/C,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"resourceGraphContext.js","sourceRoot":"","sources":["../../../src/api/resourceGraphContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAcpD,MAAM,UAAU,mBAAmB,CACjC,UAA2B,EAC3B,cAAsB,EACtB,UAA6C,EAAE;IAE/C,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,kCAAkC,CAAC;IACzD,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,IAAI,aAAa,EAAE;QACzC,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACvB,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,uCAAuC,CAAC;SACjF;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IAEzE,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,MAAM,CAAC,OAAO,CACZ,0FAA0F,CAC3F,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,GAAG,aAAa,EAAE,cAAc,EAA0B,CAAC;AACtE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\nexport interface ResourceGraphContext extends Client {\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface ResourceGraphClientOptionalParams extends ClientOptions {\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\nexport function createResourceGraph(\n credential: TokenCredential,\n subscriptionId: string,\n options: ResourceGraphClientOptionalParams = {},\n): ResourceGraphContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-resourcegraph/5.0.0`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} ${userAgentInfo}`\n : `${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://management.azure.com/.default\"],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n\n if (options.apiVersion) {\n logger.warning(\n \"This client does not support client api-version, please change it at the operation level\",\n );\n }\n return { ...clientContext, subscriptionId } as ResourceGraphContext;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/graphQuery/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kBAAkB,EAClB,IAAI,EACJ,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/graphQuery/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kBAAkB,EAClB,IAAI,EACJ,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,oCAAoC,CAAC;AAqD5C,SAAS,cAAc,CAAC,OAA6B;IACnD,OAAO;QACL,kBAAkB,EAAE,CAAC,OAAoD,EAAE,EAAE,CAC3E,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC;QACtC,IAAI,EAAE,CAAC,iBAAyB,EAAE,OAAsC,EAAE,EAAE,CAC1E,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC3C,MAAM,EAAE,CACN,iBAAyB,EACzB,YAAoB,EACpB,OAAwC,EACxC,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC;QAC/D,MAAM,EAAE,CACN,iBAAyB,EACzB,YAAoB,EACpB,IAAgC,EAChC,OAAwC,EACxC,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,CAAC;QACpE,cAAc,EAAE,CACd,iBAAyB,EACzB,YAAoB,EACpB,UAA8B,EAC9B,OAAgD,EAChD,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,CAAC;QAClF,GAAG,EAAE,CAAC,iBAAyB,EAAE,YAAoB,EAAE,OAAqC,EAAE,EAAE,CAC9F,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC;KACzD,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,wBAAwB,CAAC,OAA6B;IACpE,OAAO;QACL,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceGraphContext } from \"../../api/resourceGraphContext.js\";\nimport {\n listBySubscription,\n list,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"../../api/graphQuery/operations.js\";\nimport type {\n GraphQueryListBySubscriptionOptionalParams,\n GraphQueryListOptionalParams,\n GraphQueryDeleteOptionalParams,\n GraphQueryUpdateOptionalParams,\n GraphQueryCreateOrUpdateOptionalParams,\n GraphQueryGetOptionalParams,\n} from \"../../api/graphQuery/options.js\";\nimport type {\n GraphQueryResource,\n GraphQueryUpdateParameters,\n} from \"../../models/graphQueryApi/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a GraphQuery operations. */\nexport interface GraphQueryOperations {\n /** Get all graph queries defined within a specified subscription. */\n listBySubscription: (\n options?: GraphQueryListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<GraphQueryResource>;\n /** Get all graph queries defined within a specified subscription and resource group. */\n list: (\n resourceGroupName: string,\n options?: GraphQueryListOptionalParams,\n ) => PagedAsyncIterableIterator<GraphQueryResource>;\n /** Delete a graph query. */\n delete: (\n resourceGroupName: string,\n resourceName: string,\n options?: GraphQueryDeleteOptionalParams,\n ) => Promise<void>;\n /** Updates a graph query that has already been added. */\n update: (\n resourceGroupName: string,\n resourceName: string,\n body: GraphQueryUpdateParameters,\n options?: GraphQueryUpdateOptionalParams,\n ) => Promise<GraphQueryResource>;\n /** Create a new graph query. */\n createOrUpdate: (\n resourceGroupName: string,\n resourceName: string,\n properties: GraphQueryResource,\n options?: GraphQueryCreateOrUpdateOptionalParams,\n ) => Promise<GraphQueryResource>;\n /** Get a single graph query by its resourceName. */\n get: (\n resourceGroupName: string,\n resourceName: string,\n options?: GraphQueryGetOptionalParams,\n ) => Promise<GraphQueryResource>;\n}\nfunction _getGraphQuery(context: ResourceGraphContext) {\n return {\n listBySubscription: (options?: GraphQueryListBySubscriptionOptionalParams) =>\n listBySubscription(context, options),\n list: (resourceGroupName: string, options?: GraphQueryListOptionalParams) =>\n list(context, resourceGroupName, options),\n delete: (\n resourceGroupName: string,\n resourceName: string,\n options?: GraphQueryDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, resourceName, options),\n update: (\n resourceGroupName: string,\n resourceName: string,\n body: GraphQueryUpdateParameters,\n options?: GraphQueryUpdateOptionalParams,\n ) => update(context, resourceGroupName, resourceName, body, options),\n createOrUpdate: (\n resourceGroupName: string,\n resourceName: string,\n properties: GraphQueryResource,\n options?: GraphQueryCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, resourceGroupName, resourceName, properties, options),\n get: (resourceGroupName: string, resourceName: string, options?: GraphQueryGetOptionalParams) =>\n get(context, resourceGroupName, resourceName, options),\n };\n}\nexport function _getGraphQueryOperations(context: ResourceGraphContext): GraphQueryOperations {\n return {\n ..._getGraphQuery(context),\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAU1D,SAAS,cAAc,CAAC,OAA6B;IACnD,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,wBAAwB,CAAC,OAA6B;IACpE,OAAO;QACL,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceGraphContext } from \"../../api/resourceGraphContext.js\";\nimport { list } from \"../../api/operations/operations.js\";\nimport type { OperationsListOptionalParams } from \"../../api/operations/options.js\";\nimport type { Operation } from \"../../models/resourceGraphApi/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** List the operations for the provider */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\nfunction _getOperations(context: ResourceGraphContext) {\n return {\n list: (options?: OperationsListOptionalParams) => list(context, options),\n };\n}\nexport function _getOperationsOperations(context: ResourceGraphContext): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { ProxyResource } from "../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
|
/** Graph Query entity definition. */
|
|
7
3
|
export interface GraphQueryResource extends ProxyResource {
|
|
8
4
|
/** Resource tags. */
|
|
@@ -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 { areAllPropsUndefined } from "../../static-helpers/serialization/check-prop-undefined.js";
|
|
4
10
|
import { systemDataDeserializer } from "../models.js";
|
|
5
11
|
export function graphQueryResourceSerializer(item) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/graphQueryApi/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE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,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,mCAAmC,CAAC,MAAiC;IACnF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,8BAA8B,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,uCAAuC,CAAC,IAAwB;IAC9E,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,yCAAyC,CAAC,IAAS;IACjE,OAAO;QACL,YAAY,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC3F,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;QACpB,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;KAC/B,CAAC;AACJ,CAAC;AAED,MAAM,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\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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ACjF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,4BAA4B,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,mCAAmC,CAAC,MAAiC;IACnF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,8BAA8B,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,uCAAuC,CAAC,IAAwB;IAC9E,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,yCAAyC,CAAC,IAAS;IACjE,OAAO;QACL,YAAY,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC3F,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;QACpB,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;KAC/B,CAAC;AACJ,CAAC;AAED,MAAM,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,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
|
|
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,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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;IAE9C,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;AAgBD,MAAM,UAAU,8BAA8B,CAAC,IAAS;IACtD,OAAO;QACL,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;YACjB,CAAC,CAAC,mCAAmC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxD,SAAS,EAAE,IAAI,CAAC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AC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,kCAAkC,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,MAAM,UAAU,kCAAkC,CAAC,IAAS;IAC1D,OAAO;QACL,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;QAC9B,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACtC,kBAAkB,EAAE,IAAI,CAAC,oBAAoB,CAAC;KAC/C,CAAC;AACJ,CAAC;AAoBD,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;QAC9B,SAAS,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACtC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;KACzB,CAAC;AACJ,CAAC;AAUD,MAAM,UAAU,gDAAgD,CAC9D,IAA4C;IAE5C,OAAO;QACL,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;YAC9C,OAAO,CAAC,CAAC;QACX,CAAC,CAAC;QACF,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,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,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;AAgBD,MAAM,UAAU,8BAA8B,CAAC,IAAS;IACtD,OAAO;QACL,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;YACjB,CAAC,CAAC,mCAAmC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxD,SAAS,EAAE,IAAI,CAAC,YAAY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AC,IAAI,EAAE,EAAE;QACzB,OAAO,kCAAkC,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,MAAM,UAAU,kCAAkC,CAAC,IAAS;IAC1D,OAAO;QACL,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;QAC9B,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACtC,kBAAkB,EAAE,IAAI,CAAC,oBAAoB,CAAC;KAC/C,CAAC;AACJ,CAAC;AAoBD,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;QAC9B,SAAS,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACtC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;KACzB,CAAC;AACJ,CAAC;AAUD,MAAM,UAAU,gDAAgD,CAC9D,IAA4C;IAE5C,OAAO;QACL,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;YAC9C,OAAO,CAAC,CAAC;QACX,CAAC,CAAC;QACF,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,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\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,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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Aa,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/resourceGraphAp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,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAYD,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC7C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,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\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. */
|