Skip to content

Files

Latest commit

e325132 · Feb 10, 2025

History

History

ResourceGraph.Autorest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 10, 2025
Feb 10, 2025
Feb 10, 2025
Feb 10, 2025
Mar 8, 2022
Nov 23, 2021
Feb 10, 2025
Feb 10, 2025
Oct 27, 2020
Feb 10, 2025
Oct 27, 2020
Feb 10, 2025
Feb 10, 2025
Oct 27, 2020

README.md

Az.ResourceGraph

This directory contains the PowerShell module for the ResourceGraph service.


Info

  • Modifiable: yes
  • Generated: all
  • Committed: yes
  • Packaged: yes

Detail

This module was primarily generated via AutoRest using the PowerShell extension.

Module Requirements

Authentication

AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.

Development

For information on how to develop for Az.ResourceGraph, see how-to.md.

AutoRest Configuration

see https://aka.ms/autorest

commit: cb843b318ece878394d127733abe5da858466daf
require:
  - $(this-folder)/../../readme.azure.noprofile.md
input-file:
  - $(repo)/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/stable/2024-04-01/graphquery.json

title: ResourceGraph
module-version: 0.1.0
subject-prefix: $(service-name)

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
  "@autorest/powershell": "3.x"

directive:
  - from: swagger-document
    where: $
    transform: return $.replace(/\/subscriptions\/\{subscriptionId\}\/resourceGroups\/\{resourceGroupName\}\/providers\/Microsoft\.ResourceGraph\/queries\/\{resourceName\}/g, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.resourcegraph/queries/{resourceName}")
  ## Remove Etag
  - from: swagger-document
    where: $.definitions.Resource.properties
    transform: delete $.eTag
  ## Remove Etag
  - from: swagger-document
    where: $.definitions.GraphQueryUpdateParameters.properties
    transform: delete $.eTag
  - where:
      verb: Set
      subject: Query$
    remove: true
  - where:
      vert: Get|New|Update|Remove
      parameter-name: ResourceName
    set:
      parameter-name: Name
  - where:
      verb: New
      subject: Query$
    hide: true
  - where:
      verb: Update
      subject: Query$
    hide: true