Skip to content

Files

Latest commit

88aa1be · Dec 5, 2023

History

History

CustomProviders.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

README.md

Az.CustomProviders

This directory contains the PowerShell module for the CustomProviders service.


Status

Az.CustomProviders

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

Run Generation

In this directory, run AutoRest:

autorest


AutoRest Configuration

see https://aka.ms/autorest

commit: 0dd49a444195fef7f3555cad038cb7665cbd928c
require:
  - $(this-folder)/../../readme.azure.noprofile.md
input-file:
  - $(repo)/specification/customproviders/resource-manager/Microsoft.CustomProviders/preview/2018-09-01-preview/customproviders.json

metadata:
  authors: Microsoft Corporation
  owners: Microsoft Corporation
  description: 'Microsoft Azure PowerShell: Custom Providers cmdlets'
  copyright: Microsoft Corporation. All rights reserved.
  tags: Azure ResourceManager ARM PSModule CustomProviders
  companyName: Microsoft Corporation
  requireLicenseAcceptance: true
  licenseUri: https://aka.ms/azps-license
  projectUri: https://github.com/Azure/azure-powershell
  releaseNotes: Initial release of CustomProviders cmdlets.

module-version: 0.1.0
title: CustomProviders
subject-prefix: ''

# 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:
  - where:
      subject: CustomResourceProvider
    set:
      subject: CustomProvider

  - where:
      subject: Association
    set:
      subject: CustomProviderAssociation

  - where: 
      verb: New
      subject: ^CustomProvider.*$
      variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Create$
    remove: true
  
  - where:
      verb: Set
      subject: CustomProviderAssociation
      variant: ^Update$|^UpdateViaIdentity$
    remove: true

  - where:
      verb: Set
      subject: ^CustomProvider$
    remove: true

  - where:
      verb: Update
      subject: CustomProvider
      variant: ^Update$|^UpdateViaIdentity$
    remove: true

  - where:
       verb: Set
       subject: CustomProviderAssociation
    remove: true

# Parameter renames
  - where: 
      subject: ^CustomProvider$
      parameter-name: ResourceProviderName
    set:
      parameter-name: Name
      alias: ResourceProviderName

# Make ResourceId validation case insensitive
  - from: source-file-csharp
    where: $
    transform: $ = $.replace(/var _match = new global\:\:System\.Text\.RegularExpressions\.Regex\(\"([^\"]+)\"\).Match\(viaIdentity\);/g, 'var _match = new global\:\:System.Text.RegularExpressions.Regex\(\"$1\", global\:\:System\.Text\.RegularExpressions\.RegexOptions\.IgnoreCase\).Match\(viaIdentity\);');

# Fix issue with delete LRO operations
  - from: source-file-csharp
    where: $
    transform: $ = $.replace(/var _finalUri = _response.GetFirstHeader\(\@\"Location\"\);/g, 'var _finalUri = \"\";');