Skip to content

Files

Latest commit

0d870b6 · Jan 2, 2025

History

History

Fleet.Autorest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 19, 2023
Dec 19, 2023
Apr 23, 2024
Apr 23, 2024
Dec 19, 2023
Apr 23, 2024
Apr 23, 2024
Dec 19, 2023
Dec 19, 2023
Dec 19, 2023
Jan 2, 2025
Dec 19, 2023
Dec 19, 2023

README.md

Az.Fleet

This directory contains the PowerShell module for the Fleet 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.Fleet, see how-to.md.

AutoRest Configuration

see https://aka.ms/autorest

# pin the swagger version by using the commit id instead of branch name
commit: 8f889f0967e411fc1042aed0a097868b360f525a
require:
# readme.azure.noprofile.md is the common configuration file
  - $(this-folder)/../../readme.azure.noprofile.md
  - $(repo)/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md
  
title: Fleet
module-version: 0.1.0
subject-prefix: $(service-name)

directive:
  # Fix required parameter missing
  - from: swagger-document
    where: $.definitions.FleetMember
    transform: $['required'] = ['properties']
  - from: swagger-document
    where: $.definitions.FleetUpdateStrategy
    transform: $['required'] = ['properties']
  - from: swagger-document
    where: $.definitions.UpdateRun
    transform: $['required'] = ['properties']
  - from: swagger-document
    where: $.definitions.FleetUpdateStrategy.properties.properties.x-ms-mutability
    transform: >-
      return [
        "read",
        "update",
        "create"
      ]
  - from: swagger-document
    where: $.definitions.UpdateRun.properties.properties
    transform: $['x-ms-mutability'] = ["read", "update", "create"]
  - from: swagger-document
    where: $.definitions.ManagedClusterUpdate.properties.nodeImageSelection
    transform: $['x-ms-mutability'] = ["read", "update", "create"]
  - from: swagger-document
    where: $.definitions.NodeImageSelection.properties.type
    transform: $['x-ms-mutability'] = ["read", "update", "create"]
# #   # Following is two common directive which are normally required in all the RPs
# #   # 1. Remove the unexpanded parameter set
# #   # 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
  - where:
      variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
    remove: true
  # Hide set cmdlet
  - where:
      verb: Set
    remove: true
  # Rename UpdateStrategyName
  - where:
      parameter-name: UpdateStrategyName
      subject: FleetUpdateStrategy
    set:
      parameter-name: Name
  # Add required model cmdlet
  - model-cmdlet:
    - model-name: UpdateStage
    - model-name: UpdateGroup