@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.
Files changed (76) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/api/graphQuery/operations.js.map +1 -1
  3. package/dist/browser/api/graphQuery/options.js.map +1 -1
  4. package/dist/browser/api/operations/operations.js.map +1 -1
  5. package/dist/browser/api/operations.js.map +1 -1
  6. package/dist/browser/api/options.js.map +1 -1
  7. package/dist/browser/api/resourceGraphContext.js +3 -3
  8. package/dist/browser/api/resourceGraphContext.js.map +1 -1
  9. package/dist/browser/classic/graphQuery/index.js.map +1 -1
  10. package/dist/browser/classic/operations/index.js.map +1 -1
  11. package/dist/browser/models/graphQueryApi/models.d.ts +0 -4
  12. package/dist/browser/models/graphQueryApi/models.js +6 -0
  13. package/dist/browser/models/graphQueryApi/models.js.map +1 -1
  14. package/dist/browser/models/models.d.ts +0 -4
  15. package/dist/browser/models/models.js.map +1 -1
  16. package/dist/browser/models/resourceChanges/models.d.ts +0 -4
  17. package/dist/browser/models/resourceChanges/models.js.map +1 -1
  18. package/dist/browser/models/resourceGraphApi/models.d.ts +0 -4
  19. package/dist/browser/models/resourceGraphApi/models.js.map +1 -1
  20. package/dist/browser/models/resourceGraphCommon/models.d.ts +0 -4
  21. package/dist/browser/models/resourceGraphCommon/models.js +6 -0
  22. package/dist/browser/models/resourceGraphCommon/models.js.map +1 -1
  23. package/dist/browser/models/resourceHistory/models.d.ts +0 -4
  24. package/dist/browser/models/resourceHistory/models.js.map +1 -1
  25. package/dist/browser/resourceGraphClient.js +1 -8
  26. package/dist/browser/resourceGraphClient.js.map +1 -1
  27. package/dist/commonjs/api/graphQuery/operations.js.map +2 -2
  28. package/dist/commonjs/api/graphQuery/options.js.map +1 -1
  29. package/dist/commonjs/api/operations/operations.js.map +2 -2
  30. package/dist/commonjs/api/operations.js.map +2 -2
  31. package/dist/commonjs/api/options.js.map +1 -1
  32. package/dist/commonjs/api/resourceGraphContext.js +2 -2
  33. package/dist/commonjs/api/resourceGraphContext.js.map +2 -2
  34. package/dist/commonjs/classic/graphQuery/index.js.map +2 -2
  35. package/dist/commonjs/classic/operations/index.js.map +2 -2
  36. package/dist/commonjs/models/graphQueryApi/models.d.ts +0 -4
  37. package/dist/commonjs/models/graphQueryApi/models.js.map +2 -2
  38. package/dist/commonjs/models/models.d.ts +0 -4
  39. package/dist/commonjs/models/models.js.map +1 -1
  40. package/dist/commonjs/models/resourceChanges/models.d.ts +0 -4
  41. package/dist/commonjs/models/resourceChanges/models.js.map +1 -1
  42. package/dist/commonjs/models/resourceGraphApi/models.d.ts +0 -4
  43. package/dist/commonjs/models/resourceGraphApi/models.js.map +2 -2
  44. package/dist/commonjs/models/resourceGraphCommon/models.d.ts +0 -4
  45. package/dist/commonjs/models/resourceGraphCommon/models.js.map +2 -2
  46. package/dist/commonjs/models/resourceHistory/models.d.ts +0 -4
  47. package/dist/commonjs/models/resourceHistory/models.js.map +2 -2
  48. package/dist/commonjs/resourceGraphClient.js +1 -6
  49. package/dist/commonjs/resourceGraphClient.js.map +2 -2
  50. package/dist/commonjs/tsdoc-metadata.json +1 -1
  51. package/dist/esm/api/graphQuery/operations.js.map +1 -1
  52. package/dist/esm/api/graphQuery/options.js.map +1 -1
  53. package/dist/esm/api/operations/operations.js.map +1 -1
  54. package/dist/esm/api/operations.js.map +1 -1
  55. package/dist/esm/api/options.js.map +1 -1
  56. package/dist/esm/api/resourceGraphContext.js +3 -3
  57. package/dist/esm/api/resourceGraphContext.js.map +1 -1
  58. package/dist/esm/classic/graphQuery/index.js.map +1 -1
  59. package/dist/esm/classic/operations/index.js.map +1 -1
  60. package/dist/esm/models/graphQueryApi/models.d.ts +0 -4
  61. package/dist/esm/models/graphQueryApi/models.js +6 -0
  62. package/dist/esm/models/graphQueryApi/models.js.map +1 -1
  63. package/dist/esm/models/models.d.ts +0 -4
  64. package/dist/esm/models/models.js.map +1 -1
  65. package/dist/esm/models/resourceChanges/models.d.ts +0 -4
  66. package/dist/esm/models/resourceChanges/models.js.map +1 -1
  67. package/dist/esm/models/resourceGraphApi/models.d.ts +0 -4
  68. package/dist/esm/models/resourceGraphApi/models.js.map +1 -1
  69. package/dist/esm/models/resourceGraphCommon/models.d.ts +0 -4
  70. package/dist/esm/models/resourceGraphCommon/models.js +6 -0
  71. package/dist/esm/models/resourceGraphCommon/models.js.map +1 -1
  72. package/dist/esm/models/resourceHistory/models.d.ts +0 -4
  73. package/dist/esm/models/resourceHistory/models.js.map +1 -1
  74. package/dist/esm/resourceGraphClient.js +1 -8
  75. package/dist/esm/resourceGraphClient.js.map +1 -1
  76. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/models/resourceChanges/models.ts"],
4
- "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"],
4
+ "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"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;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AiB,CAAC;AAAA,EACrE;AACF;AAKO,SAAS,6CACd,MACkC;AAClC,SAAO;AAAA,IACL,YAAY,KAAK,YAAY;AAAA,IAC7B,WAAW,IAAI,KAAK,KAAK,WAAW,CAAC;AAAA,IACrC,SAAS,KAAK,SAAS;AAAA,EACzB;AACF;AAKO,SAAS,4CACd,MACiC;AACjC,SAAO;AAAA,IACL,YAAY,KAAK,YAAY;AAAA,IAC7B,WAAW,IAAI,KAAK,KAAK,WAAW,CAAC;AAAA,IACrC,SAAS,KAAK,SAAS;AAAA,EACzB;AACF;AAKO,SAAS,wCACd,QACO;AACP,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,mCAAmC,IAAI;AAAA,EAChD,CAAC;AACH;AAgBO,SAAS,mCAAmC,MAAmC;AACpF,SAAO;AAAA,IACL,cAAc,KAAK,cAAc;AAAA,IACjC,aAAa,KAAK,aAAa;AAAA,IAC/B,YAAY,KAAK,YAAY;AAAA,IAC7B,gBAAgB,KAAK,gBAAgB;AAAA,IACrC,oBAAoB,KAAK,oBAAoB;AAAA,EAC/C;AACF;AAoBO,SAAS,iCAAiC,MAAiC;AAChF,SAAO;AAAA,IACL,YAAY,KAAK,YAAY;AAAA,IAC7B,WAAW,IAAI,KAAK,KAAK,WAAW,CAAC;AAAA,IACrC,SAAS,KAAK,SAAS;AAAA,EACzB;AACF;AAUO,SAAS,iDACd,MACK;AACL,SAAO;AAAA,IACL,aAAa,KAAK,aAAa,EAAE,IAAI,CAAC,MAAW;AAC/C,aAAO;AAAA,IACT,CAAC;AAAA,IACD,WAAW,KAAK,WAAW,EAAE,IAAI,CAAC,MAAW;AAC3C,aAAO;AAAA,IACT,CAAC;AAAA,EACH;AACF;",
6
6
  "names": []
7
7
  }
@@ -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,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/models/resourceGraphApi/models.ts"],
4
- "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"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,oBAA8C;AAsBvC,SAAS,uBAAuB,MAAyB;AAC9D,SAAO;AAAA,IACL,eAAe,CAAC,KAAK,eAAe,IAChC,KAAK,eAAe,IACpB,KAAK,eAAe,EAAE,IAAI,CAAC,MAAW;AACpC,aAAO;AAAA,IACT,CAAC;AAAA,IACL,kBAAkB,CAAC,KAAK,kBAAkB,IACtC,KAAK,kBAAkB,IACvB,KAAK,kBAAkB,EAAE,IAAI,CAAC,MAAW;AACvC,aAAO;AAAA,IACT,CAAC;AAAA,IACL,OAAO,KAAK,OAAO;AAAA,IACnB,SAAS,CAAC,KAAK,SAAS,IAAI,KAAK,SAAS,IAAI,8BAA8B,KAAK,SAAS,CAAC;AAAA,IAC3F,QAAQ,CAAC,KAAK,QAAQ,IAAI,KAAK,QAAQ,IAAI,4BAA4B,KAAK,QAAQ,CAAC;AAAA,EACvF;AACF;AAkBO,SAAS,8BAA8B,MAAgC;AAC5E,SAAO;AAAA,IACL,YAAY,KAAK,WAAW;AAAA,IAC5B,MAAM,KAAK,KAAK;AAAA,IAChB,OAAO,KAAK,MAAM;AAAA,IAClB,cAAc,KAAK,cAAc;AAAA,IACjC,oBAAoB,KAAK,oBAAoB;AAAA,IAC7C,0BAA0B,KAAK,0BAA0B;AAAA,EAC3D;AACF;AASO,SAAS,4BAA4B,QAAoC;AAC9E,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,uBAAuB,IAAI;AAAA,EACpC,CAAC;AACH;AAUO,SAAS,uBAAuB,MAAyB;AAC9D,SAAO;AAAA,IACL,YAAY,KAAK,YAAY;AAAA,IAC7B,SAAS,CAAC,KAAK,SAA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B;AAC5D,SAAO;AAAA,IACL,YAAY,KAAK,YAAY;AAAA,IAC7B,YAAY,KAAK,YAAY;AAAA,IAC7B,YAAQ,6CAA8B,KAAK,QAAQ,CAAC;AAAA,EACtD;AACF;AAUO,SAAS,iCAAiC,MAAiC;AAChF,SAAO;AAAA,IACL,OAAO,2BAA2B,KAAK,OAAO,CAAC;AAAA,IAC/C,UAAU,KAAK,UAAU;AAAA,EAC3B;AACF;AAEO,SAAS,2BAA2B,QAAiC;AAC1E,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,sBAAsB,IAAI;AAAA,EACnC,CAAC;AACH;AAYO,SAAS,sBAAsB,MAAsB;AAC1D,SAAO;AAAA,IACL,MAAM,KAAK,MAAM;AAAA,IACjB,SAAS,CAAC,KAAK,SAAS,IAAI,KAAK,SAAS,IAAI,6BAA6B,KAAK,SAAS,CAAC;AAAA,IAC1F,QAAQ,KAAK,QAAQ;AAAA,EACvB;AACF;AAcO,SAAS,6BAA6B,MAA6B;AACxE,SAAO;AAAA,IACL,UAAU,KAAK,UAAU;AAAA,IACzB,UAAU,KAAK,UAAU;AAAA,IACzB,WAAW,KAAK,WAAW;AAAA,IAC3B,aAAa,KAAK,aAAa;AAAA,EACjC;AACF;",
4
+ "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"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,oBAA8C;AAgBvC,SAAS,uBAAuB,MAAyB;AAC9D,SAAO;AAAA,IACL,eAAe,CAAC,KAAK,eAAe,IAChC,KAAK,eAAe,IACpB,KAAK,eAAe,EAAE,IAAI,CAAC,MAAW;AACpC,aAAO;AAAA,IACT,CAAC;AAAA,IACL,kBAAkB,CAAC,KAAK,kBAAkB,IACtC,KAAK,kBAAkB,IACvB,KAAK,kBAAkB,EAAE,IAAI,CAAC,MAAW;AACvC,aAAO;AAAA,IACT,CAAC;AAAA,IACL,OAAO,KAAK,OAAO;AAAA,IACnB,SAAS,CAAC,KAAK,SAAS,IAAI,KAAK,SAAS,IAAI,8BAA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SAAO;AAAA,IACL,UAAU,KAAK,UAAU;AAAA,IACzB,UAAU,KAAK,UAAU;AAAA,IACzB,WAAW,KAAK,WAAW;AAAA,IAC3B,aAAa,KAAK,aAAa;AAAA,EACjC;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,3 @@
1
- /**
2
- * This file contains only generated model types and their (de)serializers.
3
- * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
4
- */
5
1
  /** An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. `[start, end)`. */
6
2
  export interface DateTimeInterval {
7
3
  /** A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error. */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/models/resourceGraphCommon/models.ts"],
4
- "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { serializeRecord } from \"../../static-helpers/serialization/serialize-record.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/** An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. `[start, end)`. */\nexport interface DateTimeInterval {\n /** A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error. */\n start: Date;\n /** A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error. */\n end: Date;\n}\n\nexport function dateTimeIntervalSerializer(item: DateTimeInterval): any {\n return { start: item[\"start\"].toISOString(), end: item[\"end\"].toISOString() };\n}\n\n/** An error response from the API. */\nexport interface ErrorResponse {\n /** Error information. */\n error: ErrorModel;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: errorDeserializer(item[\"error\"]),\n };\n}\n\n/** Error details. */\nexport interface ErrorModel {\n /** Error code identifying the specific error. */\n code: string;\n /** A human readable error message. */\n message: string;\n /** Error details */\n details?: ErrorDetails[];\n}\n\nexport function errorDeserializer(item: any): ErrorModel {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailsArrayDeserializer(item[\"details\"]),\n };\n}\n\nexport function errorDetailsArrayDeserializer(result: Array<ErrorDetails>): any[] {\n return result.map((item) => {\n return errorDetailsDeserializer(item);\n });\n}\n\n/** Error details. */\nexport interface ErrorDetails {\n /** Error code identifying the specific error. */\n code: string;\n /** A human readable error message. */\n message: string;\n /** Additional properties */\n additionalProperties?: Record<string, any>;\n}\n\nexport function errorDetailsDeserializer(item: any): ErrorDetails {\n return {\n additionalProperties: serializeRecord(item, [\"code\", \"message\"]),\n code: item[\"code\"],\n message: item[\"message\"],\n };\n}\n\n/** Defines in which format query result returned. */\nexport type ResultFormat = \"table\" | \"objectArray\";\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,8BAAgC;AAgBzB,SAAS,2BAA2B,MAA6B;AACtE,SAAO,EAAE,OAAO,KAAK,OAAO,EAAE,YAAY,GAAG,KAAK,KAAK,KAAK,EAAE,YAAY,EAAE;AAC9E;AAQO,SAAS,0BAA0B,MAA0B;AAClE,SAAO;AAAA,IACL,OAAO,kBAAkB,KAAK,OAAO,CAAC;AAAA,EACxC;AACF;AAYO,SAAS,kBAAkB,MAAuB;AACvD,SAAO;AAAA,IACL,MAAM,KAAK,MAAM;AAAA,IACjB,SAAS,KAAK,SAAS;AAAA,IACvB,SAAS,CAAC,KAAK,SAAS,IAAI,KAAK,SAAS,IAAI,8BAA8B,KAAK,SAAS,CAAC;AAAA,EAC7F;AACF;AAEO,SAAS,8BAA8B,QAAoC;AAChF,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,yBAAyB,IAAI;AAAA,EACtC,CAAC;AACH;AAYO,SAAS,yBAAyB,MAAyB;AAChE,SAAO;AAAA,IACL,0BAAsB,yCAAgB,MAAM,CAAC,QAAQ,SAAS,CAAC;AAAA,IAC/D,MAAM,KAAK,MAAM;AAAA,IACjB,SAAS,KAAK,SAAS;AAAA,EACzB;AACF;",
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/*\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport { serializeRecord } from \"../../static-helpers/serialization/serialize-record.js\";\n\n/** An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. `[start, end)`. */\nexport interface DateTimeInterval {\n /** A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error. */\n start: Date;\n /** A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error. */\n end: Date;\n}\n\nexport function dateTimeIntervalSerializer(item: DateTimeInterval): any {\n return { start: item[\"start\"].toISOString(), end: item[\"end\"].toISOString() };\n}\n\n/** An error response from the API. */\nexport interface ErrorResponse {\n /** Error information. */\n error: ErrorModel;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: errorDeserializer(item[\"error\"]),\n };\n}\n\n/** Error details. */\nexport interface ErrorModel {\n /** Error code identifying the specific error. */\n code: string;\n /** A human readable error message. */\n message: string;\n /** Error details */\n details?: ErrorDetails[];\n}\n\nexport function errorDeserializer(item: any): ErrorModel {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailsArrayDeserializer(item[\"details\"]),\n };\n}\n\nexport function errorDetailsArrayDeserializer(result: Array<ErrorDetails>): any[] {\n return result.map((item) => {\n return errorDetailsDeserializer(item);\n });\n}\n\n/** Error details. */\nexport interface ErrorDetails {\n /** Error code identifying the specific error. */\n code: string;\n /** A human readable error message. */\n message: string;\n /** Additional properties */\n additionalProperties?: Record<string, any>;\n}\n\nexport function errorDetailsDeserializer(item: any): ErrorDetails {\n return {\n additionalProperties: serializeRecord(item, [\"code\", \"message\"]),\n code: item[\"code\"],\n message: item[\"message\"],\n };\n}\n\n/** Defines in which format query result returned. */\nexport type ResultFormat = \"table\" | \"objectArray\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,8BAAgC;AAUzB,SAAS,2BAA2B,MAA6B;AACtE,SAAO,EAAE,OAAO,KAAK,OAAO,EAAE,YAAY,GAAG,KAAK,KAAK,KAAK,EAAE,YAAY,EAAE;AAC9E;AAQO,SAAS,0BAA0B,MAA0B;AAClE,SAAO;AAAA,IACL,OAAO,kBAAkB,KAAK,OAAO,CAAC;AAAA,EACxC;AACF;AAYO,SAAS,kBAAkB,MAAuB;AACvD,SAAO;AAAA,IACL,MAAM,KAAK,MAAM;AAAA,IACjB,SAAS,KAAK,SAAS;AAAA,IACvB,SAAS,CAAC,KAAK,SAAS,IAAI,KAAK,SAAS,IAAI,8BAA8B,KAAK,SAAS,CAAC;AAAA,EAC7F;AACF;AAEO,SAAS,8BAA8B,QAAoC;AAChF,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,yBAAyB,IAAI;AAAA,EACtC,CAAC;AACH;AAYO,SAAS,yBAAyB,MAAyB;AAChE,SAAO;AAAA,IACL,0BAAsB,yCAAgB,MAAM,CAAC,QAAQ,SAAS,CAAC;AAAA,IAC/D,MAAM,KAAK,MAAM;AAAA,IACjB,SAAS,KAAK,SAAS;AAAA,EACzB;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,4 @@
1
1
  import type { DateTimeInterval, ResultFormat } from "../resourceGraphCommon/models.js";
2
- /**
3
- * This file contains only generated model types and their (de)serializers.
4
- * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
5
- */
6
2
  /** Describes a history request to be executed. */
7
3
  export interface ResourcesHistoryRequest {
8
4
  /** Azure subscriptions against which to execute the query. */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/models/resourceHistory/models.ts"],
4
- "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { DateTimeInterval, ResultFormat } from \"../resourceGraphCommon/models.js\";\nimport { dateTimeIntervalSerializer } 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 history request to be executed. */\nexport interface ResourcesHistoryRequest {\n /** Azure subscriptions against which to execute the query. */\n subscriptions?: string[];\n /** The resources query. */\n query?: string;\n /** The history request evaluation options */\n options?: ResourcesHistoryRequestOptions;\n /** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */\n managementGroups?: string[];\n}\n\nexport function resourcesHistoryRequestSerializer(item: ResourcesHistoryRequest): any {\n return {\n subscriptions: !item[\"subscriptions\"]\n ? item[\"subscriptions\"]\n : item[\"subscriptions\"].map((p: any) => {\n return p;\n }),\n query: item[\"query\"],\n options: !item[\"options\"]\n ? item[\"options\"]\n : resourcesHistoryRequestOptionsSerializer(item[\"options\"]),\n managementGroups: !item[\"managementGroups\"]\n ? item[\"managementGroups\"]\n : item[\"managementGroups\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The options for history request evaluation */\nexport interface ResourcesHistoryRequestOptions {\n /** The time interval used to fetch history. */\n interval?: DateTimeInterval;\n /** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */\n top?: number;\n /** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */\n skip?: number;\n /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */\n skipToken?: string;\n /** Defines in which format query result returned. */\n resultFormat?: ResultFormat;\n}\n\nexport function resourcesHistoryRequestOptionsSerializer(\n item: ResourcesHistoryRequestOptions,\n): any {\n return {\n interval: !item[\"interval\"] ? item[\"interval\"] : dateTimeIntervalSerializer(item[\"interval\"]),\n $top: item[\"top\"],\n $skip: item[\"skip\"],\n $skipToken: item[\"skipToken\"],\n resultFormat: item[\"resultFormat\"],\n };\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,oBAA2C;AAoBpC,SAAS,kCAAkC,MAAoC;AACpF,SAAO;AAAA,IACL,eAAe,CAAC,KAAK,eAAe,IAChC,KAAK,eAAe,IACpB,KAAK,eAAe,EAAE,IAAI,CAAC,MAAW;AACpC,aAAO;AAAA,IACT,CAAC;AAAA,IACL,OAAO,KAAK,OAAO;AAAA,IACnB,SAAS,CAAC,KAAK,SAAS,IACpB,KAAK,SAAS,IACd,yCAAyC,KAAK,SAAS,CAAC;AAAA,IAC5D,kBAAkB,CAAC,KAAK,kBAAkB,IACtC,KAAK,kBAAkB,IACvB,KAAK,kBAAkB,EAAE,IAAI,CAAC,MAAW;AACvC,aAAO;AAAA,IACT,CAAC;AAAA,EACP;AACF;AAgBO,SAAS,yCACd,MACK;AACL,SAAO;AAAA,IACL,UAAU,CAAC,KAAK,UAAU,IAAI,KAAK,UAAU,QAAI,0CAA2B,KAAK,UAAU,CAAC;AAAA,IAC5F,MAAM,KAAK,KAAK;AAAA,IAChB,OAAO,KAAK,MAAM;AAAA,IAClB,YAAY,KAAK,WAAW;AAAA,IAC5B,cAAc,KAAK,cAAc;AAAA,EACnC;AACF;",
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/*\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport type { DateTimeInterval, ResultFormat } from \"../resourceGraphCommon/models.js\";\nimport { dateTimeIntervalSerializer } from \"../resourceGraphCommon/models.js\";\n\n/** Describes a history request to be executed. */\nexport interface ResourcesHistoryRequest {\n /** Azure subscriptions against which to execute the query. */\n subscriptions?: string[];\n /** The resources query. */\n query?: string;\n /** The history request evaluation options */\n options?: ResourcesHistoryRequestOptions;\n /** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */\n managementGroups?: string[];\n}\n\nexport function resourcesHistoryRequestSerializer(item: ResourcesHistoryRequest): any {\n return {\n subscriptions: !item[\"subscriptions\"]\n ? item[\"subscriptions\"]\n : item[\"subscriptions\"].map((p: any) => {\n return p;\n }),\n query: item[\"query\"],\n options: !item[\"options\"]\n ? item[\"options\"]\n : resourcesHistoryRequestOptionsSerializer(item[\"options\"]),\n managementGroups: !item[\"managementGroups\"]\n ? item[\"managementGroups\"]\n : item[\"managementGroups\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The options for history request evaluation */\nexport interface ResourcesHistoryRequestOptions {\n /** The time interval used to fetch history. */\n interval?: DateTimeInterval;\n /** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */\n top?: number;\n /** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */\n skip?: number;\n /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */\n skipToken?: string;\n /** Defines in which format query result returned. */\n resultFormat?: ResultFormat;\n}\n\nexport function resourcesHistoryRequestOptionsSerializer(\n item: ResourcesHistoryRequestOptions,\n): any {\n return {\n interval: !item[\"interval\"] ? item[\"interval\"] : dateTimeIntervalSerializer(item[\"interval\"]),\n $top: item[\"top\"],\n $skip: item[\"skip\"],\n $skipToken: item[\"skipToken\"],\n resultFormat: item[\"resultFormat\"],\n };\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,oBAA2C;AAcpC,SAAS,kCAAkC,MAAoC;AACpF,SAAO;AAAA,IACL,eAAe,CAAC,KAAK,eAAe,IAChC,KAAK,eAAe,IACpB,KAAK,eAAe,EAAE,IAAI,CAAC,MAAW;AACpC,aAAO;AAAA,IACT,CAAC;AAAA,IACL,OAAO,KAAK,OAAO;AAAA,IACnB,SAAS,CAAC,KAAK,SAAS,IACpB,KAAK,SAAS,IACd,yCAAyC,KAAK,SAAS,CAAC;AAAA,IAC5D,kBAAkB,CAAC,KAAK,kBAAkB,IACtC,KAAK,kBAAkB,IACvB,KAAK,kBAAkB,EAAE,IAAI,CAAC,MAAW;AACvC,aAAO;AAAA,IACT,CAAC;AAAA,EACP;AACF;AAgBO,SAAS,yCACd,MACK;AACL,SAAO;AAAA,IACL,UAAU,CAAC,KAAK,UAAU,IAAI,KAAK,UAAU,QAAI,0CAA2B,KAAK,UAAU,CAAC;AAAA,IAC5F,MAAM,KAAK,KAAK;AAAA,IAChB,OAAO,KAAK,MAAM;AAAA,IAClB,YAAY,KAAK,WAAW;AAAA,IAC5B,cAAc,KAAK,cAAc;AAAA,EACnC;AACF;",
6
6
  "names": []
7
7
  }
@@ -36,12 +36,7 @@ class ResourceGraphClient {
36
36
  options = subscriptionIdOrOptions;
37
37
  }
38
38
  options = options ?? {};
39
- const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
40
- const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-client` : `azsdk-js-client`;
41
- this._client = (0, import_api.createResourceGraph)(credential, subscriptionId ?? "", {
42
- ...options,
43
- userAgentOptions: { userAgentPrefix }
44
- });
39
+ this._client = (0, import_api.createResourceGraph)(credential, subscriptionId ?? "", options);
45
40
  this.pipeline = this._client.pipeline;
46
41
  this.graphQuery = (0, import_graphQuery._getGraphQueryOperations)(this._client);
47
42
  this.operations = (0, import_operations2._getOperationsOperations)(this._client);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/resourceGraphClient.ts"],
4
- "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceGraphContext, ResourceGraphClientOptionalParams } from \"./api/index.js\";\nimport { createResourceGraph } from \"./api/index.js\";\nimport {\n resourcesHistory,\n resources,\n resourceChangeDetails,\n resourceChanges,\n} from \"./api/operations.js\";\nimport type {\n ResourcesHistoryOptionalParams,\n ResourcesOptionalParams,\n ResourceChangeDetailsOptionalParams,\n ResourceChangesOptionalParams,\n} from \"./api/options.js\";\nimport type { GraphQueryOperations } from \"./classic/graphQuery/index.js\";\nimport { _getGraphQueryOperations } from \"./classic/graphQuery/index.js\";\nimport type { OperationsOperations } from \"./classic/operations/index.js\";\nimport { _getOperationsOperations } from \"./classic/operations/index.js\";\nimport type { ResourcesHistoryResponse } from \"./models/models.js\";\nimport type {\n ResourceChangesRequestParameters,\n ResourceChangeList,\n ResourceChangeData,\n ResourceChangeDetailsRequestParameters,\n} from \"./models/resourceChanges/models.js\";\nimport type { QueryRequest, QueryResponse } from \"./models/resourceGraphApi/models.js\";\nimport type { ResourcesHistoryRequest } from \"./models/resourceHistory/models.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport type { ResourceGraphClientOptionalParams } from \"./api/resourceGraphContext.js\";\n\nexport class ResourceGraphClient {\n private _client: ResourceGraphContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(credential: TokenCredential, options?: ResourceGraphClientOptionalParams);\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options?: ResourceGraphClientOptionalParams,\n );\n constructor(\n credential: TokenCredential,\n subscriptionIdOrOptions?: string | ResourceGraphClientOptionalParams,\n options?: ResourceGraphClientOptionalParams,\n ) {\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n options = options ?? {};\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createResourceGraph(credential, subscriptionId ?? \"\", {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.graphQuery = _getGraphQueryOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** List all snapshots of a resource for a given time interval. */\n resourcesHistory(\n request: ResourcesHistoryRequest,\n options: ResourcesHistoryOptionalParams = { requestOptions: {} },\n ): Promise<ResourcesHistoryResponse> {\n return resourcesHistory(this._client, request, options);\n }\n\n /** Queries the resources managed by Azure Resource Manager for scopes specified in the request. */\n resources(\n query: QueryRequest,\n options: ResourcesOptionalParams = { requestOptions: {} },\n ): Promise<QueryResponse> {\n return resources(this._client, query, options);\n }\n\n /** Get resource change details. */\n resourceChangeDetails(\n parameters: ResourceChangeDetailsRequestParameters,\n options: ResourceChangeDetailsOptionalParams = { requestOptions: {} },\n ): Promise<ResourceChangeData[]> {\n return resourceChangeDetails(this._client, parameters, options);\n }\n\n /** List changes to a resource for a given time interval. */\n resourceChanges(\n parameters: ResourceChangesRequestParameters,\n options: ResourceChangesOptionalParams = { requestOptions: {} },\n ): Promise<ResourceChangeList> {\n return resourceChanges(this._client, parameters, options);\n }\n\n /** The operation groups for graphQuery */\n public readonly graphQuery: GraphQueryOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,iBAAoC;AACpC,wBAKO;AAQP,wBAAyC;AAEzC,IAAAA,qBAAyC;AAelC,MAAM,oBAAoB;AAAA,EACvB;AAAA;AAAA,EAEQ;AAAA,EAQhB,YACE,YACA,yBACA,SACA;AACA,QAAI;AAEJ,QAAI,OAAO,4BAA4B,UAAU;AAC/C,uBAAiB;AAAA,IACnB,WAAW,OAAO,4BAA4B,UAAU;AACtD,gBAAU;AAAA,IACZ;AAEA,cAAU,WAAW,CAAC;AACtB,UAAM,oBAAoB,SAAS,kBAAkB;AACrD,UAAM,kBAAkB,oBACpB,GAAG,iBAAiB,qBACpB;AACJ,SAAK,cAAU,gCAAoB,YAAY,kBAAkB,IAAI;AAAA,MACnE,GAAG;AAAA,MACH,kBAAkB,EAAE,gBAAgB;AAAA,IACtC,CAAC;AACD,SAAK,WAAW,KAAK,QAAQ;AAC7B,SAAK,iBAAa,4CAAyB,KAAK,OAAO;AACvD,SAAK,iBAAa,6CAAyB,KAAK,OAAO;AAAA,EACzD;AAAA;AAAA,EAGA,iBACE,SACA,UAA0C,EAAE,gBAAgB,CAAC,EAAE,GAC5B;AACnC,eAAO,oCAAiB,KAAK,SAAS,SAAS,OAAO;AAAA,EACxD;AAAA;AAAA,EAGA,UACE,OACA,UAAmC,EAAE,gBAAgB,CAAC,EAAE,GAChC;AACxB,eAAO,6BAAU,KAAK,SAAS,OAAO,OAAO;AAAA,EAC/C;AAAA;AAAA,EAGA,sBACE,YACA,UAA+C,EAAE,gBAAgB,CAAC,EAAE,GACrC;AAC/B,eAAO,yCAAsB,KAAK,SAAS,YAAY,OAAO;AAAA,EAChE;AAAA;AAAA,EAGA,gBACE,YACA,UAAyC,EAAE,gBAAgB,CAAC,EAAE,GACjC;AAC7B,eAAO,mCAAgB,KAAK,SAAS,YAAY,OAAO;AAAA,EAC1D;AAAA;AAAA,EAGgB;AAAA;AAAA,EAEA;AAClB;",
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ResourceGraphContext, ResourceGraphClientOptionalParams } from \"./api/index.js\";\nimport { createResourceGraph } from \"./api/index.js\";\nimport {\n resourcesHistory,\n resources,\n resourceChangeDetails,\n resourceChanges,\n} from \"./api/operations.js\";\nimport type {\n ResourcesHistoryOptionalParams,\n ResourcesOptionalParams,\n ResourceChangeDetailsOptionalParams,\n ResourceChangesOptionalParams,\n} from \"./api/options.js\";\nimport type { GraphQueryOperations } from \"./classic/graphQuery/index.js\";\nimport { _getGraphQueryOperations } from \"./classic/graphQuery/index.js\";\nimport type { OperationsOperations } from \"./classic/operations/index.js\";\nimport { _getOperationsOperations } from \"./classic/operations/index.js\";\nimport type { ResourcesHistoryResponse } from \"./models/models.js\";\nimport type {\n ResourceChangesRequestParameters,\n ResourceChangeList,\n ResourceChangeData,\n ResourceChangeDetailsRequestParameters,\n} from \"./models/resourceChanges/models.js\";\nimport type { QueryRequest, QueryResponse } from \"./models/resourceGraphApi/models.js\";\nimport type { ResourcesHistoryRequest } from \"./models/resourceHistory/models.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport type { ResourceGraphClientOptionalParams } from \"./api/resourceGraphContext.js\";\n\nexport class ResourceGraphClient {\n private _client: ResourceGraphContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(credential: TokenCredential, options?: ResourceGraphClientOptionalParams);\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options?: ResourceGraphClientOptionalParams,\n );\n constructor(\n credential: TokenCredential,\n subscriptionIdOrOptions?: string | ResourceGraphClientOptionalParams,\n options?: ResourceGraphClientOptionalParams,\n ) {\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n options = options ?? {};\n this._client = createResourceGraph(credential, subscriptionId ?? \"\", options);\n this.pipeline = this._client.pipeline;\n this.graphQuery = _getGraphQueryOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** List all snapshots of a resource for a given time interval. */\n resourcesHistory(\n request: ResourcesHistoryRequest,\n options: ResourcesHistoryOptionalParams = { requestOptions: {} },\n ): Promise<ResourcesHistoryResponse> {\n return resourcesHistory(this._client, request, options);\n }\n\n /** Queries the resources managed by Azure Resource Manager for scopes specified in the request. */\n resources(\n query: QueryRequest,\n options: ResourcesOptionalParams = { requestOptions: {} },\n ): Promise<QueryResponse> {\n return resources(this._client, query, options);\n }\n\n /** Get resource change details. */\n resourceChangeDetails(\n parameters: ResourceChangeDetailsRequestParameters,\n options: ResourceChangeDetailsOptionalParams = { requestOptions: {} },\n ): Promise<ResourceChangeData[]> {\n return resourceChangeDetails(this._client, parameters, options);\n }\n\n /** List changes to a resource for a given time interval. */\n resourceChanges(\n parameters: ResourceChangesRequestParameters,\n options: ResourceChangesOptionalParams = { requestOptions: {} },\n ): Promise<ResourceChangeList> {\n return resourceChanges(this._client, parameters, options);\n }\n\n /** The operation groups for graphQuery */\n public readonly graphQuery: GraphQueryOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,iBAAoC;AACpC,wBAKO;AAQP,wBAAyC;AAEzC,IAAAA,qBAAyC;AAelC,MAAM,oBAAoB;AAAA,EACvB;AAAA;AAAA,EAEQ;AAAA,EAQhB,YACE,YACA,yBACA,SACA;AACA,QAAI;AAEJ,QAAI,OAAO,4BAA4B,UAAU;AAC/C,uBAAiB;AAAA,IACnB,WAAW,OAAO,4BAA4B,UAAU;AACtD,gBAAU;AAAA,IACZ;AAEA,cAAU,WAAW,CAAC;AACtB,SAAK,cAAU,gCAAoB,YAAY,kBAAkB,IAAI,OAAO;AAC5E,SAAK,WAAW,KAAK,QAAQ;AAC7B,SAAK,iBAAa,4CAAyB,KAAK,OAAO;AACvD,SAAK,iBAAa,6CAAyB,KAAK,OAAO;AAAA,EACzD;AAAA;AAAA,EAGA,iBACE,SACA,UAA0C,EAAE,gBAAgB,CAAC,EAAE,GAC5B;AACnC,eAAO,oCAAiB,KAAK,SAAS,SAAS,OAAO;AAAA,EACxD;AAAA;AAAA,EAGA,UACE,OACA,UAAmC,EAAE,gBAAgB,CAAC,EAAE,GAChC;AACxB,eAAO,6BAAU,KAAK,SAAS,OAAO,OAAO;AAAA,EAC/C;AAAA;AAAA,EAGA,sBACE,YACA,UAA+C,EAAE,gBAAgB,CAAC,EAAE,GACrC;AAC/B,eAAO,yCAAsB,KAAK,SAAS,YAAY,OAAO;AAAA,EAChE;AAAA;AAAA,EAGA,gBACE,YACA,UAAyC,EAAE,gBAAgB,CAAC,EAAE,GACjC;AAC7B,eAAO,mCAAgB,KAAK,SAAS,YAAY,OAAO;AAAA,EAC1D;AAAA;AAAA,EAGgB;AAAA;AAAA,EAEA;AAClB;",
6
6
  "names": ["import_operations"]
7
7
  }
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.58.7"
8
+ "packageVersion": "7.58.12"
9
9
  }
10
10
  ]
11
11
  }
@@ -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,iBA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C,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,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,MAA6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,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/** 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\n/** Optional parameters. */\nexport interface GraphQueryListOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GraphQueryDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GraphQueryUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GraphQueryCreateOrUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GraphQueryGetOptionalParams 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;A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,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\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
+ {"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,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,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,EAAE,MAAM,kCAAkC,CAAC;AAQrE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,qBAAqB,CACnC,OAAe,EACf,OAAgC,EAChC,UAA0C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEhE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,qEAAqE,EACrE;QACE,eAAe,EAAE,oBAAoB;KACtC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO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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,EAAE,MAAM,kCAAkC,CAAC;AAQrE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,qBAAqB,CACnC,OAAe,EACf,OAAgC,EAChC,UAA0C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEhE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,qEAAqE,EACrE;QACE,eAAe,EAAE,oBAAoB;KACtC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;QAC3E,IAAI,EAAE,iCAAiC,CAAC,OAAO,CAAC;KACjD,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD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AAO,CAAC,cAAc,EAAE,OAAO,EAAE;QAC3E,IAAI,EAAE,0CAA0C,CAAC,UAAU,CAAC;KAC7D,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,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,8BAA8B,CAAC,MAAM,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\n/** Optional parameters. */\nexport interface ResourcesOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ResourceChangeDetailsOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ResourceChangesOptionalParams 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-beta.5`;
9
+ const userAgentInfo = `azsdk-js-arm-resourcegraph/5.0.0`;
10
10
  const userAgentPrefix = prefixFromOptions
11
- ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
12
- : `azsdk-js-api ${userAgentInfo}`;
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":"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} 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-beta.5`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${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
+ {"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;AAsD5C,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;AAED,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}\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}\n\nexport function _getGraphQueryOperations(context: ResourceGraphContext): GraphQueryOperations {\n return {\n ..._getGraphQuery(context),\n };\n}\n"]}
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;AAW1D,SAAS,cAAc,CAAC,OAA6B;IACnD,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,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}\n\nfunction _getOperations(context: ResourceGraphContext) {\n return {\n list: (options?: OperationsListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getOperationsOperations(context: ResourceGraphContext): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
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) {