Azure / Azure/autorest.powershell

Need to set ValuefromPipelineByPropertyName for path parameter

Open
#616 3 comments 1 reaction 1 assignee Claimed by @dolauli View on GitHub
feature-request
Dominant language
C#
Stars
123
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Autorest by default sets Valuefrompipeline property for all body parameters. We want to set ValuefromPipelineByPropertyName for path parameter so we can use our Get cmdlet as Input object for Update cmdlet
we need like below as we have Entity ID as input to update cmdlet and get Provides it

[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Id of the Entityto update", ### ValueFromPipelineByPropertyName = true)]
[PowerShell.API.Runtime.Info(
Required = true,
ReadOnly = false,
Description = @"Id of the Entity to update",
SerializedName = @"EntityId",
PossibleTypes = new [] { typeof(int) })]
[global::Powershell.API.Category(global::Powershell.API.ParameterCategory.Path)]

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.