public override void ExecuteCmdlet() { String policySignersString = AttestationDataPlaneClient.GetPolicySigners(Name, ResourceGroupName, ResourceId); PSPolicySigners policySigners = new PSPolicySigners(policySignersString); WriteObject(policySigners); }
public override void ExecuteCmdlet() { String policySignersString; switch (ParameterSetName) { case DefaultProviderParameterSet: policySignersString = AttestationDataPlaneClient.GetPolicySigners(Name, ResourceGroupName, ResourceId, true, Location); break; case NameParameterSet: case ResourceIdParameterSet: policySignersString = AttestationDataPlaneClient.GetPolicySigners(Name, ResourceGroupName, ResourceId); break; default: throw new ArgumentException(Resources.BadParameterSetName); } PSPolicySigners policySigners = new PSPolicySigners(policySignersString); WriteObject(policySigners); }