Skip to content

Files

Latest commit

88aa1be · Dec 5, 2023

History

History

Dashboard.Autorest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023
Dec 5, 2023
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023

README.md

Az.Dashboard

This directory contains the PowerShell module for the Dashboard service.


Status

Az.Dashboard

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.Dashboard, see how-to.md.

AutoRest Configuration

see https://aka.ms/autorest

commit: 02ed6d4aac29881364f8698b4fdac9c76cd0f538
require:
  - $(this-folder)/../../readme.azure.noprofile.md
input-file:
  - $(repo)/specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2022-08-01/grafana.json

title: Dashboard
module-version: 0.1.0
subject-prefix: Grafana

identity-correction-for-post: true
resourcegroup-append: true
nested-object-to-string: true

# 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: $.definitions.ResourceSku.properties
    transform: >-
      return {
          "name": {
            "description": "The Sku of the grafana resource.",
            "type": "string"
          }
      }
  - from: swagger-document 
    where: $.definitions.GrafanaIntegrations.properties.azureMonitorWorkspaceIntegrations
    transform: >-
      return {
          "type": "array",
          "x-ms-identifiers": [],
          "description": "The MonitorWorkspaceIntegration of Azure Managed Grafana.",
          "items": {
            "$ref": "#/definitions/AzureMonitorWorkspaceIntegration"
          }
      }
  - where:
      variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
    remove: true
  - where:
      parameter-name: WorkspaceName
    set:
      parameter-name: Name
      alias: GrafanaName
  - where:
      subject: PrivateEndpointConnection
    remove: true
  - where:
      subject: PrivateLinkResource
    remove: true
  - where:
      verb: New
      subject: Grafana
    hide: true
  - where:
      parameter-name: GrafanaIntegrationAzureMonitorWorkspaceIntegration
    set:
      parameter-name: MonitorWorkspaceIntegration 
  # The cmdlet's name to long, Re-name it
  # - model-cmdlet:
  #     - AzureMonitorWorkspaceIntegration