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);
        }
예제 #3
0
 public override void ExecuteCmdlet()
 {
     if (ShouldProcess(Name, "RemoveAttestationPolicySigner"))
     {
         String          policySignersString = AttestationDataPlaneClient.RemovePolicySigner(Name, ResourceGroupName, ResourceId, Signer);
         PSPolicySigners policySigners       = new PSPolicySigners(policySignersString);
         WriteObject(policySigners);
     }
 }