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); }
public override void ExecuteCmdlet() { if (ShouldProcess(Name, "RemoveAttestationPolicySigner")) { String policySignersString = AttestationDataPlaneClient.RemovePolicySigner(Name, ResourceGroupName, ResourceId, Signer); PSPolicySigners policySigners = new PSPolicySigners(policySignersString); WriteObject(policySigners); } }
public override void ExecuteCmdlet() { if (ShouldProcess(Name, "ResetAttestationPolicy")) { AttestationDataPlaneClient.ResetToDefaultPolicy(Name, ResourceGroupName, ResourceId, Tee, Policy); if (PassThru) { WriteObject(true); } } }
public override void ExecuteCmdlet() { string policy; switch (ParameterSetName) { case DefaultProviderParameterSet: policy = AttestationDataPlaneClient.GetPolicy(Name, ResourceGroupName, ResourceId, Tee, true, Location); break; case NameParameterSet: case ResourceIdParameterSet: policy = AttestationDataPlaneClient.GetPolicy(Name, ResourceGroupName, ResourceId, Tee); break; default: throw new ArgumentException(Resources.BadParameterSetName); } WriteObject(new PSPolicy(policy)); }
public override void ExecuteCmdlet() { String policy = AttestationDataPlaneClient.GetPolicy(Name, ResourceGroupName, ResourceId, Tee); WriteObject(policy); }